[FFmpeg-user] set forced and default flag in matroska

Gerion Entrup gerion.entrup at t-online.de
Tue Sep 17 14:46:50 CEST 2013


Good day,

is there a possibility to set the forced and default flag with ffmpeg in the 
matroska container?

For example, here is a file, where I set the flags via mkvmerge:
 % ffmpeg -i test.mkv 
ffmpeg version N-55753-g88909be Copyright (c) 2000-2013 the FFmpeg developers
  built on Aug 25 2013 01:24:11 with gcc 4.7.3 (Gentoo 4.7.3 p1.0, pie-0.5.5)
  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='-
march=native -O2 -pipe' --extra-cflags='-march=native -O2 -pipe' --extra-
cxxflags='-march=native -O2 -pipe' --disable-static --enable-gpl --enable-
postproc --enable-avfilter --enable-avresample --disable-stripping --enable-
version3 --enable-nonfree --disable-indev=v4l2 --disable-outdev=v4l2 --
disable-indev=oss --disable-outdev=oss --enable-bzlib --disable-runtime-
cpudetect --disable-debug --disable-doc --disable-gnutls --enable-hardcoded-
tables --enable-iconv --enable-network --disable-openssl --enable-ffplay --
enable-vaapi --disable-vdpau --enable-zlib --enable-libvo-aacenc --disable-
libvo-amrwbenc --enable-libmp3lame --disable-libfdk-aac --enable-libaacplus --
enable-libfaac --enable-libtheora --disable-libtwolame --disable-libwavpack --
enable-libx264 --enable-libxvid --disable-libcdio --disable-libiec61883 --
disable-libdc1394 --disable-libcaca --disable-openal --disable-libv4l2 --
disable-libpulse --enable-x11grab --disable-libflite --disable-frei0r --
disable-fontconfig --disable-libass --enable-libfreetype --disable-libsoxr --
enable-pthreads --disable-libopencore-amrwb --disable-libopencore-amrnb --
disable-libopenjpeg --enable-libbluray --disable-libcelt --disable-libgme --
disable-libgsm --disable-libmodplug --enable-libopus --enable-libquvi --
disable-librtmp --disable-libschroedinger --enable-libspeex --enable-libvorbis 
--enable-libvpx --disable-amd3dnow --disable-amd3dnowext --disable-altivec --
disable-avx --disable-ssse3 --disable-vis --disable-neon --cpu=host
  libavutil      52. 42.100 / 52. 42.100
  libavcodec     55. 29.100 / 55. 29.100
  libavformat    55. 14.102 / 55. 14.102
  libavdevice    55.  3.100 / 55.  3.100
  libavfilter     3. 82.102 /  3. 82.102
  libavresample   1.  1.  0 /  1.  1.  0
  libswscale      2.  5.100 /  2.  5.100
  libswresample   0. 17.103 /  0. 17.103
  libpostproc    52.  3.100 / 52.  3.100
Input #0, matroska,webm, from 'test.mkv':
  Metadata:
    creation_time   : 2013-09-17 12:36:20
  Duration: 00:13:36.30, start: 0.000000, bitrate: 198 kb/s
    Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 128 kb/s (default) 
(forced)
    Metadata:
      title           : bla
At least one output file must be specified

You can see the (default) and (forced), so FFmpeg seems to recognize it. There 
is a fixed bug, too, that says, that ffmpeg copy the flags (if set), but I don't 
find a way to do it manually. I searched in the manpages and via Internet but 
don't find anything helpful.

regards,
Gerion



More information about the ffmpeg-user mailing list