[FFmpeg-user] vob->mpeg4 with subtitle track
Alon Bar-Lev
alon.barlev at gmail.com
Mon Nov 19 14:21:07 CET 2012
Hello All,
I know this had been discussed some times, but I could not fine any
definite answer... I have vob file with dvdsub stream, I want this stream
to be embedded within the output mpeg4.
I could not find any way to do so.
I tried to use subtitle codecs such as mpeg4 and such, and could not find
any working sequence.
What I am getting is:
[avi @ 0x4513df04e40] Subtitle streams other than DivX XSUB are not
supported by the AVI muxer.
I did find that srt can be embedded, but I have no srt, I want to embed the
current stream.
Thank you,
Alon Bar-Lev.
---
ffmpeg \
-i "${input}" \
-map 0:0 \
-map 0:1 \
-map 0:2 \
-codec:v mpeg4 \
-codec:a copy \
-codec:s copy \
-qscale:v 4 \
-threads 6 \
-y "${output}"
ffmpeg version 0.10.3 Copyright (c) 2000-2012 the FFmpeg developers
built on Nov 19 2012 14:12:32 with gcc 4.5.4
configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64
--mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc
--cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --optflags='-O2
-march=native -fomit-frame-pointer -pipe' --extra-cflags='-O2 -march=native
-fomit-frame-pointer -pipe' --extra-cxxflags='-O2 -march=native
-fomit-frame-pointer -pipe' --disable-static --enable-gpl --enable-version3
--enable-postproc --enable-avfilter --disable-stripping --disable-debug
--disable-doc --disable-network --disable-vaapi --disable-vdpau
--disable-ffplay --enable-libmp3lame --enable-libvo-aacenc
--enable-libvorbis --enable-libxvid --disable-indev=v4l --disable-indev=oss
--disable-indev=jack --enable-x11grab --disable-outdev=oss
--disable-outdev=sdl --enable-libopenjpeg --disable-amd3dnow
--disable-amd3dnowext --disable-altivec --disable-mmx2 --disable-vis
--disable-neon --cpu=host --enable-hardcoded-tables
libavutil 51. 35.100 / 51. 35.100
libavcodec 53. 61.100 / 53. 61.100
libavformat 53. 32.100 / 53. 32.100
libavdevice 53. 4.100 / 53. 4.100
libavfilter 2. 61.100 / 2. 61.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 6.100 / 0. 6.100
libpostproc 52. 0.100 / 52. 0.100
[mpeg @ 0x4513defe480] max_analyze_duration 5000000 reached at 5000000
Input #0, mpeg, from '1-01-2.vob':
Duration: 00:10:04.19, start: 165.932000, bitrate: 6289 kb/s
Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x576 [SAR
16:15 DAR 4:3], 9000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
Stream #0:1[0x80]: Audio: ac3, 48000 Hz, 5.1(side), s16, 448 kb/s
Stream #0:2[0x20]: Subtitle: dvd_subtitle
[buffer @ 0x4513df05d40] w:720 h:576 pixfmt:yuv420p tb:1/1000000 sar:16/15
sws_param:
[avi @ 0x4513df04e40] Subtitle streams other than DivX XSUB are not
supported by the AVI muxer.
Output #0, avi, to '1-01-2.avi':
Metadata:
encoder : Lavf53.32.100
Stream #0:0: Video: mpeg4 (FMP4 / 0x34504D46), yuv420p, 720x576 [SAR
16:15 DAR 4:3], q=2-31, 200 kb/s, 25 tbn, 25 tbc
Stream #0:1: Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, 5.1(side), 448
kb/s
Stream #0:2: Subtitle: dvd_subtitle
Stream mapping:
Stream #0:0 -> #0:0 (mpeg2video -> mpeg4)
Stream #0:1 -> #0:1 (copy)
Stream #0:2 -> #0:2 (copy)
Could not write header for output file #0 (incorrect codec parameters ?)
More information about the ffmpeg-user
mailing list