Quantcast Captured VHS to AVI HuffYUV, next steps? - digitalFAQ Forum
Go Back    Forum > Digital Video > Video Project Help > Capture, Record, Transfer

Reply
 
LinkBack Thread Tools
  #1  
05-07-2022, 08:16 PM
Major17Wood Major17Wood is offline
Free Member
 
Join Date: Apr 2022
Posts: 30
Thanked 0 Times in 0 Posts
I set up VirtualDub using the settings guide on this site.
I've managed to capture my graduation tape, 1 hour 20 minutes long, with no frame drops or inserts

Now I need to crop the borders, resize to 4:3 aspect ratio (since it looks horizontally stretched capturing at 720x480), and deinterlace..and maybe anti-alias to get rid of jaggies?

What's the preferred way (and order) to go about these tasks?

Sample in reply below

Last edited by Major17Wood; 05-07-2022 at 09:09 PM.
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Ads / Sponsors
 
Join Date: ∞
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #2  
05-07-2022, 09:06 PM
Major17Wood Major17Wood is offline
Free Member
 
Join Date: Apr 2022
Posts: 30
Thanked 0 Times in 0 Posts
sample video created with VLC's record function
screenshot attached of VirtualDub info


Attached Images
File Type: jpg Untitled.jpg (29.3 KB, 12 downloads)
Attached Files
File Type: avi vlc-record-2022-05-07-22h02m13s-graduation.avi-.avi (94.10 MB, 27 downloads)

Last edited by Major17Wood; 05-07-2022 at 10:05 PM.
Reply With Quote
  #3  
05-07-2022, 10:51 PM
latreche34 latreche34 is offline
Free Member
 
Join Date: Dec 2015
Location: USA
Posts: 2,139
Thanked 365 Times in 335 Posts
Here is your sample de-interlaced, cropped and resized named GraduationDCR shortened to fit the 99MB file size limit followed by another file encoded to h.264 named GraduationE.

I used Avspmod for the first file using the following script sequence:
Code:
AviSource("C:\Users\User\Desktop\graduation.avi")
AssumeTFF()
QTGMC(Preset="Fast")
Crop(10, 0, -10, -6)
LanczosResize(1440, 1080)
and ffmpeg for the encoding using the following script:
Code:
ffmpeg -i GraduationDCR.avi -vf setsar=sar=1/1 -c:v libx264 -crf 18 -x264opts colorprim=bt709:transfer=bt709:colormatrix=bt709:force-cfr -c:a aac -b:a 192k -movflags +faststart GraduationE.mp4
Is that Chris Cuomo in the video?


Attached Images
File Type: jpg Graduation.jpg (50.3 KB, 55 downloads)
Attached Files
File Type: avi GraduationDCR.avi (93.21 MB, 10 downloads)
File Type: mp4 GraduationE.mp4 (18.88 MB, 6 downloads)
Reply With Quote
The following users thank latreche34 for this useful post: Major17Wood (05-08-2022)
  #4  
05-07-2022, 11:01 PM
traal traal is offline
Free Member
 
Join Date: Jan 2016
Posts: 236
Thanked 52 Times in 47 Posts
The blacks are crushed. Needs a new capture with levels set correctly for a good histogram.
Reply With Quote
The following users thank traal for this useful post: Major17Wood (05-08-2022)
  #5  
05-07-2022, 11:05 PM
Major17Wood Major17Wood is offline
Free Member
 
Join Date: Apr 2022
Posts: 30
Thanked 0 Times in 0 Posts
Holy crap dude, those look amazing! Nah that aint Cuomo...just some smart kid.

What's the difference between DCR and h.264? which one should I use?
Reply With Quote
  #6  
05-07-2022, 11:06 PM
Major17Wood Major17Wood is offline
Free Member
 
Join Date: Apr 2022
Posts: 30
Thanked 0 Times in 0 Posts
@traal, How can I do that? I used the default "Capture filter" settings. I didn't adjust anything in that menu.
Reply With Quote
  #7  
05-07-2022, 11:10 PM
autephex autephex is offline
Free Member
 
Join Date: Oct 2014
Posts: 43
Thanked 2 Times in 2 Posts
Quote:
Originally Posted by Major17Wood View Post
Holy crap dude, those look amazing! Nah that aint Cuomo...just some smart kid.

What's the difference between DCR and h.264? which one should I use?
DCR appears to be lossless still. H264 is compressed. (Notice the difference in filesizes). I'm assuming DCR is short for deinterlaced, cropped, resized.

