I'm trying to add subtitles to an .avi file that I have. As far as I know I'm
supposed to use the following command:
# avconv -i input.avi -i input.sub -map 0 -map 1 -c:v copy -c:a copy -c:s xsub
-y output.avi
but all I get is:
avconv version 9.7, Copyright (c) 2000-2013 the Libav developers
built on Jul 17 2013 10:22:55 with gcc 4.7.3 (Gentoo 4.7.3 p1.0, pie-0.5.5)
Guessed Channel Layout for Input Stream #0.1 : stereo
Input #0, avi, from 'input.avi':
Metadata:
encoder : VirtualDubMod 1.5.10.1 (build 2366/release)
Duration: 00:41:07.88, start: 0.000000, bitrate: 1358 kb/s
Stream #0.0: Video: mpeg4 (Advanced Simple Profile), yuv420p, 624x352 [PAR
1:1 DAR 39:22], 25 tbn, 25 tbc
Stream #0.1: Audio: mp3, 48000 Hz, stereo, s16p, 128 kb/s
[mpeg @ 0xbddb40] max_analyze_duration reached
Input #1, mpeg, from 'input.sub':
Duration: 00:02:12.72, start: 1317.715000, bitrate: 9 kb/s
Stream #1.0[0x20]: Subtitle: dvdsub
Output #0, avi, to 'output.avi':
Metadata:
ISFT : Lavf54.20.3
Stream #0.0: Video: mpeg4, yuv420p, 624x352 [PAR 1:1 DAR 39:22], q=2-31,
25 tbn, 25 tbc
Stream #0.1: Audio: libmp3lame, 48000 Hz, stereo, 128 kb/s
Stream #0.2: Subtitle: xsub, 200 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
Stream #1:0 -> #0:2 (dvdsub -> xsub)
Press ctrl-c to stop encoding
[avi @ 0xbdaa20] Application provided invalid, non monotonically increasing
dts to muxer in stream 2: 32516 >= 32516
av_interleaved_write_frame(): Invalid argument
If I try to remux in an .mp4 (or .mkv) file I use:
# avconv -i input.avi -i input.sub -map 0 -map 1 -c:v copy -c:a copy -c:s ssa
-y output.mp4
and I get a different error:
avconv version 9.7, Copyright (c) 2000-2013 the Libav developers
built on Jul 17 2013 10:22:55 with gcc 4.7.3 (Gentoo 4.7.3 p1.0, pie-0.5.5)
Guessed Channel Layout for Input Stream #0.1 : stereo
Input #0, avi, from 'input.avi':
Metadata:
encoder : VirtualDubMod 1.5.10.1 (build 2366/release)
Duration: 00:41:07.88, start: 0.000000, bitrate: 1358 kb/s
Stream #0.0: Video: mpeg4 (Advanced Simple Profile), yuv420p, 624x352 [PAR
1:1 DAR 39:22], 25 tbn, 25 tbc
Stream #0.1: Audio: mp3, 48000 Hz, stereo, s16p, 128 kb/s
[mpeg @ 0x1490b40] max_analyze_duration reached
Input #1, mpeg, from 'input.sub':
Duration: 00:02:12.72, start: 1317.715000, bitrate: 9 kb/s
Stream #1.0[0x20]: Subtitle: dvdsub
Output #0, mp4, to 'output.mp4':
Metadata:
encoder : VirtualDubMod 1.5.10.1 (build 2366/release)
Stream #0.0: Video: mpeg4, yuv420p, 624x352 [PAR 1:1 DAR 39:22], q=2-31,
90k tbn, 25 tbc
Stream #0.1: Audio: libmp3lame, 48000 Hz, stereo, 128 kb/s
Stream #0.2: Subtitle: ass, 200 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
Stream #1:0 -> #0:2 (dvdsub -> ass)
Error while opening encoder for output stream #0:2 - maybe incorrect
parameters such as bit_rate, rate, width or height
What am I doing wrong?
--
Paolo Pedroni
Email: paolo.pedroni<at>iol.it
_______________________________________________
libav-tools mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-tools