[Ffmpeg-devel] make test fails for flac
Luca Abeni
lucabe72
Wed Aug 9 23:47:56 CEST 2006
Hi Martin;
On Wed, 2006-08-09 at 22:51 +0200, Martin von Gagern wrote:
> Hi!
>
> When I run "make test", things fail like this:
>
> FFmpeg version SVN-r5948, Copyright (c) 2000-2004 Fabrice Bellard
> configuration: --disable-static --enable-shared
> libavutil version: 49.0.0
> libavcodec version: 51.11.0
> libavformat version: 50.5.0
> built on Aug 9 2006 21:17:51, gcc: 4.1.1 (Gentoo 4.1.1)
> size= 1032kB time=6.0 bitrate=1411.3kbits/s
> ../ffmpeg_g -y -flags +bitexact -dct fastint -idct simple -y -ab 128 -ac
> 2 -ar 44100 -f s16le -i asynth1.sw -acodec flac -compression_level 2
> ./data/a-flac.flac
> make[1]: *** [codectest] Error 1
> make[1]: Leaving directory `~/src/ffmpeg/plain/tests'
> make: *** [test] Error 2
I just tried with current svn, and I do not get this error.
> Reproducing that last command manually, I get some more error output:
>
> ../ffmpeg_g -y -flags +bitexact -dct fastint -idct simple -y -ab 128
> -ac 2 -ar 44100 -f s16le -i asynth1.sw -acodec flac -compression_level 2
> ./data/a-flac.flac
> FFmpeg version SVN-r5948, Copyright (c) 2000-2004 Fabrice Bellard
> configuration: --disable-static --enable-shared
> libavutil version: 49.0.0
> libavcodec version: 51.11.0
> libavformat version: 50.5.0
> built on Aug 9 2006 21:17:51, gcc: 4.1.1 (Gentoo 4.1.1)
> Input #0, s16le, from 'asynth1.sw':
> Duration: N/A, bitrate: N/A
> Stream #0.0: Audio: pcm_s16le, 44100 Hz, stereo, 1411 kb/s
> ../ffmpeg_g: unrecognized option '-compression_level'
I do not get this error... I just checked, and compression_level is a
valid option (see libavcodec/utils.c). I see that you are using shared
libraries... Maybe ffmpeg_g ended up loading the wrong .so files (maybe
you have an older version installed somewhere)?
>
> Omitting this option, I get another error message:
>
> ../ffmpeg_g -y -flags +bitexact -dct fastint -idct simple -y -ab 128 -ac
> 2 -ar 44100 -f s16le -i asynth1.sw -acodec flac ./data/a-flac.flac
> FFmpeg version SVN-r5948, Copyright (c) 2000-2004 Fabrice Bellard
> configuration: --disable-static --enable-shared
> libavutil version: 49.0.0
> libavcodec version: 51.11.0
> libavformat version: 50.5.0
> built on Aug 9 2006 21:17:51, gcc: 4.1.1 (Gentoo 4.1.1)
> Input #0, s16le, from 'asynth1.sw':
> Duration: N/A, bitrate: N/A
> Stream #0.0: Audio: pcm_s16le, 44100 Hz, stereo, 1411 kb/s
> Output #0, flac, to './data/a-flac.flac':
> Stream #0.0: Audio: 0x0000, 44100 Hz, stereo, 128 kb/s
> Stream mapping:
> Stream #0.0 -> #0.0
> Unsupported codec for output stream #0.0
Looks like the used version of ffmpeg does not implement flac encoding
(it really looks like an old version).
Can you try to check that you are really using the correct libraries?
(try "ldd ffmpeg" to see which libraries are used, and then use "objdump
--dynamic-syms to check if flac_encoder is present)
Luca
More information about the ffmpeg-devel
mailing list