[FFmpeg-devel] Bug? FFmpeg 0.8.4, LGPL, libvpx only : Additional information: g_lag_in_frames out of range [..0

Lou Logan lou at lrcd.com
Fri Nov 4 06:53:03 CET 2011


On Thu, 3 Nov 2011 22:23:26 -0700, Fabrizio Milo aka misto wrote:

> I compiled a version of ffmpeg using only libvpx, libogg and libtheora
> on Centos 6.
> 
> I get:
> [libvpx @ 0x16e5040] Failed to initialize encoder: Invalid parameter
> [libvpx @ 0x16e5040]   Additional information: g_lag_in_frames out of
> range [..0]
> even with the default video preset set.
> 
> Any Idea what is wrong ? Is it a Bug ?
> 
> Here is the complete output:
> 
> -bash-4.1$ /home/deploy/integration.virtualenv/bin/ffmpeg -y -i
> /home/deploy/.amx/develop/juicer/www/raw/ac70bfe46640676dab56a0315bff49d011f6aea861df51b5a16387c8062de55d.mpg
> -vpre libvpx-360p -f webm -acodec libvorbis -ac 2 -ab 96k -ar 44100
> /home/deploy/.amx/develop/juicer/www/video/ac70bfe46640676dab56a0315bff49d011f6aea861df51b5a16387c8062de55d.webm
> ffmpeg version 0.8.4, Copyright (c) 2000-2011 the FFmpeg developers
>   built on Nov  3 2011 22:21:37 with gcc 4.4.4 20100726 (Red Hat
> 4.4.4-13) configuration: --enable-libvpx --enable-libvorbis
> --disable-ffplay --disable-shared --enable-postproc --enable-avfilter
> --extra-cflags=-fPIC --enable-libtheora --enable-pthreads
> --prefix=/home/deploy/integration.virtualenv
> --extra-cflags=-I/home/deploy/integration.virtualenv/include
> --disable-debug
> --extra-ldflags=-L/home/deploy/integration.virtualenv/lib64
>   libavutil    51.  9. 1 / 51.  9. 1
>   libavcodec   53.  7. 0 / 53.  7. 0
>   libavformat  53.  4. 0 / 53.  4. 0
>   libavdevice  53.  1. 1 / 53.  1. 1
>   libavfilter   2. 23. 0 /  2. 23. 0
>   libswscale    2.  0. 0 /  2.  0. 0
> [mpeg @ 0x16df400] max_analyze_duration 5000000 reached at 5005000
> Input #0, mpeg, from
> '/home/deploy/.amx/develop/juicer/www/raw/ac70bfe46640676dab56a0315bff49d011f6aea861df51b5a16387c8062de55d.mpg':
>   Duration: 00:00:30.02, start: 0.000000, bitrate: 2876 kb/s
>     Stream #0.0[0x1e0]: Video: mpeg1video, yuv420p, 640x480 [PAR 1:1
> DAR 4:3], 5000 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 29.97 tbc
>     Stream #0.1[0x1c0]: Audio: mp2, 48000 Hz, stereo, s16, 192 kb/s
> [buffer @ 0x16e7a20] w:640 h:480 pixfmt:yuv420p tb:1/1000000 sar:1/1
> sws_param: [libvpx @ 0x16e5040] v0.9.7
> [libvpx @ 0x16e5040] Failed to initialize encoder: Invalid parameter
> [libvpx @ 0x16e5040]   Additional information: g_lag_in_frames out of
> range [..0]
> Output #0, webm, to
> '/home/deploy/.amx/develop/juicer/www/video/ac70bfe46640676dab56a0315bff49d011f6aea861df51b5a16387c8062de55d.webm':
>     Stream #0.0: Video: libvpx, yuv420p, 640x480 [PAR 1:1 DAR 4:3],
> q=0-63, 768 kb/s, 90k tbn, 29.97 tbc
>     Stream #0.1: Audio: libvorbis, 44100 Hz, stereo, s16, 96 kb/s
> Stream mapping:
>   Stream #0.0 -> #0.0
>   Stream #0.1 -> #0.1
> Error while opening encoder for output stream #0.0 - maybe incorrect
> parameters such as bit_rate, rate, width or height

I can not duplicate this error using 0.8.4 with libvpx 0.9.7-p1 with a
somewhat similar input sample. What are the contents of your
libvpx-360p.ffpreset? Do you have a custom preset with the same name,
possibly in ~/.ffmpeg? Did you modify the preset at all? Does the error
occur with other presets or if you do not use a preset? Does the error
occur with other inputs, or just one? Does it occur with FFmpeg and
libvpx from recent Git?

Of course we will still try to help, but please remember that unless you
include a fix bugs should generally be reported to ffmpeg-user and/or
the FFmpeg bug tracker.


More information about the ffmpeg-devel mailing list