H264 would be your final output - the compressed video after all filtering is done. H264/x264 is the most commonly used for video compression currently. MeGUI can be used to convert to x264 with an avisynth script performing all the filtering prior to compression, or you can produce a lossless avi first and then compress to x264 using your software of choice (megui, handbrake, vidcoder or ffmpeg as shown in the previous reply example)
Reply With Quote
The following users thank autephex for this useful post: Major17Wood (05-07-2022)
  #8  
05-07-2022, 11:44 PM
latreche34 latreche34 is offline
Free Member
 
Join Date: Dec 2015
Location: USA
Posts: 2,139
Thanked 365 Times in 335 Posts
Yes DCR is still in lossless state although de-interlacing is not a lossless process, From the DCR file you can either upload to youtube directly for sharing or encode for offline viewing/sharing. You would still have to keep the master files in case you want to go back and change something if storage space is not an object.

https://www.youtube.com/user/latoak34/videos
Reply With Quote
  #9  
05-08-2022, 12:06 AM
latreche34 latreche34 is offline
Free Member
 
Join Date: Dec 2015
Location: USA
Posts: 2,139
Thanked 365 Times in 335 Posts
Here is how it looks like if you would upload it to youtube, Don't worry it's an unlisted video and will be deleted later. Uploading from lossless could take hours for a full tape, It is better scheduled overnight.
How did you dub the audio track to the tape? Is this a second gen dub?

https://www.youtube.com/user/latoak34/videos
Reply With Quote
  #10  
05-08-2022, 12:43 AM
Major17Wood Major17Wood is offline
Free Member
 
Join Date: Apr 2022
Posts: 30
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by latreche34 View Post
Here is how it looks like if you would upload it to youtube, Don't worry it's an unlisted video and will be deleted later. Uploading from lossless could take hours for a full tape, It is better scheduled overnight.
How did you dub the audio track to the tape? Is this a second gen dub?
Audio was captured uncompressed, as indicated in the "virtualdub settings" post

Last edited by Major17Wood; 05-08-2022 at 12:59 AM.
Reply With Quote
  #11  
05-08-2022, 02:11 AM
latreche34 latreche34 is offline
Free Member
 
Join Date: Dec 2015
Location: USA
Posts: 2,139
Thanked 365 Times in 335 Posts
That wasn't my question, How that song got into the tape, I don't hear the microphone's sound from the camcorder? Was it a second gen dub or the audio has been dubbed straight to tape, but from its quality this isn't a linear audio dub, it sounds HiFi, so it has to be a second gen dub, Consumer camcorders didn't have the option to feed the audio while shooting live.

https://www.youtube.com/user/latoak34/videos
Reply With Quote
  #12  
05-08-2022, 04:32 AM
Hushpower Hushpower is online now
Premium Member
 
Join Date: Apr 2020
Posts: 345
Thanked 53 Times in 52 Posts
Quote:
Uploading from lossless could take hours for a full tape, It is better scheduled overnight.
I wouldn't be uploading that to YT. 93mb for 2.6 seconds is far too big and not realistic given the tape is 1hr 20min long. I'd be encoding it down to MP4 before sending it to YT.
Reply With Quote
  #13  
05-08-2022, 04:53 AM
latreche34 latreche34 is offline
Free Member
 
Join Date: Dec 2015
Location: USA
Posts: 2,139
Thanked 365 Times in 335 Posts
It really depends on how much upload speed someone has, For me it would take the same amount of time the computer has to be on to encode at 5fps or just upload it to Youtube as is skipping an unnecessary encode. And if someone wants a copy he would just dump the encoded Youtube stream to his hard drive taking advantage of free iCloud, But I always keep the high quality lossless SD masters in case someone wants to do some editing later.

https://www.youtube.com/user/latoak34/videos
Reply With Quote
The following users thank latreche34 for this useful post: msgohan (05-08-2022)
  #14  
05-08-2022, 08:58 AM
traal traal is offline
Free Member
 
Join Date: Jan 2016
Posts: 236
Thanked 52 Times in 47 Posts
Quote:
Originally Posted by Major17Wood View Post
@traal, How can I do that? I used the default "Capture filter" settings. I didn't adjust anything in that menu.
Temporarily crop out the edges, then play the tape and adjust brightness and contrast in your capture card's settings until the histogram is all blue.
Reply With Quote
  #15  
05-08-2022, 11:34 AM
msgohan msgohan is offline
Free Member
 
