xm:lab

 English |  Español |  Français |  Italiano |  Português |  Русский |  Shqip

Open Video Workbook - Archived April 29th

Hands-On: Transcoding with FFmpeg

In this part, you will find out how to encode in MPEG2, the format for the dvd authoring. At the end of this part, if you want to edit a DVD in the wrapper Vob, we invite you to see the chapter : Hands On - DVD.

The DVD use the compression MPEG 2. The size or the resolution of the picture is 720x576 in a frame rate of 25 frames per second for Europe and for USA it is 720x480 in a frame rate of 29.97 frames per second. The aspect can be in 4/3 or 16/9. The total bitrate is at maximum 9800 kb/s. Generally, the video bitrate is 8000 kb/s and the audio 1536 kb/s. The rate of compression depends of the duration of your video. You have to adapt the quality of your compression with the size of the memory of your optical support in this case the DVD.

Stay with your Terminal or Konsole, we'll use FFMPEG for this in the first case. Why? Because FFMPEG has a preset for that and becuase FFMPEG is published under a GLP licence. The method is very simple. Call FFMPEG, choose your video to encode, call the preset to encode for a DVD and name your new file media in MPEG2 format that will be generated.

ffmpeg -i your_video.mp4 -target pal-dvd your_dvd.mp2

And validate by Enter on your keyboard. The processus of encodage is starting. It will take a certain time.

Some basics commands can refine your project, change the letter x by your own value ;

  • -b xxxk to define the bitrate of your video codec
  • -ab xxxk to define the bitrate of you audio codec
  • -aspect x:x  to define 16/9 or 4/3

There has been error in communication with Booktype server. Not sure right now where is the problem.

You should refresh this page.