I have old home videos (originally recorded on video cassettes) that already been transcribed to DVDs with a DVD capture device. These have been stored into several VOB files per tape. When I probe one of the files with ffprobe, I get the following:
I would like to convert these videos to a more common/future proof container & codec that would also be amenable to video editing at some point in the future. From the research I've done, it seems that converting to H.264 and storing in an MP4 containers seems to be the way to go. With this in mind, seeing as these videos were originally recorded on much older devices and have already been compressed once to MPEG2, I'm really trying to minimize any further compression or loss of quality.Code:Input #0, mpeg, from 'VIDEO_TS/VTS_01_1.VOB': Duration: 00:13:33.61, start: 0.211411, bitrate: 4959 kb/s Stream #0:0[0x1bf]: Data: dvd_nav_packet Stream #0:1[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s Stream #0:2[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, top first), 720x480 [SAR 8:9 DAR 4:3], Closed Captions, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc Side data: cpb: bitrate max/min/avg: 8000000/0/0 buffer size: 1835008 vbv_delay: N/A Unsupported codec with id 100357 for input stream 0
I've decided to go with Handbrake for this purpose, but now, to achieve my goal of retaining the most of the quality that I can, I'm a bit unsure of what settings I should use. I've found this blog that seems reasonable, but I wanted advice from you here on this. Please see the settings I've set so far below:
[Attachment 55148 - Click to enlarge]
[Attachment 55149 - Click to enlarge]
[Attachment 55150 - Click to enlarge]
[Attachment 55151 - Click to enlarge]
A few questions:
- Should I set the RF lower, e.g. 12 instead of 18?
- Should I set Tune to "Film" or "Grain" considering the video cassette origin of the video
- Framerate: Same as Source or set to 30?
- What encode level should I use? Is 4.0 suitable?
- Should I use higher/lower Denoise & Deblock settings considering the video origin?
Thanks ahead of time!
+ Reply to Thread
Results 1 to 22 of 22
Last edited by MatterMost; 1st Oct 2020 at 18:27.
If you want to re-edit them later, don't recode them into MP4. VOB is simply a type of MPEG (MPEG for DVD; "Video OBject"), and you'll retain all the quality by smart-rendering them from VOB to MPEG. I would use VideoRedo, but that is payware. There are probably many free programs that will "convert" VOB to MPEG.
My understanding is that MPEG is very main-stream, and won't be going anywhere, any time soon.
How would recommend then muxing them back together, and into what container?
A simple way: Use my clever FFmpeg-GUI, load your VOB, select Modify Video Stream, CRF 22, preset very fast, set the desired Aspect Ratio, click convert.
Click on Multiplex, select your new created mkv video as video source, your original vob as audio source, select the target file, select mp4 as container, click on multiplex. Done
Just to be a bit more specific, I'm operating under a Linux environment, and many of these programs are Windows only. Would there be any way of achieving this with Handbrake of ffmpeg?
Also, referring back to the original post, if I was looking to convert to H.264 and MP4 - what settings would you recommend? (In reference to the bullet list of questions)
Windows ffmpeg command line remux (linux will be similar):
ffmpeg -fflags +genpts -i input.vob -c copy output.mpg
ffmpeg -i input.vob -c:v libx264 -preset slow -crf 12 -c:a aac output.mp4
Last edited by jagabo; 2nd Oct 2020 at 10:08.
Just to be a bit more specific, I'm operating under a Linux environment
VHS>DVD analog>digital transfers that are further converted to MP4 look like garbage, and the very last thing you want to do is edit that rotten MP4 re-conversion. So skip the Handbrake idea: you will never get anywhere close to an "un-degraded" transfer to MP4 with it. Handbrake etc VOB>H264 conversion works reasonably well if the source is pristine "clean" content like a Hollywood pressed dvd, or something you recorded from an off-air broadcast with a dvd recorder, but VHS > VOB > MP4 almost always looks disgusting.
There comes a point in every Mac and Linux enthusiast's life when the reality of Windows dominance smacks the stuffing out of them, and it usually involves a video task like this. Converting DVD VOB files into standard, integrated, lossless MPG files is a trivial, easy-peasy task for several Windows utilities, but either impossible or a PITA with other platforms. Get yourself a cheap supplementary Windows computer, dedicate it to this conversion project, then dump it. It doesn't need to be powerful or recent at all: any laptop or compact desktop you can find for $100 second hand will do fine. I run VOB2MPG every day on circa 2010 Samsung and Gateway laptops running Win7.
After repackaging from VOB container to the more flexible, conventional MPG, you can directly edit the original-quality MPG files with tools like MPEG Streamclip etc. The edited files will be lossless if you follow the prompts to edit only on key frames (with +- half-second accuracy). If you want frame accurate editing, use an editor that preserves original quality, limiting recodes to just the area around the edit points. After editing the original MPGs, you could try making H264 MP4 conversions to get smaller files easier to manage on portable devices- but you'll notice the quality hit for sure on any screen larger than a 2008 iPhone.
A quick-n-dirty alternative that a lot of people here use is the MakeMKV utility. This works just like VOB2MPG, except instead of a plain MPG it repackages the VOB as MPG-within-MKV. This can be nifty for devices that seem to prefer MKV, but I've never found it as useful as many others here. For one, the MKV file is just as enormous as a plain MPG from VOB2MPG, but MKV isn't as easily edited, and perversely some devices and software players consider MPG in an MKV container to be an unholy abomination, so vomit all over themselves when dealing with it. Plain VOB > MPG file is never a problem.
Last edited by orsetto; 2nd Oct 2020 at 10:29.
Thanks Jagabo - so the first command will simply repackage into MPG and therefore have the same affect as the VOB2MPG as recommended by orsetto?
"Future proofing" implies that you won't be able to play VOB MPEG-2 files in the future. However, given that DVD was one of the five most successful consumer products of the last forty years, the massive amount of DVD material in everyone's homes means that you will be able to play the files on them until after your grandkids are dead. Yes, DVD players might become scarce in 20-30 years, but most ancient formats can easily still be played. As one example, I just transferred a large lot of 78 rpm records as part of a job I did for a Hollywood family. Also, I regularly transfer 16mm film dating back to the late 1920s.
Here's an even more important reason not to do this work: the result will look worse than the original, not better. Converting to MP4 will degrade the video.
So you might want to copy the DVDs to a hard drive (don't use SSD or flash), but that's as far as I'd go.
So, you are doing this work based on flawed reasoning, and you are permanently degrading you video.
My advice: find something else to do.
Last edited by johnmeyer; 2nd Oct 2020 at 14:41.
As johnmeyer said, unless you specifically need a much smaller sized file conversion to fit the limited local capacity of a portable device, there is no reason to "downconvert" your VHS>DVD archive to MP4. "Futureproofing" can be done by a simple, lossless repackaging of the videos from the chopped up, convoluted VOB structure (required by the Hollywood dvd standard) into the generic MPG format (where one movie or TV episode or wedding/event tape on the DVD = one MPG file instead of a bunch of discontinuous VOBs). While its true the physical optical DVD and BluRay formats are dying out, and drives/players for them will probably disappear in the next decade, the MPG file format is universal. As long as you have a copy of the DVD stored as a disc image or repackaged as MPG files on a hard drive or your cloud account, any future computer or media playback device should be able to play them, and the videos will outlive you.
IOW, convert VOBs to MPGs first (no loss from the original DVD quality), then edit the MPGs, and only after editing the MPGs would you do the lossy conversion to H264 or H265. Don't perform the lossy conversion to H264 first and then edit the MP4s: thats backwards (although of course possible).
I'm actually quite surprised that the MPEG2 to H264 conversion for these types of tapes is that terrible! Thanks for the heads up. I compared a sample such re-encode on my 13" laptop and didn't notice too much of a difference, but I will definitely be watching these on a large 4K TV in the future, so that's good to know to avoid that kind of mistake.
In my experience, however, any attempt to convert the VHS VOB to any format other than a simple repackaging to MPG results in hideous quality loss. The issue seems to be the inherent yuck signal quality of even the best VHS tapes captured with the best hardware chain: the digital realm just doesn't take kindly to VHS as a source captured to VOB/DVD as the first step. The initial dvd (or MPG file conversion from its VOBs) can just about pass and look decent even on a fairly large HDTV. But the minute you try and re-code it to a smaller, more efficient, more versatile file like H264/MP4, the apparent quality drops like a stone. VOB/MPEG2 is kind of a funky format in itself, that does some funky things with VHS input. So a VHS based VOB/MPG has mediocre quality given the fairly large file size (often 4 GB for a two hour VHS).
This is naturally frustrating today, when a mere 495mb H264 file of streamed movie can look pretty darned good at 1/10th the size of a dvd. Obviously it would be great if we could reformat our decade-old 4.37GB dvd captures of VHS to a 495mb MP4 to use on phones, tablets, personal cloud streaming, etc. But DVD captured from VHS has brick wall limitations that tend to prevent this: reducing the VOB size by 90% or even 50% to make a convenient MP4 just blows what little quality there was into the weeds. Usually, for me, and several people I know: it might be perfectly acceptable for you (maybe your tapes were just better, or whatever). No harm in trying some different Handbrake or ffmpeg settings to find out. But do try to avoid editing post-conversion from VOB to MP4 or MKV: do it in the MPG format, and save those original MPGs if you have enough storage space.
The quality snafu that bites when converting VHS-based DVDs to MP4/MKV is one of the compelling reasons many here no longer use dvd recorders as their primary VHS digitizing device. Instead, they capture directly from VHS to their PC, in an enormous file size that lends itself much better to editing, adding effects, then reducing to a more reasonable MP4 or MKV file size. If you avoid the limitations of the DVD/VOB format at the start, you have much more freedom to make smaller files later. The counterargument being: a good dvd recorder is more user-friendly for the less geek-oriented among us, and if you're OK with "settling" for the DVD or MPG format with its size and quality specs, it can be the quickest easiest route to digitizing VHS (and just as archival or future-proofed as h264/x264/h265).
Last edited by orsetto; 2nd Oct 2020 at 16:25.
Some people may be influenced by the speed with which VHS players are disappearing. However, while that format was equally as ubiquitous as DVD, the players are the most complicated piece of technology ever introduced into the home, and are almost impossible to keep playing. By contrast, except for rubber belts in some DVD players, there really isn't anything to wear out. This especially true of DVD players that fit into computers because they do not contain power supplies. As an EE who repairs stuff, 95% of all failures in modern electronics is the power supply, because even good electrolytic capacitors get beat up in a switch mode power supply.
The timeline depends on what tea leaves you read, but physical media as a "thing" is dead. The wake may last another ten or twelve years, but doesn't really change matters. I don't particularly like this trend, because I prefer local actual media in my house to some ephemeral cloud or streaming source, but there's no fighting the tide. Last year several mfrs announced they were phasing out of the internal and external optical drive/burner business, and the feature is headed to the oblivion of floppy drives in new computers. There's still a number of universal standalone dvd/bd/cd players on the market, but not the wide choice of premium versions available previously: I don't expect much beyond some crap Funai WalMart special in six or seven years.
IOW, disc hardware will be around, but not as a mainstream thing: you'll have to make an effort to acquire or replace it. Both TY and Verbatim have exited the quality blank media business: no telling the archival durability of the stuff thats left, or how long it will remain available. And of course Hollywood can't wait to dance on the grave of physical media: its been their dream ever since they got dragged against their will into VHS. They're giddy over streaming and their return to total control over content (for now , anyway: we'll see how happy they are when the inevitable shakeout hits them, and they realize consumers are not going to sign up for fourteen individual streaming services forever).
So its not surprising people are thinking they need to "do something soon" about their disc material. Mfrs go where the youth market is: corporate storage has long since moved to the cloud and nobody cares what niche enthusiasts want. I love the reactions from millennials when they ask me for a video and I give it to them on a dvd-r instead of a memory stick: befuddlement by a remarkable percentage who literally don't know what the hell to do with a disc, or sneering contempt from those who do know, but feel its a PITA anachronism. I'm afraid CD, DVD and BD will never achieve the startling resurrection and chic that vinyl turntables did: vinyl is perceived as cool and vintage, optical disc is simply passe.
I don't put much stock in the durability of optical players over VCRs. There are millions of sturdy mass-produced Panasonic VHS decks made in the mid to late 90s that still function perfectly (and will continue for another 20 years with careful use or simple repairs). DVD and CD players, not so much: the drives are just as complex and intricate a creation as a VHS transport, but completely disposable and non-repairable. Anyone who's suffered the sudden death of their irreplaceable DVD/HDD recorder will understand, as well as anyone who's doted on one of the really excellent premium CD players that became doorstops when Sony or Phillips ceased making replacement laser modules in 2010. Most of today's bd players are as filmsy as a dandelion in October: if it isn't the disc drive itself, other electronics go pffft (and nobody wants to repair surface mount, lead-free electronics anymore).
Last edited by orsetto; 2nd Oct 2020 at 20:19.
But those are the worst-case end of the spectrum. Best case, you're perfectly happy with whatever new disposable player/drive you can lay hands on today, and don't mind jumping to whatever random version replaces it until optical finally disappears from the market. VHS has more of a binary repair situation: the mechanism is either bulletproof and lasts forever with no or minimal servicing (a huge percentage of consumer models as long as they weren't abused) or a snakepit of a time-sink requiring specialized tools and skill to maintain (the top ten enthusiast models like Panasonic AG1980 or anything with a JVC nameplate).
Just as there were CD players and CD players, there were VHS and VHS. The further up you go on the performance ladder, the higher your odds of it spending agonizing time and money in the shop and requiring some crazy-scarce part to reach peak performance. Many a mass-produced older CD player still works fine, while some of the awesome premium Denon, Nakamichi, and Sony ES are nail-biters just itching to die on you (if they haven't already, more than once). Probably half the non-descript Panasonic VCRs out there can be bounced down a flight of concrete stairs and still function perfectly, while the bi-polar, sadistic witches brew AG1980 will drive you to the poorhouse (assuming you can even find a competent tech within 500 miles of your city willing to work on it).
Nobody is gonna waste time and money repairing something of average-good performance that is plentiful in good condition. It would be pointless to spend $$$ repairing a Panasonic 2560 or Mitsubishi 748 when nice clean examples or equivalents are fairly easy to find. Ditto your average CD or DVD player. But if you're the type who insists on "the best", you're gonna become well-acquainted with a couple specialist repair techs. This point seems to finally be sinking in with second-hand buyers: I've noticed a steady uptick lately in prices for "midrange" but reliable A/V gear, while the vastly more trouble-prone premium models have begun to plateau after years of rampant price escalation.