[FFmpeg-user] -map and matroska files

Marios Titas redneb8888 at gmail.com
Sun Nov 13 19:51:32 CET 2011


Marios Titas <redneb8888 <at> gmail.com> writes:
> once a map has been specified, no streams that are not> explicitly referenced by a -map should not be included in the output> file.
OK, so here's a complete example. In this case I have a good ol' avi
file with 1 video stream and 1 audio stream and I want to get rid of
the audio stream. If the above statement about -map was true, I should
be able to do that using only -map. But here's what I get:

8<--------------------------------------------------------------------------------------
marios at box13 ~ $ ffmpeg -i eggs.avi -map 0.0 -vcodec copy eggs-no_audio.avi
ffmpeg version 0.7.7, Copyright (c) 2000-2011 the FFmpeg developers
  built on Nov 11 2011 04:30:53 with gcc 4.5.3
  configuration: --prefix=/usr --libdir=/usr/lib --shlibdir=/usr/lib
--mandir=/usr/share/man --enable-shared --cc=i686-pc-linux-gnu-gcc
--disable-static --enable-gpl --enable-version3 --enable-postproc
--enable-avfilter --disable-stripping --disable-debug --disable-doc
--disable-network --disable-vaapi --disable-vdpau --enable-libmp3lame
--enable-libvo-aacenc --enable-libtheora --enable-libvorbis
--enable-libx264 --enable-libxvid --disable-indev=v4l
--disable-indev=oss --disable-indev=jack --enable-x11grab
--disable-outdev=oss --enable-libfreetype --enable-pthreads
--enable-libvpx --enable-libopenjpeg --disable-altivec --disable-avx
--cpu=host --enable-hardcoded-tables
  libavutil    50. 43. 0 / 50. 43. 0
  libavcodec   52.122. 0 / 52.122. 0
  libavformat  52.110. 0 / 52.110. 0
  libavdevice  52.  5. 0 / 52.  5. 0
  libavfilter   1. 80. 0 /  1. 80. 0
  libswscale    0. 14. 1 /  0. 14. 1
  libpostproc  51.  2. 0 / 51.  2. 0
Input #0, avi, from 'eggs.avi':
  Duration: 00:03:39.08, start: 0.000000, bitrate: 4798 kb/s
    Stream #0.0: Video: mpeg4, yuv420p, 1280x720 [PAR 1:1 DAR 16:9],
29.97 tbr, 29.97 tbn, 29.97 tbc
    Stream #0.1: Audio: mp3, 48000 Hz, stereo, s16, 192 kb/s
Number of stream maps must match number of output streams
8<--------------------------------------------------------------------------------------
Just to be clear, here's what I am claiming: -vn/-an/-sn should not be
needed if at least one -map is specified.


More information about the ffmpeg-user mailing list