Menu

#588 Muxing DVD compliant elementary streams using ffmpeg

common
closed
nobody
None
5
2015-02-18
2015-02-13
Manolito
No

When I feed the software with already DVD compliant elementary streams, and I just want to mux and author these streams without any transcoding, then the only way to create a working DVD is to use Mplex for muxing. If the default ffmpeg is used for muxing then the resulting DVD is totally broken, it does not play in any of the hardware DVD players I tried it with.

The error lies in the ffmpeg command line which is used for muxing. This is the command line:
ffmpeg -i "I:\test.m2v" -i "I:\test.ac3" -f dvd -c✌️0 copy -b:a 224000 -ar 48000 -c🅰️0 copy -map 0:v -map 1:a -map -0:s "I:\dvd-cache\entry001.vob"

With this command line the resulting VOB will have no PTS (Presentation Time Stamps) resulting in a non-playable DVD. You have to use this command line instead:
ffmpeg -fflags +genpts -i "I:\test.m2v" -i "I:\test.ac3" -f vob -c✌️0 copy -c🅰️0 copy -map 0:v -map 1:a -map -0:s "I:\dvd-cache\entry001.vob"

The important difference is the "-fflags +genpts" command (replacing -f dvd with -f vob is probably irrelevant as well as omitting the audio bitrate and sample rate parameters).

This command forces ffmpeg to create the PTS, and the parameter has to be the first one in the command line (before the first input parameter). I did test this with several different source files, and it worked every time. Please add this to the next version...

Cheers
manolito

Discussion

  • NtAlex

    NtAlex - 2015-02-15

    fixed in DVDStyler 2.9.1

     
  • Manolito

    Manolito - 2015-02-18

    really fixed in version 2.9.2

     
  • NtAlex

    NtAlex - 2015-02-18
    • status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB