[FFmpeg-user] creating dvd from m2t files
François Patte
francois.patte at mi.parisdescartes.fr
Sun Jun 9 23:58:01 CEST 2013
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Le 09/06/2013 19:45, Carl Eugen Hoyos a écrit :
> François Patte <francois.patte <at> mi.parisdescartes.fr> writes:
>
>> /usr/local/bin/ffmpeg -i "Bandits, bandits.m2t"
>> -aspect 16:9 -target pal-dvd -map 0 -c:a copy
>> -codec:s dvbsub output.mpeg
>
> You cannot mux dvbsubtitles to dvd files,
> please try -scodec dvdsub
*1st attempt:*
/usr/local/bin/ffmpeg -i "Bandits, bandits.m2t" -aspect 16:9 -target
pal-dvd -map 0 -c:a copy -codec:s dvbsub output.mpeg
ffmpeg version N-53937-gada497e Copyright (c) 2000-2013 the FFmpeg
developers
built on Jun 9 2013 17:33:17 with gcc 4.3.2 (GCC) 20081105 (Red Hat
4.3.2-7)
configuration:
libavutil 52. 35.100 / 52. 35.100
libavcodec 55. 15.100 / 55. 15.100
libavformat 55. 8.102 / 55. 8.102
libavdevice 55. 2.100 / 55. 2.100
libavfilter 3. 75.101 / 3. 75.101
libswscale 2. 3.100 / 2. 3.100
libswresample 0. 17.102 / 0. 17.102
[mpeg2video @ 0x92b6a00] Invalid frame dimensions 0x0.
Last message repeated 18 times
[mpegts @ 0x92b2ce0] max_analyze_duration 5000000 reached at 5016000
microseconds
[mpegts @ 0x92b2ce0] PES packet size mismatch
Last message repeated 1 times
Input #0, mpegts, from 'Bandits, bandits.m2t':
Duration: 02:17:13.55, start: 53213.822833, bitrate: 3992 kb/s
Program 1000
Stream #0:0[0x208]: Video: mpeg2video (Main) ([2][0][0][0] /
0x0002), yuv420p, 720x576 [SAR 64:45 DAR 16:9], 25 fps, 25 tbr, 90k tbn,
50 tbc
Stream #0:1[0x212](fra): Audio: mp2 ([4][0][0][0] / 0x0004), 48000
Hz, stereo, s16p, 192 kb/s
Stream #0:2[0x213](deu): Audio: mp2 ([4][0][0][0] / 0x0004), 48000
Hz, stereo, s16p, 192 kb/s
Stream #0:3[0x21c](fra): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)
Stream #0:4[0x21d](deu): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)
Stream #0:5[0x21e](fra): Subtitle: dvb_subtitle ([6][0][0][0] /
0x0006) (hearing impaired)
File 'output.mpeg' already exists. Overwrite ? [y/N] y
Output #0, dvd, to 'output.mpeg':
Metadata:
encoder : Lavf55.8.102
Stream #0:0: Video: mpeg2video, yuv420p, 720x576 [SAR 64:45 DAR
16:9], q=2-31, 6000 kb/s, 90k tbn, 25 tbc
Stream #0:1(fra): Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz,
stereo, 448 kb/s
Stream #0:2(deu): Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz,
stereo, 448 kb/s
Stream #0:3(fra): Subtitle: dvb_subtitle (dvbsub)
Stream #0:4(deu): Subtitle: dvb_subtitle (dvbsub)
Stream #0:5(fra): Subtitle: dvb_subtitle (dvbsub) (hearing impaired)
Stream mapping:
Stream #0:0 -> #0:0 (mpeg2video -> mpeg2video)
Stream #0:1 -> #0:1 (copy)
Stream #0:2 -> #0:2 (copy)
Stream #0:3 -> #0:3 (dvbsub -> dvbsub)
Stream #0:4 -> #0:4 (dvbsub -> dvbsub)
Stream #0:5 -> #0:5 (dvbsub -> dvbsub)
Press [q] to stop, [?] for help
Ends like this:
Application provided invalid, non monotonically increasing dts to muxer
in stream 3: 9416289 >= 8887989
av_interleaved_write_frame(): Invalid argumen
*2nd attempt:*
/usr/local/bin/ffmpeg -fix_sub_duration -i "Bandits, bandits.m2t"
- -aspect 16:9 -target pal-dvd -map 0 -c:a copy -scodec dvdsub output.mpeg
ffmpeg version N-53937-gada497e Copyright (c) 2000-2013 the FFmpeg
developers
built on Jun 9 2013 17:33:17 with gcc 4.3.2 (GCC) 20081105 (Red Hat
4.3.2-7)
configuration:
libavutil 52. 35.100 / 52. 35.100
libavcodec 55. 15.100 / 55. 15.100
libavformat 55. 8.102 / 55. 8.102
libavdevice 55. 2.100 / 55. 2.100
libavfilter 3. 75.101 / 3. 75.101
libswscale 2. 3.100 / 2. 3.100
libswresample 0. 17.102 / 0. 17.102
[mpeg2video @ 0x9131a60] Invalid frame dimensions 0x0.
Last message repeated 18 times
[mpegts @ 0x912dd00] max_analyze_duration 5000000 reached at 5016000
microseconds
[mpegts @ 0x912dd00] PES packet size mismatch
Last message repeated 1 times
Input #0, mpegts, from 'Bandits, bandits.m2t':
Duration: 02:17:13.55, start: 53213.822833, bitrate: 3992 kb/s
Program 1000
Stream #0:0[0x208]: Video: mpeg2video (Main) ([2][0][0][0] /
0x0002), yuv420p, 720x576 [SAR 64:45 DAR 16:9], 25 fps, 25 tbr, 90k tbn,
50 tbc
Stream #0:1[0x212](fra): Audio: mp2 ([4][0][0][0] / 0x0004), 48000
Hz, stereo, s16p, 192 kb/s
Stream #0:2[0x213](deu): Audio: mp2 ([4][0][0][0] / 0x0004), 48000
Hz, stereo, s16p, 192 kb/s
Stream #0:3[0x21c](fra): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)
Stream #0:4[0x21d](deu): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)
Stream #0:5[0x21e](fra): Subtitle: dvb_subtitle ([6][0][0][0] /
0x0006) (hearing impaired)
File 'output.mpeg' already exists. Overwrite ? [y/N] y
Output #0, dvd, to 'output.mpeg':
Metadata:
encoder : Lavf55.8.102
Stream #0:0: Video: mpeg2video, yuv420p, 720x576 [SAR 64:45 DAR
16:9], q=2-31, 6000 kb/s, 90k tbn, 25 tbc
Stream #0:1(fra): Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz,
stereo, 448 kb/s
Stream #0:2(deu): Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz,
stereo, 448 kb/s
Stream #0:3(fra): Subtitle: dvd_subtitle (dvdsub)
Stream #0:4(deu): Subtitle: dvd_subtitle (dvdsub)
Stream #0:5(fra): Subtitle: dvd_subtitle (dvdsub) (hearing impaired)
Stream mapping:
Stream #0:0 -> #0:0 (mpeg2video -> mpeg2video)
Stream #0:1 -> #0:1 (copy)
Stream #0:2 -> #0:2 (copy)
Stream #0:3 -> #0:3 (dvbsub -> dvdsub)
Stream #0:4 -> #0:4 (dvbsub -> dvdsub)
Stream #0:5 -> #0:5 (dvbsub -> dvdsub)
Press [q] to stop, [?] for help
frame= 9212 fps= 75 q=2.0 Lsize= 155184kB time=00:06:08.44
bitrate=3450.4kbits/s dup=30 drop=0
video:133958kB audio:17240kB subtitle:187 global headers:0kB muxing
overhead 2.509638%
2 sound tracks: original + french.... no subtitles choice available
*3rd attempt:*
/usr/local/bin/ffmpeg -fix_sub_duration -i "Bandits, bandits.m2t"
- -aspect 16:9 -target pal-dvd -map 0 -c:a copy -c:s copy output.mpeg
ends like this:
*** glibc detected *** /usr/local/bin/ffmpeg: free(): invalid next size
(fast): 0x0a9e1200 ***
======= Backtrace: =========
/lib/libc.so.6[0x5223a4]
/lib/libc.so.6(cfree+0x96)[0x524356]
/usr/local/bin/ffmpeg[0x8800be2]
======= Memory map: ========
00110000-00112000 r-xp 00000000 fd:0a 1009246 /usr/lib/libXau.so.6.0.0
00112000-00113000 rw-p 00001000 fd:0a 1009246 /usr/lib/libXau.so.6.0.0
00166000-00186000 r-xp 00000000 09:00 51323 /lib/ld-2.9.so
00187000-00188000 r--p 00020000 09:00 51323 /lib/ld-2.9.so
00188000-00189000 rw-p 00021000 09:00 51323 /lib/ld-2.9.so
001e4000-001e5000 r-xp 001e4000 00:00 0 [vdso]
00305000-0032c000 r-xp 00000000 09:00 52243 /lib/libm-2.9.so
0032c000-0032d000 r--p 00026000 09:00 52243 /lib/libm-2.9.so
0032d000-0032e000 rw-p 00027000 09:00 52243 /lib/libm-2.9.so
00330000-00333000 r-xp 00000000 09:00 52238 /lib/libdl-2.9.so
00333000-00334000 r--p 00002000 09:00 52238 /lib/libdl-2.9.so
00334000-00335000 rw-p 00003000 09:00 52238 /lib/libdl-2.9.so
00337000-0034d000 r-xp 00000000 09:00 52203 /lib/libpthread-2.9.so
0034d000-0034e000 r--p 00015000 09:00 52203 /lib/libpthread-2.9.so
0034e000-0034f000 rw-p 00016000 09:00 52203 /lib/libpthread-2.9.so
0034f000-00351000 rw-p 0034f000 00:00 0
00353000-00366000 r-xp 00000000 09:00 52244 /lib/libz.so.1.2.3
00366000-00367000 rw-p 00012000 09:00 52244 /lib/libz.so.1.2.3
0046d000-00475000 r-xp 00000000 09:00 52234 /lib/librt-2.9.so
00475000-00476000 r--p 00007000 09:00 52234 /lib/librt-2.9.so
00476000-00477000 rw-p 00008000 09:00 52234 /lib/librt-2.9.so
00479000-0047e000 r-xp 00000000 fd:0a 1009313 /usr/lib/libXdmcp.so.6.0.0
0047e000-0047f000 rw-p 00004000 fd:0a 1009313 /usr/lib/libXdmcp.so.6.0.0
00481000-00482000 r-xp 00000000 fd:0a 1008132
/usr/lib/libxcb-xlib.so.0.0.0
00482000-00483000 rw-p 00000000 fd:0a 1008132
/usr/lib/libxcb-xlib.so.0.0.0
00485000-004a0000 r-xp 00000000 fd:0a 1008131 /usr/lib/libxcb.so.1.0.0
004a0000-004a1000 rw-p 0001b000 fd:0a 1008131 /usr/lib/libxcb.so.1.0.0
004a3000-004b2000 r-xp 00000000 fd:0a 1008448 /usr/lib/libXext.so.6.4.0
004b2000-004b3000 rw-p 0000e000 fd:0a 1008448 /usr/lib/libXext.so.6.4.0
004b3000-00621000 r-xp 00000000 09:00 51606 /lib/libc-2.9.so
00621000-00623000 r--p 0016e000 09:00 51606 /lib/libc-2.9.so
00623000-00624000 rw-p 00170000 09:00 51606 /lib/libc-2.9.so
00624000-00627000 rw-p 00624000 00:00 0
00747000-0074b000 r-xp 00000000 fd:0a 1008733 /usr/lib/libXv.so.1.0.0
0074b000-0074c000 rw-p 00003000 fd:0a 1008733 /usr/lib/libXv.so.1.0.0
007d2000-007df000 r-xp 00000000 09:00 52262
/lib/libgcc_s-4.3.2-20081105.so.1
007df000-007e0000 rw-p 0000c000 09:00 52262
/lib/libgcc_s-4.3.2-20081105.so.1
00a97000-00aa7000 r-xp 00000000 fd:0a 1010432 /usr/lib/libjack.so.0.0.28
00aa7000-00aa9000 rw-p 00010000 fd:0a 1010432 /usr/lib/libjack.so.0.0.28
00aa9000-00ab1000 rw-p 00aa9000 00:00 0
02ed3000-02fd0000 r-xp 00000000 fd:0a 1008214 /usr/lib/libX11.so.6.2.0
02fd0000-02fd3000 rw-p 000fd000 fd:0a 1008214 /usr/lib/libX11.so.6.2.0
02fd3000-02fd4000 rw-p 02fd3000 00:00 0
05f21000-05f93000 r-xp 00000000 fd:0a 1009608
/usr/lib/libSDL-1.2.so.0.11.2
05f93000-05f95000 rw-p 00072000 fd:0a 1009608
/usr/lib/libSDL-1.2.so.0.11.2
05f95000-05fc4000 rw-p 05f95000 00:00 0
06f94000-06fa4000 r-xp 00000000 09:00 52271 /lib/libbz2.so.1.0.4
06fa4000-06fa5000 rw-p 00010000 09:00 52271 /lib/libbz2.so.1.0.4
070c3000-071a2000 r-xp 00000000 09:00 52270 /lib/libasound.so.2.0.0
071a2000-071a6000 rw-p 000df000 09:00 52270 /lib/libasound.so.2.0.0
08048000-089bd000 r-xp 00000000 fd:06 896513 /opt/bin/ffmpeg
089bd000-089dc000 rw-p 00974000 fd:06 896513 /opt/bin/ffmpeg
089dc000-08fbe000 rw-p 089dc000 00:00 0
0a9e0000-0b5c7000 rw-p 0a9e0000 00:00 0 [heap]
b1800000-b1821000 rw-p b1800000 00:00 0
b1821000-b1900000 ---p b1821000 00:00 0
b19af000-b1ec9000 rw-p b19af000 00:00 0
b1ec9000-b1eca000 ---p b1ec9000 00:00 0
b1eca000-b28ca000 rw-p b1eca000 00:00 0
b28ca000-b28cb000 ---p b28ca000 00:00 0
b28cb000-b32cb000 rw-p b28cb000 00:00 0
b32cb000-b32cc000 ---p b32cb000 00:00 0
b32cc000-b3ccc000 rw-p b32cc000 00:00 0
b3ccc000-b3ccd000 ---p b3ccc000 00:00 0
b3ccd000-b46cd000 rw-p b3ccd000 00:00 0
b46cd000-b46ce000 ---p b46cd000 00:00 0
b46ce000-b50ce000 rw-p b46ce000 00:00 0
b50ce000-b50cf000 ---p b50ce000 00:00 0
b50cf000-b5acf000 rw-p b50cf000 00:00 0
b5acf000-b5ad0000 ---p b5acf000 00:00 0
b5ad0000-b64d0000 rw-p b5ad0000 00:00 0
b64d0000-b64d1000 ---p b64d0000 00:00 0
b64d1000-b6ed1000 rw-p b64d1000 00:00 0
b6ed1000-b6ed2000 ---p b6ed1000 00:00 0
b6ed2000-b78d7000 rw-p b6ed2000 00:00 0
b78f7000-b78f8000 rw-p b78f7000 00:00 0
bfec9000-bfede000 rw-p bffeb000 00:00 0 [stack]
Abandon (ie. give up)
Result: 2 sound tracks original+french
3 subtitle tracks but empty, I can select them but nothing
appears on screen
Thanks for attention.
- --
François Patte
UFR de mathématiques et informatique
Laboratoire CNRS MAP5, UMR 8145
Université Paris Descartes
45, rue des Saints Pères
F-75270 Paris Cedex 06
Tél. +33 (0)1 8394 5849
http://www.math-info.univ-paris5.fr/~patte
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/
iEYEARECAAYFAlG0+mgACgkQdE6C2dhV2JVd4wCdEEH5g/F+ablFcGFHaEKN6fbC
97kAn02yxpOyOOgxnjvYHa0rQrEQiqDs
=4vVZ
-----END PGP SIGNATURE-----
More information about the ffmpeg-user
mailing list