[FFmpeg-user] Subtitle stream added to QT MOV format even when -sn switch used

Evan Scanlan lists at monopolis.org
Tue Aug 9 01:39:53 CEST 2011


Hi,

Apologies if this has been posted/solved elsewhere… I searched and did
not find this particular issue.  Also, I tried to post this last night
and it did
not seem to go through -- sorry if this is a double-post.

I am using FFMPEG to encode from an Matroska video (mkv) to a
Quicktime mov file.  Issue is that mov file includes subtitle stream
even when -sn switch is used.  This occurs with both the Fedora 12
current packaged binary (ffmpeg-0.7-45_rc1.fc12.x86_64) and with a
build from GIT source (about one month old).  It also happens when
using the MacPorts FFMPEG.  This does not seem to be a problem when
converting from other file formats to mov (e.g. m2ts to mov)

Here is a little example using the precompiled binary Fedora package.
The second time I run ffmpeg the subtitle stream appears even though
conversion was run with -sn the first time.

Any help or suggestions would be much appreciated.

Thanks!
Evan



[evan at linux]$ ffmpeg -t 5 -i test.mkv -map 0:0 -map 0:1 -vcodec copy
-acodec libmp3lame -ac 2 -async 2 -ar 48000 -ab 448k -sn -f mov
test.mov
ffmpeg version 0.7-rc1, Copyright (c) 2000-2011 the FFmpeg developers
 built on Jun 11 2011 21:15:16 with gcc 4.4.4 20100630 (Red Hat 4.4.4-10)
 configuration: --prefix=/usr --libdir=/usr/lib64
--shlibdir=/usr/lib64 --mandir=/usr/share/man --enable-shared
--enable-runtime-cpudetect --enable-gpl --enable-version3
--enable-postproc --enable-avfilter --enable-pthreads --enable-x11grab
--enable-vdpau --disable-avisynth --enable-libopencv
--enable-libdc1394 --enable-libdirac --enable-libgsm
--enable-libmp3lame --enable-libnut --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp
--enable-libschroedinger --enable-libspeex --enable-libtheora
--enable-libvorbis --enable-libx264 --enable-libxavs --enable-libxvid
--extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64
-mtune=generic -fPIC' --disable-stripping
 libavutil    50. 40. 1 / 50. 40. 1
 libavcodec   52.120. 0 / 52.120. 0
 libavformat  52.108. 0 / 52.108. 0
 libavdevice  52.  4. 0 / 52.  4. 0
 libavfilter   1. 77. 0 /  1. 77. 0
 libswscale    0. 13. 0 /  0. 13. 0
 libpostproc  51.  2. 0 / 51.  2. 0
[matroska,webm @ 0x1fa3f40] max_analyze_duration reached
[matroska,webm @ 0x1fa3f40] Estimating duration from bitrate, this may
be inaccurate
Input #0, matroska,webm, from 'test.mkv':
 Duration: 00:51:10.04, start: 0.000000, bitrate: 448 kb/s
   Chapter #0.0: start 0.000000, end 531.739533
   Metadata:
     title           : Chapter 00
   Chapter #0.1: start 531.739533, end 1150.858022
   Metadata:
     title           : Chapter 01
   Chapter #0.2: start 1150.858022, end 1862.610733
   Metadata:
     title           : Chapter 02
   Chapter #0.3: start 1862.610733, end 2475.014200
   Metadata:
     title           : Chapter 03
   Chapter #0.4: start 2475.014200, end 2475.014200
   Metadata:
     title           : Chapter 04
   Stream #0.0(eng): Video: vc1 (Advanced), yuv420p, 1920x1080 [PAR
1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc (default)
   Stream #0.1(eng): Audio: ac3, 48000 Hz, 5.1, s16, 448 kb/s (default)
   Metadata:
     title           : 3/2+1
   Stream #0.2(eng): Subtitle: pgssub (default)
Output #0, mov, to 'test.mov':
 Metadata:
   encoder         : Lavf52.108.0
   Chapter #0.0: start 0.000000, end 5.000000
   Metadata:
     title           : Chapter 00
   Stream #0.0(eng): Video: vc-1 / 0x312D6376, yuv420p, 1920x1080
[PAR 1:1 DAR 16:9], q=2-31, 24k tbn, 23.98 tbc (default)
   Stream #0.1(eng): Audio: libmp3lame, 48000 Hz, 2 channels, s16,
448 kb/s (default)
   Metadata:
     title           : 3/2+1
Stream mapping:
 Stream #0.0 -> #0.0
 Stream #0.1 -> #0.1
Press [q] to stop encoding
Input stream #0.1 frame changed from rate:48000 fmt:s16 ch:6 to
rate:48000 fmt:s16 ch:2
[mov @ 0x1fdc3a0] pts has no value
   Last message repeated 54 times
frame=  120 fps=  0 q=-1.0 Lsize=     651kB time=5.00 bitrate=1064.9kbits/s
video:449kB audio:198kB global headers:0kB muxing overhead 0.572616%


[evan at linux]$ ffmpeg -i test.mov
ffmpeg version 0.7-rc1, Copyright (c) 2000-2011 the FFmpeg developers
 built on Jun 11 2011 21:15:16 with gcc 4.4.4 20100630 (Red Hat 4.4.4-10)
 configuration: --prefix=/usr --libdir=/usr/lib64
--shlibdir=/usr/lib64 --mandir=/usr/share/man --enable-shared
--enable-runtime-cpudetect --enable-gpl --enable-version3
--enable-postproc --enable-avfilter --enable-pthreads --enable-x11grab
--enable-vdpau --disable-avisynth --enable-libopencv
--enable-libdc1394 --enable-libdirac --enable-libgsm
--enable-libmp3lame --enable-libnut --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp
--enable-libschroedinger --enable-libspeex --enable-libtheora
--enable-libvorbis --enable-libx264 --enable-libxavs --enable-libxvid
--extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64
-mtune=generic -fPIC' --disable-stripping
 libavutil    50. 40. 1 / 50. 40. 1
 libavcodec   52.120. 0 / 52.120. 0
 libavformat  52.108. 0 / 52.108. 0
 libavdevice  52.  4. 0 / 52.  4. 0
 libavfilter   1. 77. 0 /  1. 77. 0
 libswscale    0. 13. 0 /  0. 13. 0
 libpostproc  51.  2. 0 / 51.  2. 0
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test.mov':
 Metadata:
   major_brand     : qt
   minor_version   : 512
   compatible_brands: qt
   creation_time   : 1970-01-01 00:00:00
   encoder         : Lavf52.108.0
 Duration: 00:00:05.06, start: 0.000000, bitrate: 1052 kb/s
   Chapter #0.0: start 0.000000, end 5.000000
   Metadata:
     title           : Chapter 00
   Stream #0.0(eng): Video: vc1 (Advanced), yuv420p, 1920x1080 [PAR
1:1 DAR 16:9], 734 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 23.98 tbc
   Metadata:
     creation_time   : 1970-01-01 00:00:00
   Stream #0.1(eng): Audio: mp3, 48000 Hz, 2 channels, s16, 320 kb/s
   Metadata:
     creation_time   : 1970-01-01 00:00:00
   Stream #0.2(eng): Subtitle: text / 0x74786574, 0 kb/s
   Metadata:
     creation_time   : 1970-01-01 00:00:00
At least one output file must be specified


More information about the ffmpeg-user mailing list