Join Date: Feb 2011
Location: Vancouver, Canada
Posts: 1,323
Thanked 328 Times in 273 Posts
Quote:
Originally Posted by traal View Post
And if the histogram is always all-blue, the adjustment is instead "until there are no 'peaks' at the ends."
Reply With Quote
  #16  
05-08-2022, 12:34 PM
Major17Wood Major17Wood is offline
Free Member
 
Join Date: Apr 2022
Posts: 30
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by latreche34 View Post
That wasn't my question, How that song got into the tape, I don't hear the microphone's sound from the camcorder? Was it a second gen dub or the audio has been dubbed straight to tape, but from its quality this isn't a linear audio dub, it sounds HiFi, so it has to be a second gen dub, Consumer camcorders didn't have the option to feed the audio while shooting live.
These tapes were created by a production company called American Multimedia Yearbooks and sold to kids who graduated.
Reply With Quote
  #17  
05-08-2022, 01:14 PM
Major17Wood Major17Wood is offline
Free Member
 
Join Date: Apr 2022
Posts: 30
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by latreche34 View Post
Here is your sample de-interlaced, cropped and resized named GraduationDCR shortened to fit the 99MB file size limit followed by another file encoded to h.264 named GraduationE.

I used Avspmod for the first file using the following script sequence:
Code:
AviSource("C:\Users\User\Desktop\graduation.avi")
AssumeTFF()
QTGMC(Preset="Fast")
Crop(10, 0, -10, -6)
LanczosResize(1440, 1080)
and ffmpeg for the encoding using the following script:
Code:
ffmpeg -i GraduationDCR.avi -vf setsar=sar=1/1 -c:v libx264 -crf 18 -x264opts colorprim=bt709:transfer=bt709:colormatrix=bt709:force-cfr -c:a aac -b:a 192k -movflags +faststart GraduationE.mp4
Is that Chris Cuomo in the video?
Could you explain how to run the scripts? I'm totally new at this. I like the quality of the mp4 and would like to store it this way to upload to youtube and to view on pc.
Reply With Quote
  #18  
05-08-2022, 04:16 PM
lollo2 lollo2 is offline
Free Member
 
Join Date: Mar 2013
Location: Italy
Posts: 421
Thanked 110 Times in 95 Posts
My contribution as well:

- the capture has crushed black, as reported by traal and msgohan:
hist.jpg

- compared to (already excellent) latreche34 approach I added some denoise and light sharpening (and a different cropping approach to keep the same original proportions, but with a black border at the bottom):
You must be logged in to view this content; either login or register for the forum. The attached screen shots, before/after images, photos and graphics are created/posted for the benefit of site members. And you are invited to join our digital media community.


image comparison: https://imgsli.com/MTA3MDc4

The used AviSynth script:
Code:
video_org=AviSource("vlc-record-2022-05-07-22h02m13s-graduation.avi-.avi")

# cropping 
	crop_left=8	# | 720-(8+8)x576-(0+6)=704x474	
	crop_top=0	
	crop_right=8
	crop_bottom=6
video_org_crop=video_org.crop(crop_left,crop_top,-crop_right,-crop_bottom)

#video_hist=video_org_crop.ConvertToYV16().Histogram("Levels")

#return(video_hist)

# plugins directory
plugins_dir="<full path to AviSynth plugins directory>"

	# QTGMC
Import(plugins_dir + "QTGMC.avsi")
	# Zs_RF_Shared
Import(plugins_dir + "Zs_RF_Shared.avsi")

	# TemporalDegrain2
Import(plugins_dir + "TemporalDegrain-v2.2.1_modGMa.avsi")
	# RgTools
loadPlugin(plugins_dir + "RgTools-v1.0\x86\RgTools.dll")
	# MaskTools2
loadPlugin(plugins_dir + "masktools2-v2.2.23\x86\masktools2.dll")
	# MVTools
loadPlugin(plugins_dir + "mvtools-2.7.41-with-depans20200430\x86\mvtools2.dll")
	# FFT3DFilter
loadPlugin(plugins_dir + "FFT3dFilter-v2.6\x86\fft3dfilter.dll")
	# FFTW
loadPlugin(plugins_dir + "LoadDll\LoadDll.dll")
loadDll(plugins_dir + "fftw-3.3.5-dll32\libfftw3f-3.dll")

	# LSFmod
Import(plugins_dir + "LSFmod.v1.9.avsi")
	# RgTools
#loadPlugin(plugins_dir + "RgTools-v1.0\x86\RgTools.dll")
	# MaskTools2
