[FFmpeg-user] Need help understanding encoding error message

Hollar Jeff Jeff_Hollar at prn.com
Wed Mar 21 19:14:11 CET 2012


I've been using FFMPEG [0.6-4:6-2] on ubuntu successfully encoding mpeg2 streams using the following command:

%ffmpeg -qscale 5 -loop_input -I audio/demo.mp3 -I pngs/svg_tide.png -flags +ilme -f mpegts -b 18000000 -ab 192k -top 1 -aspect 16:9 -r 29.97 -t 10 -vcodec mpeg2video Preview155948.mpg

This actually works but when I do this on windows XP using FFMPEG the -loop_input option is no longer working and other options have changed. The major issue is the error. Could someone explain what this error means and how to resolve it?

ffmpeg -i audio/demo.mp3 -i pngs/svg_tide.png -q:v 5 -flags +ilme -b:v 18000000 -f mpegts -ab 192k -top 1 -aspect 16:9 -r 29.97/1001 -t 10 -vcodec mpeg2video  Preview155948.mpg
ffmpeg version N-38622-g1eabd71 Copyright (c) 2000-2012 the FFmpeg developers
  built on Mar  7 2012 00:18:03 with gcc 4.6.2
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-runtime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
  libavutil      51. 42.100 / 51. 42.100
  libavcodec     54. 10.100 / 54. 10.100
  libavformat    54.  2.100 / 54.  2.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 63.100 /  2. 63.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0.  7.100 /  0.  7.100
  libpostproc    52.  0.100 / 52.  0.100
[mp3 @ 0216AE20] max_analyze_duration 5000000 reached at 5015510
[mp3 @ 0216AE20] Estimating duration from bitrate, this may be inaccurate
Input #0, mp3, from 'audio/demo.mp3':
  Metadata:
    title           : Track 2
    genre           : Unknown
    track           : 02
    TFLT            : audio/mp3
    artist          : Unknown
    album           : Untitled - 02-09-07
  Duration: 00:03:37.45, start: 0.000000, bitrate: 191 kb/s
    Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16, 192 kb/s
Input #1, image2, from 'pngs/svg_tide.png':
  Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
    Stream #1:0: Video: png, rgba64be, 1920x1080, 25 tbr, 25 tbn, 25 tbc
Incompatible pixel format 'rgba64be' for codec 'mpeg2video', auto-selecting format 'yuv420p'
[buffer @ 02261260] w:1920 h:1080 pixfmt:rgba64be tb:1/1000000 sar:0/1 sws_param:
[buffersink @ 02256800] auto-inserting filter 'auto-inserted scale 0' between the filter 'src' and the filter 'out'
[scale @ 02256960] w:1920 h:1080 fmt:rgba64be -> w:1920 h:1080 fmt:yuv420p flags:0x4
[mpeg2video @ 02255B40] MPEG1/2 does not support 5/1 fps
Output #0, mpegts, to 'Preview155948.mpg':
  Metadata:
    title           : Track 2
    genre           : Unknown
    track           : 02
    TFLT            : audio/mp3
    artist          : Unknown
    album           : Untitled - 02-09-07
    Stream #0:0: Video: mpeg2video, yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 18000 kb/s, 90k tbn, 5 tbc
    Stream #0:1: Audio: none, 44100 Hz, stereo, s16, 128 kb/s
Stream mapping:
  Stream #1:0 -> #0:0 (png -> mpeg2video)
  Stream #0:0 -> #0:1 (mp3 -> mp2)
Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height

Thanks,
Jeff


More information about the ffmpeg-user mailing list