dvdauthor-ing via ffmpeg encodings
Hello all, I'm trying to use ffmpeg to create a DVD. The errors I'm getting (from dvdauthor) suggest that my mpeg-2 file isn't DVD compliant due to missing navigational packets [1]. But I believe ffmpeg has been patched to fix this [2], and others on this list seem to be making DVDs ok [3]. Any clues as to what I'm missing? Here are my command line sessions .. [gavinj at www dvd]$ ffmpeg -i infile.mpg -target pal-dvd -aspect 16:9 -hq -an -y infile.m2v ffmpeg version 0.4.9-pre1, build 4752, Copyright (c) 2000-2004 Fabrice Bellard configuration: --enable-mp3lame built on Apr 15 2005 20:11:42, gcc: 3.3.3 20040412 (Red Hat Linux 3.3.3-7) Input #0, mpeg, from 'infile.mpg': Duration: 00:00:14.1, start: 0.497567, bitrate: 1534 kb/s Stream #0.0: Video: mpeg1video, 448x336, 25.00 fps, 1300 kb/s Stream #0.1: Audio: mp2, 48000 Hz, stereo, 112 kb/s Output #0, dvd, to 'infile.m2v': Stream #0.0: Video: mpeg2video (hq), 720x576, 25.00 fps, q=2-31, 6000 kb/s Stream mapping: Stream #0.0 -> #0.0 Press [q] to stop encoding frame= 381 q=0.0 Lsize= 9976kB time=15.2 bitrate=5376.5kbits/s video:9774kB audio:0kB global headers:0kB muxing overhead 2.071378% [gavinj at www dvd]$ ffmpeg -vcodec copy -i infile.m2v -acodec copy -i infile.mp2 -y outfile.vob ffmpeg version 0.4.9-pre1, build 4752, Copyright (c) 2000-2004 Fabrice Bellard configuration: --enable-mp3lame built on Apr 15 2005 20:11:42, gcc: 3.3.3 20040412 (Red Hat Linux 3.3.3-7) Input #0, mpeg, from 'infile.m2v': Duration: 00:00:14.7, start: 0.500000, bitrate: 5551 kb/s Stream #0.0: Video: mpeg2video, 720x576, 25.00 fps, 9000 kb/s Input #1, mp3, from 'infile.mp2': Duration: 00:00:14.7, start: 0.000000, bitrate: 64 kb/s Stream #1.0: Audio: mp2, 48000 Hz, stereo, 64 kb/s Output #0, vob, to 'outfile.vob': Stream #0.0: Video: mpeg2video, 720x576, 25.00 fps, q=2-31, 9000 kb/s Stream #0.1: Audio: mp3, 48000 Hz, stereo, 64 kb/s Stream mapping: Stream #0.0 -> #0.0 Stream #1.0 -> #0.1 Press [q] to stop encoding frame= 381 q=-151864.6 Lsize= 10024kB time=14.7 bitrate=5572.5kbits/s video:9784kB audio:115kB global headers:0kB muxing overhead 1.265481% thanks, Gavin [1] http://www.webservertalk.com/archive227-2005-1-660283.html [2] https://init.linpro.no/pipermail/skolelinux.no/cinelerra/2004-December.txt [3] http://mplayerhq.hu/pipermail/ffmpeg-user/2005-April/000017.html
On Fri, 2005-04-15 at 22:06 +0100, Gavin Johnson wrote:
The errors I'm getting (from dvdauthor) suggest that my mpeg-2 file isn't DVD compliant due to missing navigational packets [1]. But I believe ffmpeg has been patched to fix this [2], and others on this list seem to be making DVDs ok [3]. Any clues as to what I'm missing? Here are my command line sessions ..
[gavinj at www dvd]$ ffmpeg -i infile.mpg -target pal-dvd -aspect 16:9 -hq -an -y infile.m2v
Here is where you encode the mpeg2video elementary video stream. [ ... ]
[gavinj at www dvd]$ ffmpeg -vcodec copy -i infile.m2v -acodec copy -i infile.mp2 -y outfile.vob
Then you mux the video elementary stream and a prepared elementary audio stream into a program stream, that's good, but you didn't think of one issue; the nav packets are inserted into the program stream, not into the elementary video stream. So, you need to add "-target pal-dvd" to the command line of your second ffmpeg command line as well.
On Sat, 16 Apr 2005, Erik Slagter wrote:
Then you mux the video elementary stream and a prepared elementary audio stream into a program stream, that's good, but you didn't think of one issue; the nav packets are inserted into the program stream, not into the elementary video stream. So, you need to add "-target pal-dvd" to the command line of your second ffmpeg command line as well.
Aha, that's it! thanks :) Gavin
participants (2)
-
erik@slagter.name -
gavinj@fnarg.net