#loadPlugin(plugins_dir + "masktools2-v2.2.23\x86\masktools2.dll")

	# ColorMatrix
LoadPlugin(plugins_dir + "ColorMatrix\ColorMatrix.dll")

	# Nnedi3
loadPlugin(plugins_dir + "NNEDI3_v0_9_4_55\x86\Release_W7\nnedi3.dll")

### de-interlacing
deinterlaced=video_org_crop.AssumeTFF().QTGMC(preset="slow", matchpreset="slow", matchpreset2="slow", sourcematch=3, tr1=2, tr2=1, NoiseTR=2, sharpness=0.1)

### convert to YV16
deinterlaced_yv16=deinterlaced.convertToYV16()

### denoising
denoised_yv16=deinterlaced_yv16.TemporalDegrain2(degrainTR=3)

### convert to YUY2
denoised=denoised_yv16.convertToYUY2()

### change color matrix
denoised_cm=denoised.Colormatrix("Rec.601->Rec.709")

### add borders
denoised_cm_borders=denoised_cm.addborders(crop_left,crop_top,crop_right,crop_bottom)

### upscale
upscaled=denoised_cm_borders.nnedi3_rpow2(rfactor=2, nns=4, qual=2, cshift="Spline36Resize", fwidth=1440, fheight=1080)

### convert to YV12
upscaled_yv12=upscaled.convertToYV12()

### sharpening
sharpened_yv12=upscaled_yv12.LSFmod(defaults="slow")

### convert to YUY2 with chroma from YUY2 color space
sharpened=sharpened_yv12.convertToYUY2().MergeChroma(upscaled)

return(sharpened)
Compressing to h264 with:
Code:
fmpeg.exe -i input.avs -c:v libx264 -crf 17 -preset slow -aspect 4:3 -c:a aac -b:a 128k output.mp4
gives this output: v1_v2.jpg

Edit: your original capture has halos, disable any sharpening in the player and in the capture card:
You must be logged in to view this content; either login or register for the forum. The attached screen shots, before/after images, photos and graphics are created/posted for the benefit of site members. And you are invited to join our digital media community.



Last edited by lollo2; 05-08-2022 at 04:34 PM.
Reply With Quote
The following users thank lollo2 for this useful post: Major17Wood (05-08-2022)
  #19  
05-08-2022, 05:11 PM
Major17Wood Major17Wood is offline
Free Member
 
Join Date: Apr 2022
Posts: 30
Thanked 0 Times in 0 Posts
In regards to crushed black, I read this post regarding the ATI 600 USB at https://forum.videohelp.com/threads/...needs-cleaning

"The ATI 600 USB clips blacks before the signal reaches VirtualDub. VDub's hook into the 600's proc amp won't fix it. You need an external proc amp to adjust black levels before they enter the 600. You can fix the highlights with the Levels() filter, much of the brights can be recovered. See the Levels() entries in the above scripts, which calm the highlights and contract output highs to y=235. It's too late for the blacks; they're crushed before the capture software sees them. It's a pain with the ATI 600 USB and the Hauppauge Live-2 USB."

Regarding the halos, ATI 600 defaults to 2 for sharpness. Dropping it to 0 I still see the halos. Must just be the tape.
Reply With Quote
  #20  
05-08-2022, 05:19 PM
latreche34 latreche34 is offline
Free Member
 
Join Date: Dec 2015
Location: USA
Posts: 2,139
Thanked 365 Times in 335 Posts
Quote:
Originally Posted by Major17Wood View Post
These tapes were created by a production company called American Multimedia Yearbooks and sold to kids who graduated.
I would imagine the original tape would look much better than the second gen dub. Anyway, you cannot post that video publicly on youtube you would get a copyright flag for audio, You can only share it privately or unlisted.
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
What is the actual PAR of HuffYUV files captured from VHS tapes with VC500? rokoko32 Capture, Record, Transfer 9 02-25-2021 09:33 PM
Next steps after successful VHS captures? edoroom Restore, Filter, Improve Quality 4 05-24-2019 07:49 AM
What are first steps to restoring captured AVI? (with samples) JohnGalt Restore, Filter, Improve Quality 9 07-13-2018 03:28 PM
Determining field order of captured HuffYUV AVI? nicholasserra Capture, Record, Transfer 18 02-04-2018 12:04 AM
Near perfect conversion steps myron Capture, Record, Transfer 1 05-07-2004 02:46 AM

Thread Tools



 
All times are GMT -5. The time now is 09:25 AM