[FFmpeg-user] Adding Subtitles Problem...
Moritz Barsnick
barsnick at gmx.net
Mon Jun 17 21:25:42 CEST 2013
Hi Mike,
On Mon, Jun 17, 2013 at 16:51:52 +0100, Mike Kavanagh wrote:
> The source video does not contain any subtitles, as I am expecting them to
> be feed in afresh from the srt file - am I right in thinking an srt file can
> be created as an ascii file?
Your files are being identified correctly, incl. your manually crafted
SRT file, but ffmpeg sees subtitles in the MP4 input file and passes
them on to the output file, ignoring your SRT file. Looking at your
log:
First file (MP4), incl. subtitle stream:
Duration: 00:00:05.00, start: 0.000000, bitrate: 613 kb/s
Stream #0:0(und), 1, 1/16384: Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1340x886, 611 kb/s, 1 fps, 1 tbr, 16384 tbn, 2 tbc
Metadata:
handler_name : VideoHandler
Stream #0:1(und), 0, 1/1000: Subtitle: mov_text (tx3g / 0x67337874)
Metadata:
handler_name : SubtitleHandler
Second file (SRT):
Input #1, srt, from 'test.srt':
Duration: N/A, bitrate: N/A
Stream #1:0, 0, 1/1000: Subtitle: subrip
But here's the output mapping:
Stream mapping:
Stream #0:0 -> #0:0 (h264 -> libx264)
Stream #0:1 -> #0:1 (mov_text -> mov_text)
See, ffmpeg is taking 0:1 as subtitle input, not 1:0. You should be
adding map options:
-map 0:0 -map 1:0
which would/should result in something like this:
Stream mapping:
Stream #0:0 -> #0:0 (h264 -> libx264)
Stream #1:0 -> #0:1 (subrip -> mov_text)
Moritz
More information about the ffmpeg-user
mailing list