FFmpeg Command to Output MPEG-2 VOB

This article provides a direct guide on how to write an FFmpeg command to output video in the MPEG-2 Program Stream (VOB) container. You will find the exact command-line syntax for both automatic presets and manual configurations, along with a breakdown of the essential parameters required to ensure compatibility with the VOB format, which is standard for DVD-Video.


The Standard Command (Using DVD Presets)

The easiest and most reliable way to output a VOB file in FFmpeg is to use the built-in target presets. These presets automatically configure the correct video codec, audio codec, resolution, bitrate, and container format required for standard MPEG-2 Program Streams.

For NTSC format (used primarily in North America and Japan):

ffmpeg -i input.mp4 -target ntsc-dvd output.vob

For PAL format (used primarily in Europe and other regions):

ffmpeg -i input.mp4 -target pal-dvd output.vob

The Manual Command (For Custom Settings)

If you need custom control over the bitrate, resolution, or aspect ratio while still outputting to a VOB container, you can define the parameters manually.

Below is the standard manual command for a high-quality MPEG-2 VOB file:

ffmpeg -i input.mp4 -c:v mpeg2video -b:v 5000k -maxrate 9000k -bufsize 1835k -c:a ac3 -b:a 192k -f vob output.vob

Parameter Breakdown

Understanding the individual arguments used in the manual command allows you to customize the output to your specific needs: