Opened 12 years ago

Closed 12 years ago

#1375 closed defect (fixed)

qdm2 console spamming

Reported by: Silly Owned by:
Priority: normal Component: avcodec
Version: git-master Keywords: qdm2
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

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)

Attachments (1)

recipe_preset.zip (1.6 KB ) - added by Silly 12 years ago.
Build recipe and preset being used in the example

Download all attachments as: .zip

Change History (9)

by Silly, 12 years ago

Attachment: recipe_preset.zip added

Build recipe and preset being used in the example

in reply to:  description comment:1 by Carl Eugen Hoyos, 12 years ago

Component: FFmpegundetermined
Keywords: qdm2 added

Replying to Silly:
For future reports: Please open one ticket per issue, do not report different problems in one tickets, in makes following them very difficult.

or in case of .mov sources: overread in qdm2_fft_decode_tones()

Is there any problem with the decoded file or are only reporting that messages are shown?

comment:2 by Silly, 12 years ago

Sorry about the spam and everything. My issue (single) was that Ubuntu ffmpeg/avconv just eats through everything I throw at it while the RPM ffmpeg and the one I've built myself simply won't. I was hoping someone would point an error in my recipe so I can build it right.

As for the qdm2 question, the end result has the audio slightly out of sync.

Thanks for your patience and help :)

Last edited 12 years ago by Silly (previous) (diff)

in reply to:  2 comment:3 by llogan, 12 years ago

Replying to Silly:

Example command lines I am using:

  • ffmpeg -i inputfile.mp4 -fpre libx264-medium.ffpreset -y /tmp/outputfile.mp4

ffmpeg doesn't used text file based presets to emulate the standard x264 presets anymore. Proper preset usage is now simply "-preset medium". Therefore the resulting message you received is not a bug.

Also, that compile guide you followed is not good although the resulting ffmpeg should work. It installs a bunch of extras and uses outdated configure options. A simpler and more sane guide is https://ffmpeg.org/trac/ffmpeg/wiki/CentosCompilationGuide.

Replying to Silly:

Sorry about the spam and everything. My issue (single) was that Ubuntu ffmpeg/avconv just eats through everything I throw at it while the RPM ffmpeg and the one I've built myself simply won't.

The issue here is that you're using two completely different programs and expecting everything to work with the same syntax. Ubuntu doesn't use FFmpeg anymore as of Natty, and "ffmpeg"/avconv from the repository is not recommended. You should compile the same version of the same program on both distros. See https://ffmpeg.org/trac/ffmpeg/wiki/UbuntuCompilationGuide for an Ubuntu specific series of guides.

comment:4 by Silly, 12 years ago

Thank you llogan, I will do it the way you suggested and post the results.

in reply to:  2 comment:5 by Carl Eugen Hoyos, 12 years ago

Component: undeterminedavcodec
Reproduced by developer: set
Status: newopen

Replying to Silly:

As for the qdm2 question, the end result has the audio slightly out of sync.

I tried the following and the resulting file plays in-sync with ffplay and MPlayer:

$ ffmpeg -i aeon_flux_m480.mov -b 480k -strict experimental -acodec aac -ac 1 -ar 16000 -r 13 -ab 32000 -aspect 3:2 out.mp4

How do you see the desync?

The console spamming is certainly a bug.

comment:6 by Carl Eugen Hoyos, 12 years ago

Summary: ffmpeg on redhatqdm2 console spamming

comment:7 by Silly, 12 years ago

Replying to cehoyos:

How do you see the desync?

The console spamming is certainly a bug.

The lips were moving a few mili-seconds before the speech. As for the console spamming, I have no idea why but the generic ffmpeg that comes with Ubuntu (apt-get install ffmpeg) does none of that.

The new build according to your link seems good so far but still produces the qdm error spam.

comment:8 by Michael Niedermayer, 12 years ago

Resolution: fixed
Status: openclosed

Console spam fixed.
I assume that by "The new build according to your link seems good so far" you mean the sync issue has resolved itself, thus iam closing this ticket, but dont hesitate to reopen it if some issue remains

Note: See TracTickets for help on using tickets.