[FFmpeg-trac] #1375(FFmpeg:new): ffmpeg on redhat

FFmpeg trac at avcodec.org
Tue May 29 17:18:15 CEST 2012


#1375: ffmpeg on redhat
--------------------------------+--------------------------------------
             Reporter:  Silly   |                     Type:  defect
               Status:  new     |                 Priority:  normal
            Component:  FFmpeg  |                  Version:  git-master
             Keywords:          |               Blocked By:
             Blocking:          |  Reproduced by developer:  0
Analyzed by developer:  0       |
--------------------------------+--------------------------------------
 I am using ffmpeg to transcode video files while adding a watermark for
 different platforms. Or rather I mean to.
 My problem is that while ffmpeg eats through anything I throw at it on my
 PC (ubuntu 12.04) without a glitch, it simply won't do on the production
 intended redhat machine.
 It doesn't know the -vf flag and has numerous other 'quirks' that render
 it pretty much unusable for me.

 Since the RPM build won't do, I went forward and compiled it myself using
 the attached recipe, but I still keep getting all kinds of runtime errors,
 such as: Unrecognized option 'directpred',
 or in case of .mov sources: overread in qdm2_fft_decode_tones()

 Example command lines I am using:
 * ffmpeg -i inputfile.mp4 -fpre libx264-medium.ffpreset -y
 /tmp/outputfile.mp4

 {{{
 ffmpeg version N-41080-g394b692 Copyright (c) 2000-2012 the FFmpeg
 developers
   built on May 28 2012 13:51:40 with gcc 4.1.2 20080704 (Red Hat 4.1.2-52)
   configuration: --enable-version3 --enable-libopencore-amrnb --enable-
 libopencore-amrwb --enable-libvpx --enable-libfaac --enable-libmp3lame
 --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid
 --disable-ffplay --enable-shared --enable-gpl --enable-postproc --enable-
 nonfree --enable-avfilter --enable-pthreads --extra-cflags=-fPIC --enable-
 zlib --enable-swscale
   libavutil      51. 55.100 / 51. 55.100
   libavcodec     54. 23.100 / 54. 23.100
   libavformat    54.  6.101 / 54.  6.101
   libavdevice    54.  0.100 / 54.  0.100
   libavfilter     2. 77.100 /  2. 77.100
   libswscale      2.  1.100 /  2.  1.100
   libswresample   0. 15.100 /  0. 15.100
   libpostproc    52.  0.100 / 52.  0.100
 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'inputfile.mp4':
   Metadata:
     major_brand     : mp42
     minor_version   : 0
     compatible_brands: isommp42
     creation_time   : 2011-11-16 19:01:31
   Duration: 00:00:49.58, start: 0.000000, bitrate: 736 kb/s
     Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 /
 0x31637661), yuv420p, 480x360, 637 kb/s, 29.97 fps, 29.97 tbr, 60k tbn,
 59.94 tbc
     Metadata:
       creation_time   : 1970-01-01 00:00:00
       handler_name    : VideoHandler
     Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo,
 s16, 96 kb/s
     Metadata:
       creation_time   : 2011-11-16 19:01:31
       handler_name    : IsoMedia File Produced by Google, 5-11-2011
 [buffer @ 0xe5fa860] w:480 h:360 pixfmt:yuv420p tb:1/60000 sar:0/1
 sws_param:flags=2
 [buffersink @ 0xe5fad20] No opaque field provided
 [b]x264 [error]: invalid preset 'libx264-medium.ffpreset'
 [libx264 @ 0xe4cca40] Error setting preset/tune
 libx264-medium.ffpreset/(null).[/b]
 Output #0, mp4, to '/tmp/outputfile.mp4':
   Metadata:
     major_brand     : mp42
     minor_version   : 0
     compatible_brands: isommp42
     creation_time   : 2011-11-16 19:01:31
     Stream #0:0(und): Video: h264, yuv420p, 480x360, q=-1--1, 90k tbn,
 29.97 tbc
     Metadata:
       creation_time   : 1970-01-01 00:00:00
       handler_name    : VideoHandler
     Stream #0:1(und): Audio: none, 44100 Hz, stereo, s16, 128 kb/s
     Metadata:
       creation_time   : 2011-11-16 19:01:31
       handler_name    : IsoMedia File Produced by Google, 5-11-2011
 Stream mapping:
   Stream #0:0 -> #0:0 (h264 -> libx264)
   Stream #0:1 -> #0:1 (aac -> libfaac)
 Error while opening encoder for output stream #0:0 - maybe incorrect
 parameters such as bit_rate, rate, width or height
 }}}
 * ffmpeg -i inputfile.mp4 -vf 'movie=watermark.png [watermark];
 [in][watermark] overlay=main_w-overlay_w-10:main_h-overlay_h-10 [out]' -y
 /tmp/outputfile.mp4
 * ffmpeg -i inputfile.mov -s 480x320 -vcodec mpeg4 -b 480k -acodec libfaac
 -ac 1 -ar 16000 -r 13 -ab 32000 -aspect 3:2 -y sample_android.mp4

 {{{
 ffmpeg version N-41080-g394b692 Copyright (c) 2000-2012 the FFmpeg
 developers
   built on May 28 2012 13:51:40 with gcc 4.1.2 20080704 (Red Hat 4.1.2-52)
   configuration: --enable-version3 --enable-libopencore-amrnb --enable-
 libopencore-amrwb --enable-libvpx --enable-libfaac --enable-libmp3lame
 --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid
 --disable-ffplay --enable-shared --enable-gpl --enable-postproc --enable-
 nonfree --enable-avfilter --enable-pthreads --extra-cflags=-fPIC --enable-
 zlib --enable-swscale
   libavutil      51. 55.100 / 51. 55.100
   libavcodec     54. 23.100 / 54. 23.100
   libavformat    54.  6.101 / 54.  6.101
   libavdevice    54.  0.100 / 54.  0.100
   libavfilter     2. 77.100 /  2. 77.100
   libswscale      2.  1.100 /  2.  1.100
   libswresample   0. 15.100 /  0. 15.100
   libpostproc    52.  0.100 / 52.  0.100
 Guessed Channel Layout for  Input Stream #0.1 : stereo
 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'aeon_flux_m480.mov':
   Metadata:
     creation_time   : 2005-08-17 14:06:18
     title           : Aeon Flux
     title-eng       : Aeon Flux
     copyright-eng   : ©2005 Paramount Pictures. All rights reserved
     comment         : QuickTime 5 version encoded by
 http://www.apple.com/trailers/
     copyright       : ©2005 Paramount Pictures. All rights reserved
     comment-eng     : QuickTime 5 version encoded by
 http://www.apple.com/trailers/
   Duration: 00:02:13.43, start: 0.000000, bitrate: 1375 kb/s
     Stream #0:0(eng): Video: svq3 (SVQ3 / 0x33515653), yuvj420p, 480x272,
 1262 kb/s, 24 fps, 24 tbr, 600 tbn, 600 tbc
     Metadata:
       creation_time   : 2005-08-17 14:06:18
       handler_name    : Apple Alias Data Handler
     Stream #0:1(eng): Audio: qdm2 (QDM2 / 0x324D4451), 44100 Hz, stereo,
 s16, 112 kb/s
     Metadata:
       creation_time   : 2005-08-17 14:06:18
       handler_name    : Apple Alias Data Handler
 Please use -b:a or -b:v, -b is ambiguous
 [buffer @ 0xee57880] w:480 h:272 pixfmt:yuvj420p tb:1/600 sar:0/1
 sws_param:flags=2
 [buffersink @ 0xee2ef40] No opaque field provided
 [scale @ 0xee2f260] w:480 h:272 fmt:yuvj420p sar:0/1 -> w:480 h:320
 fmt:yuv420p sar:0/1 flags:0x4
 [aformat @ 0xee9f2e0] auto-inserting filter 'auto-inserted resampler 0'
 between the filter 'src' and the filter 'aformat'
 [aresample @ 0xee997e0] chl:stereo fmt:s16 r:44100Hz -> chl:mono fmt:s16
 r:16000Hz
 Output #0, mp4, to 'sample_android.mp4':
   Metadata:
     creation_time   : 2005-08-17 14:06:18
     title           : Aeon Flux
     title-eng       : Aeon Flux
     copyright-eng   : ©2005 Paramount Pictures. All rights reserved
     comment         : QuickTime 5 version encoded by
 http://www.apple.com/trailers/
     copyright       : ©2005 Paramount Pictures. All rights reserved
     comment-eng     : QuickTime 5 version encoded by
 http://www.apple.com/trailers/
     encoder         : Lavf54.6.101
     Stream #0:0(eng): Video: mpeg4 ( [0][0][0] / 0x0020), yuv420p, 480x320
 [SAR 1:1 DAR 3:2], q=2-31, 480 kb/s, 13 tbn, 13 tbc
     Metadata:
       creation_time   : 2005-08-17 14:06:18
       handler_name    : Apple Alias Data Handler
     Stream #0:1(eng): Audio: aac (@[0][0][0] / 0x0040), 16000 Hz, mono,
 s16, 32 kb/s
     Metadata:
       creation_time   : 2005-08-17 14:06:18
       handler_name    : Apple Alias Data Handler
 Stream mapping:
   Stream #0:0 -> #0:0 (svq3 -> mpeg4)
   Stream #0:1 -> #0:1 (qdm2 -> libfaac)
 Press [q] to stop, [?] for help
 overread in qdm2_fft_decode_tones()
     Last message repeated 62 times
 overread in qdm2_fft_decode_tones() 246kB time=00:00:06.61 bitrate=
 304.6kbits/s dup=0 drop=69
     Last message repeated 19 times
 overread in qdm2_fft_decode_tones() 650kB time=00:00:11.00 bitrate=
 484.1kbits/s dup=0 drop=116
     Last message repeated 20 times
 overread in qdm2_fft_decode_tones()1071kB time=00:00:16.07 bitrate=
 546.0kbits/s dup=0 drop=173
     Last message repeated 24 times
 overread in qdm2_fft_decode_tones()1414kB time=00:00:21.15 bitrate=
 547.8kbits/s dup=0 drop=229
     Last message repeated 28 times
 overread in qdm2_fft_decode_tones()1855kB time=00:00:26.15 bitrate=
 580.9kbits/s dup=0 drop=284
     Last message repeated 16 times
 overread in qdm2_fft_decode_tones() 2230kB time=00:00:31.15 bitrate=
 586.3kbits/s dup=0 drop=338
     Last message repeated 19 times
 overread in qdm2_fft_decode_tones()2489kB time=00:00:36.23 bitrate=
 562.8kbits/s dup=0 drop=394
     Last message repeated 20 times
 overread in qdm2_fft_decode_tones() 2825kB time=00:00:41.15 bitrate=
 562.4kbits/s dup=0 drop=449
     Last message repeated 14 times
 overread in qdm2_fft_decode_tones()3097kB time=00:00:46.61 bitrate=
 544.3kbits/s dup=0 drop=508
     Last message repeated 21 times
 overread in qdm2_fft_decode_tones()3365kB time=00:00:51.84 bitrate=
 531.7kbits/s dup=0 drop=565
     Last message repeated 19 times
 overread in qdm2_fft_decode_tones()3701kB time=00:00:57.15 bitrate=
 530.5kbits/s dup=0 drop=625
     Last message repeated 31 times
 overread in qdm2_fft_decode_tones()4069kB time=00:01:02.61 bitrate=
 532.3kbits/s dup=0 drop=685
     Last message repeated 18 times
 overread in qdm2_fft_decode_tones()4402kB time=00:01:07.46 bitrate=
 534.6kbits/s dup=0 drop=738
     Last message repeated 24 times
 overread in qdm2_fft_decode_tones()4706kB time=00:01:13.38 bitrate=
 525.4kbits/s dup=0 drop=803
     Last message repeated 10 times
 overread in qdm2_fft_decode_tones()5095kB time=00:01:18.38 bitrate=
 532.4kbits/s dup=0 drop=857
     Last message repeated 22 times
 overread in qdm2_fft_decode_tones()5416kB time=00:01:23.84 bitrate=
 529.1kbits/s dup=0 drop=918
     Last message repeated 24 times
 overread in qdm2_fft_decode_tones()5687kB time=00:01:29.30 bitrate=
 521.6kbits/s dup=0 drop=977
     Last message repeated 19 times
 overread in qdm2_fft_decode_tones()5996kB time=00:01:34.84 bitrate=
 517.9kbits/s dup=0 drop=1038
     Last message repeated 16 times
 overread in qdm2_fft_decode_tones()6377kB time=00:01:40.07 bitrate=
 522.0kbits/s dup=0 drop=1097
     Last message repeated 22 times
 overread in qdm2_fft_decode_tones() 6700kB time=00:01:45.15 bitrate=
 522.0kbits/s dup=0 drop=1153
     Last message repeated 18 times
 overread in qdm2_fft_decode_tones()6997kB time=00:01:50.84 bitrate=
 517.1kbits/s dup=0 drop=1215
     Last message repeated 22 times
 overread in qdm2_fft_decode_tones()7299kB time=00:01:56.15 bitrate=
 514.8kbits/s dup=0 drop=1274
     Last message repeated 18 times
 overread in qdm2_fft_decode_tones() 7702kB time=00:02:01.30 bitrate=
 520.1kbits/s dup=0 drop=1330
     Last message repeated 27 times
 overread in qdm2_fft_decode_tones()7944kB time=00:02:06.76 bitrate=
 513.4kbits/s dup=0 drop=1389
     Last message repeated 23 times
 frame= 1737 fps=138 q=2.0 Lsize=    8281kB time=00:02:13.37 bitrate=
 508.6kbits/s dup=0 drop=1466
 video:7793kB audio:449kB global headers:0kB muxing overhead 0.475512%{

 }}}


 My system information is as follows:

 {{{
 $ uname -r
 2.6.18-194.el5xen

 $ cat /etc/redhat-release
 Red Hat Enterprise Linux Server release 5.8 (Tikanga)
 }}}

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1375>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list