Return to site

Vob To Mp4 Linux

broken image


Light source video editing. In this guide I'll show you how to do that by using FFmpeg (version 3.2.5 or greater) on a Linux-based operating system - I'm currently using Debian Stable, aka Jessie.

Adobe premiere pro mac os x 10 6 8. The mplayer site has a document on mp4 conversions. I think that mencoder/ffmpeg don't really support the mp4 container, and a subsequent muxer is needed to convert the output to mp4. Another option is h264enc, it's a sophisticated shell around mencoder and other tools to generate high quality mp4 files.

Apr 03, 2019 Here's how to convert your VOB files into MP4 using Online Video Converter: Open your browser and navigate to Online Converter's home page. Select 'MP4' from the dropdown menu in the 'Video Converter' section. This will take you to the 'Convert video to MP4' section of the site. To create a VOB on Linux and UNIX, you use the cleartool mkvob command. The mkvob command does the following: Creates a VOB storage directory at the path you specify. The VOB storage directory contains database and a set of storage tools. Creates a VOB tag with which the developers access the VOB. Places entries in the network's VOB registry. Other formats can also be used, like mp4. In my test (with a rather mediocre processor) a 2.6 GB vob file (already concatenated out of three other files) was converted to a 960 MB avi video of comparable quality in about 50 minutes. 20 is the medium acceptable quality (in Handbrake help articles I have seen). Apart from the 2 VOB file converters above, you can also rely on Handbrake to convert a VOB file to MP4 on your Mac. HandBrake is a free and open-source video transcoder. This multiplatform converter supports both Mac, Windows and Linux.

FFmpeg is able to deal with a vast amount of audio/video formats and containters. For our task I will be using Matroska Multimedia Container container (.mkv files), as it is capable of storing different audio, video and subtitle tracks together. The video stream will be encoded with H.264 codec, currently the best guy in town. Audio tracks will be encoded in mp3 format.

Let's begin!

Step 1: unify your VOBs

VOB file are usually 1 Gb each in order to be compatible with all operating systems, as some cannot read files larger than that size. The first step then is to join them into a single, big VOB file. To do that, browse to the VIDEO_TS folder and do:

That's it.

Step 2: identify the streams

Now let's inspect the newly created file: we want to find what kind of stuff it contains. Use FFmpeg for that, as follows:

For example, you might end up with something like:

Vob To Mp4 Online

Here FFmpeg reports that my VOB file contains five streams. Starting from the first one, Stream #0:0 Download notepad for mac. contains data regarding the DVD's menu navigation. We can get rid of it. Stream #0:1 is the actual movie. The remaining streams are audio tracks. I'll discard Stream #0:2 as it contains the same data (English audio track) encoded in a different format.

Mind the deep-buried streams!

Normally, while looking for streams, FFmpeg parses only few seconds of the input data as most formats have a global header there that describes everything present in the file. Unfortunately VOBs have no headers and it is likely to find movies that hold additional streams further down the VOB file.

Let FFmpeg scan it thoroughly by adding two more flags: -analyzeduration (in microseconds) and -probesize (in bytes). Honestly I'm not able to tell the difference between those options: put in there some fairly large numbers and tweak them until you are satisfied. For example:

And, not surprisingly, two more streams are found:

Subtitles: let's keep them!

Vob To Mp4 Free Converter

Free

Step 3: encoding

We are ready to pack our DVD into a beautiful .mkv file. The command looks like:

Let me dissect it:

  • -analyzeduration 100M -probesize 100M — keep this one so that FFmpeg is able to find hidden streams;
  • -i output.vob — the input file;
  • -map 0:1 -map 0:3 -map 0:4 -map 0:5 -map 0:6 — here I'm mapping the streams, namely I'm telling FFmpeg to keep Stream 0:1, Stream 0:3, Stream 0:4, Stream 0:5, Stream 0:6 and put them in the output file in that specific order;
  • -metadata[.] — this is used to give streams a title and other additional information, specifically to audio tracks (s:a:0 and s:a:1 where a stands for audio) and subtitles (s:s:0 and s:s:1 where s stands for subtitles);
  • -codec:v libx264 -crf 21 — defines the video codec in use and the constant rate factor (crf), namely the quality level. This method allows the encoder to keep a constant quality level, regardless the output file size: 0 is lossless, 23 is default, and 51 is worst possible. The sane range is between 18 and 28;
  • -codec:a libmp3lame -qscale:a 2 — defines the audio codec in use and the quality level: 0-3 will produce transparent results, 4 (default) should be close to perceptual transparency, 6-9 produces an 'acceptable' quality. Using numbers from 0 to 9 means that the audio track will be encoded in variable bitrate (vbr) mode: smaller files, better quality;
  • -codec:s copys stands for subtitles: copy them as they are;
  • output.mkv — the output file.

Vob Files To Mp4

Bonus point: if your machine supports it, add the flag -threads N to enable multi-threading and give the encoding a boost. Replace N with the number of your CPU cores.

Sources

Vob To Mp4 Online Converter

Wikipedia - VOB (link)
Wikipedia - Matroska (link)
FFmpeg f.a.q. - 3.16 Why does FFmpeg not see the subtitles in my VOB file? (link)
FFmpeg wiki - FFmpeg and H.264 Encoding Guide (link)
FFmpeg wiki - FFmpeg MP3 Encoding Guide (link)





broken image