Hi there,
I've been reading through forum posts for a while now trying to figure out the best way to do this, but I'm feeling overwhelmed because so much of the advice on here seems to conflict with other people's advice. So, I decided to just make my own post. At the very least, writing all this out might help me organize my own thoughts.
I'm in the process of transferring VHS tapes, VHS-C tapes, and Hi-8 tapes to digital. I'm doing all my Hi-8 tapes first, so that's what this post is dealing with. I'm using the Hauppauge USB-Live 2, with an S-Video cable, to capture and I'm using AmaRecTV with Lagarith to record to lossless avi files. Everything's good up to this point.
Now, my goal is to take these source recordings, deinterlace them, denoise them (with Neat Video for VirtualDub), crop out the scan lines at the bottom (VirtualDub seems to be fine for this), improve the audio quality (if possible), and compress them to mp4 files so they can be easily shared over the internet. I would like to get some of them on DVDs later too, but that's secondary to the mp4 files.
Here are my questions:
1. What order should these things be done in? Should I be saving a new version of the file after every processing stage? (As opposed to telling VirtualDub to deinterlace and denoise at the same time, for instance)
2. What's the best program for deinterlacing? I saw someone say VirtualDub's deinterlacing isn't the best, but I don't see anything wrong with it.
3. What's the best way to improve audio quality? Someone recommended Audacity, but I find it hard to work with.
4. What's the best program and settings for compression and conversion to mp4? I've tried this so many different ways and it always comes out sort of disappointing. I feel lost when it comes to selecting bitrates and such. I'll take somewhat large file sizes if it means decent quality.
+ Reply to Thread
Results 1 to 15 of 15
-
-
First, check if the image is in the 16-255 or 16-235 color range (DaVinci Resolve)
My Toshiba VHS sends analog in the range of 16-255, while Panasonic in the range of 16-235. Such a curiosity.
1. Deinterlace (yadif is enough).
2. Change the resolution to 720p or 1080p, because Neat is better at removing noise and sharpening.
3. Crop the image not only from the bottom, but also the sides and top.
4. Save to mp4.
And I would like to add that the sound from Panasonic is simply awesome compared to Toshiba. So I don't have to do anything with the sound anymore -
1. What order should these things be done in?
Upscale is another story, follow the recent threads in the restoration subforum.
The video captured by the Hauppauge USB-Live 2 will always be in YUV 16-254 range, so adjust levels to 16-235 if working with additional filters requiring RGB colorspace.
Should I be saving a new version of the file after every processing stage? (As opposed to telling VirtualDub to deinterlace and denoise at the same time, for instance)
2. What's the best program for deinterlacing? I saw someone say VirtualDub's deinterlacing isn't the best, but I don't see anything wrong with it.
3. What's the best way to improve audio quality? Someone recommended Audacity, but I find it hard to work with.
4. What's the best program and settings for compression and conversion to mp4?
Code:ffmpeg.exe -i <input file> -c:v libx264 -crf 17 -preset slow -aspect 4:3 -c:a aac -b:a 128k <output file>
-
-
... and there's a good chance that the controversy will continue when you ask for "whats the best .....", I am afraid
It depends on the tools you have, on the sources, on your knowledge and on subjective preferences.
A good investment of your time would be to learn avisynth basics (assuming you are not yet familiar with it). The recommendations you collect from members here will become more fruitful then.
Or you may want to upload a short sample of your capture to receive specific advice, e.g. for a script. -
After cropping, the display aspect ratio does not necessarily have to be 4:3, so I would set the pixel aspect ratio to 16/15 (for PAL) rather than display aspect ratio.
The avi container has no flag for proper siplaying so the 4:3 DAR must be specified when compressing to mp4.
To be more accurate, the 720x576 frame after filtering should be cropped to 704(702)x576, because ITU-R BT.601-4 (formerly "CCIR-601" or "Rec.601") says so
Cropping the head switching noise in the y direction without compensating may generate distortion in the picture. -
The frame will certainly be cropped more than 704x576 and it probably won't keep the 4:3 DAR (which is not necessary anyway).
So why bother? Simply set PAR 16/15 for compression :) If the tool is VirtualDub, it even has to enter it in the encoder settings.
PS. I think Hauppauge doesn't always produce the 16-255 range - rather it exactly duplicates the VCR range. And this one could be 16-235. -
Why bother? As the OP is capturing VHS and other analog sources the PAR of his capture is very most likely 12:11 rather than 16:15 for PAL. For NTSC the PAR would be 10:11.
The OP didn't even tell us if it is for PAL or NTSC, but as he is from Canada chances are that it is for NTSC.
Cropping to 704 width (and masking the head switching crud) and then encoding for DAR 4:3 would work in both cases.Last edited by Sharc; 7th Sep 2022 at 02:58.
-
Why bother? As the OP is capturing VHS and other analog sources...
Cropping to 704 width (and masking the head switching crud) and then encoding for DAR 4:3 would work in both cases.
PS. I think Hauppauge doesn't always produce the 16-255 range - rather it exactly duplicates the VCR range. And this one could be 16-235.
If the analog luminance at the input has no "data" in the whites (dark scenes), the digitized video will behaves a Y-range 16-XXX, where XXX is the correspondent higher "white" peak in the signal, i.e. 16-219, just to write a mumber.
edit: If the analog luminance at the input has "data" in the deep blacks, Y<16, and the deep whites Y=255, they will be crushed/clipped (not captured).Last edited by lollo; 7th Sep 2022 at 03:15.
-
As we are digitizing an image that will never be displayed on a 4:3 screen again, there is no need to keep this aspect ratio.
You just have to crop the parts that do not contain the correct image and save with the correct PAR. I always cut the material to around 560 lines.
PS. I think Hauppauge doesn't always produce the 16-255 range - rather it exactly duplicates the VCR range. And this one could be 16-235.
If the analog luminance at the input has no "data" in the whites (dark scenes), the digitized video will behaves a Y-range 16-XXX, where XXX is the correspondent higher "white" peak in the signal, i.e. 16-219, just to write a mumber.
edit: If the analog luminance at the input has "data" in the deep blacks, Y<16, and the deep whites Y=255, they will be crushed/clipped (not captured).
So by digitalizing the video with Hauptpage, we have a good chance that we will simply destroy our deep whites. -
As we are digitizing an image that will never be displayed on a 4:3 screen again, there is no need to keep this aspect ratio.
...the output levels from the VCR...
So by digitalizing the video with Hauptpage, we have a good chance that we will simply destroy our deep whites. -
Of course you can. But why watch an image with distortion on all sides? In general, it's better to cut it out, and the actual image will be a bit bigger and will be scaled anyway. (Although recently I am inclined to the thesis that it is better to scale with good filters at least at 720p).
...the output levels from the VCR...
So by digitalizing the video with Hauptpage, we have a good chance that we will simply destroy our deep whites. -
Of course you can. But why watch an image with distortion on all sides?
But I have not seen a VCR that generates Y levels in the range of 0-15 -
What resize? For what? If you get an picture, e.g. 690x550, then you record 690x550.
But I have not seen a VCR that generates Y levels in the range of 0-15Last edited by rgr; 9th Sep 2022 at 06:49.
Similar Threads
-
FFmpeg: Lossless video conversion from AVI to MP4 possible for ALL codecs ?
By pxstein in forum Video ConversionReplies: 1Last Post: 8th Feb 2022, 01:20 -
Convert .ts file to .mp4 (lossless)
By vikral in forum Video ConversionReplies: 5Last Post: 28th Nov 2021, 08:33 -
Noob converting .avi to .mp4 - how?
By blablarg18 in forum Video ConversionReplies: 2Last Post: 7th Apr 2021, 23:01 -
Lossless to MP4 Simple FFMPEG Commend.
By dellsam34 in forum Video ConversionReplies: 28Last Post: 6th Mar 2019, 22:15 -
Problem converting AVI to MP4
By haddoq in forum Video ConversionReplies: 3Last Post: 27th Feb 2019, 03:53