[FFmpeg-user] Issue using "-flags2 +mixed_refs" option while converting .tif file to .mp4 file

Ali Mohammed alimo at us.ibm.com
Thu Apr 16 02:24:12 CEST 2015


Hello,

I have recently install ffmpeg version 2.3.3 from source on Redhat linux 
6.5.I am getting the below error while trying to convert a .tif file to 
.mp4 file using the below syntax. If I remove "-flags2 +mixed_refs" option 
 from the below syntax the command just works fine and produce a .mp4 
file.We are using the same syntax on an older version of ffmeg running 
Redhat 5.7 and the command works fine. 

Is there any different option which needs to be used in place of "-flags2 
+mixed_refs" in the newer version of ffmpeg?Please advise.


# /usr/local/ffmpeg/bin/ffmpeg -r 10 -i rain-26Aug2011_0Z.tif -s 1280x720 
-vcodec libx264 -crf 36 -flags +loop+mv4 -cmp 256 -partitions 
+parti4x4+parti8x8+partp4x4+partp8x8+partb8x8 -subq 7 -trellis 1 -refs 5 
-bf 0 -flags2 +mixed_refs -coder 0 -me_range 16 -g 250 -keyint_min 25 
-sc_threshold 40 -i_qfactor 0.71 -qdiff 4 -acodec libfaac -ac 2 -ar 44100 
-ab 128000 rain-26Aug2011_0Z.mp4


ffmpeg version 2.3.3 Copyright (c) 2000-2014 the FFmpeg developers
  built on Apr 14 2015 17:41:47 with gcc 4.4.7 (GCC) 20120313 (Red Hat 
4.4.7-11)
  configuration: --prefix=/usr/local/ffmpeg --enable-gpl --enable-version3 
--enable-nonfree --disable-static --enable-shared --disable-debug 
--enable-libass --enable-libfdk-aac --enable-libmp3lame --enable-libtheora 
--enable-libvorbis --enable-libvpx --enable-libx264 --enable-x11grab
  WARNING: library configuration mismatch
  postproc    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-frei0r --enable-libopencv 
--enable-libdc1394 --enable-libgsm --enable-libmp3lame --enable-libnut 
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg 
--enable-librtmp --enable-libspeex --enable-libtheora --enable-libvorbis 
--enable-libvpx --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      52. 92.100 / 52. 92.100
  libavcodec     55. 69.100 / 55. 69.100
  libavformat    55. 48.100 / 55. 48.100
  libavdevice    55. 13.102 / 55. 13.102
  libavfilter     4. 11.100 /  4. 11.100
  libswscale      2.  6.100 /  2.  6.100
  libswresample   0. 19.100 /  0. 19.100
  libpostproc    52.  3.100 / 52.  3.100
Input #0, image2, from 'rain-26Aug2011_0Z.tif':
  Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: tiff, rgb24, 1920x1080 [SAR 1:1 DAR 16:9], 25 tbr, 
25 tbn, 25 tbc
Codec AVOption b (set bitrate (in bits/s)) specified for output file #0 
(rain-26Aug2011_0Z.mp4) has not been used for any stream. The most likely 
reason is either wrong type (e.g. a video option with no video streams) or 
that it is a private option of some encoder which was not actually used 
for any stream.
No pixel format specified, yuv444p for H.264 encoding chosen.
Use -pix_fmt yuv420p for compatibility with outdated media players.
[NULL @ 0xf02080] [Eval @ 0x7fff9e242c70] Undefined constant or missing 
'(' in 'mixed_refs'
[NULL @ 0xf02080] Unable to parse option value "mixed_refs"
[NULL @ 0xf02080] Error setting option flags2 to value +mixed_refs.
Output #0, mp4, to 'rain-26Aug2011_0Z.mp4':
    Stream #0:0: Video: h264, q=2-31, 128 kb/s, SAR 1:1 DAR 0:0, 10 fps
    Metadata:
      encoder         : Lavc55.69.100 libx264
Stream mapping:
  Stream #0:0 -> #0:0 (tiff (native) -> h264 (libx264))
Error while opening encoder for output stream #0:0 - maybe incorrect 
parameters such as bit_rate, rate, width or height 


Thanks,
Ali
AIX/LINUX Administrator
Office:914-945-1797
alimo at us.ibm.com


More information about the ffmpeg-user mailing list