Page 1 of 2

ffmpeg encoder error

Posted: 09 Aug 2007 16:07
by rptr
I use Ubuntu Feisty Fawn 7.04. When I try to transcode an input stream in mp3 with vlc I obtain the following error message :

Code: Select all

[00000343] ffmpeg encoder debug: libavcodec initialized (interface 3345152 ) [00000343] ffmpeg encoder error: cannot find encoder MPEG Audio layer 1/2/3 [00000299] stream_out_transcode private error: cannot find encoder ((null))
For vlc installation I use the following command :

Code: Select all

sudo apt-get install vlc
I use this config for ffmpeg :

Code: Select all

FFmpeg version SVN-r9977, Copyright (c) 2000-2007 Fabrice Bellard, et al. configuration: --enable-gpl --enable-pp --enable-pthreads --enable-libogg --enable-libgsm --enable-dc1394 --disable-debug --enable-shared --prefix=/usr --enable-encoder=mp3 --enable-libmp3lame libavutil version: 49.4.1 libavcodec version: 51.40.4 libavformat version: 51.12.1 built on Aug 7 2007 15:02:48, gcc: 4.1.2 (Ubuntu 4.1.2-0ubuntu4)
I also try to install vlc manually with some modifications in the configuration...

Code: Select all

./configure --enable-ffmpeg --with-ffmpeg-tree=../ffmpeg --with-ffmpeg-mp3lame --with-ffmpeg-config-path=../ffmpeg/ffmpeg --enable-faad --enable-theora --enable-flac --enable-esd --enable-dvbpsi --enable-libmpeg2 --enable-vorbis --enable-sout --disable-mad --disable-libmpeg2 --disable-wxwidgets --disable-skins2
...but I obtain some errors while creating the makefile and then still the same error while transcoding in mp3. Do you have any suggestions ?

Re: ffmpeg encoder error

Posted: 09 Aug 2007 17:53
by funman
did you install ffmpeg build over the ubuntu's ffmpeg ?

you can try ffmpeg builds of medibuntu or other sources, it should have the mp3 encoder

Re: ffmpeg encoder error

Posted: 09 Aug 2007 18:34
by rptr
did you install ffmpeg build over the ubuntu's ffmpeg ?
Yes, exactly. ffmpeg is not the problem, I can easily encode in mp3 using this command :

Code: Select all

ffmpeg -i input -f mp3 output.mp3
My problem is that I want to do the mp3 conversion directly with vlc :

Code: Select all

vlc -vvv --color input --sout '#transcode{acodec=mp3,ab=128}:standard{access=udp,mux=ts,dst=230.1.1.1}'

Re: ffmpeg encoder error

Posted: 09 Aug 2007 21:23
by funman
if there is errors during vlc compilation, it obviously won't work then :/

what if you use mux=raw ? (maybe streaming won't work, but just to check)

Re: ffmpeg encoder error

Posted: 10 Aug 2007 07:47
by rptr
if there is errors during vlc compilation, it obviously won't work then :/
I know it :D Perhaps something is wrong in my config... Can you tell me if you see an error ?
what if you use mux=raw ? (maybe streaming won't work, but just to check)
Same error with mux=raw...

Code: Select all

[00000343] ffmpeg encoder debug: libavcodec initialized (interface 3345152 ) [00000343] ffmpeg encoder error: cannot find encoder MPEG Audio layer 1/2/3 [00000299] stream_out_transcode private error: cannot find encoder ((null))

Re: ffmpeg encoder error

Posted: 10 Aug 2007 08:58
by Jean-Baptiste Kempf
Did you clean your cache ?

Re: ffmpeg encoder error

Posted: 10 Aug 2007 09:04
by rptr
Yes, but no effect... Still ffmpeg encoder error...

Re: ffmpeg encoder error

Posted: 10 Aug 2007 09:16
by Jean-Baptiste Kempf
Have you try to not specify ffmpeg-config, but just ffmpeg-tree ?

Re: ffmpeg encoder error

Posted: 10 Aug 2007 09:25
by rptr
Yes. As I said before, first I had the default vlc package installed using ubuntu synaptic package manager and then I try to reinstall manually over it. I obtain some "undefined references" while creating the makefile. I think this is the problem, but I don't understand why the "make" command generates these errors... Perhaps a wrong configuration ?

Re: ffmpeg encoder error

Posted: 10 Aug 2007 12:17
by funman
paste the make output

Re: ffmpeg encoder error

Posted: 10 Aug 2007 13:50
by rptr
end of make output...

Code: Select all

/home/rptr/ffmpeg/libavformat/libavformat.a(dc1394.o): In function `dc1394_close': dc1394.c:(.text+0x1d): undefined reference to `dc1394_stop_iso_transmission' dc1394.c:(.text+0x2b): undefined reference to `dc1394_dma_unlisten' dc1394.c:(.text+0x39): undefined reference to `dc1394_dma_release_camera' dc1394.c:(.text+0x43): undefined reference to `dc1394_destroy_handle' /home/rptr/ffmpeg/libavformat/libavformat.a(dc1394.o): In function `dc1394_read_packet': dc1394.c:(.text+0x83): undefined reference to `dc1394_dma_done_with_buffer' dc1394.c:(.text+0xb4): undefined reference to `dc1394_dma_single_capture' /home/rptr/ffmpeg/libavformat/libavformat.a(dc1394.o): In function `dc1394_read_header': dc1394.c:(.text+0x33a): undefined reference to `dc1394_create_handle' dc1394.c:(.text+0x362): undefined reference to `dc1394_get_camera_nodes' dc1394.c:(.text+0x3e4): undefined reference to `dc1394_dma_setup_capture' dc1394.c:(.text+0x421): undefined reference to `dc1394_destroy_handle' dc1394.c:(.text+0x469): undefined reference to `dc1394_start_iso_transmission' dc1394.c:(.text+0x4a4): undefined reference to `dc1394_dma_unlisten' dc1394.c:(.text+0x4b6): undefined reference to `dc1394_dma_release_camera' /home/rptr/ffmpeg/libavcodec/libavcodec.a(libgsm.o): In function `libgsm_decode_frame': libgsm.c:(.text+0x73): undefined reference to `gsm_decode' libgsm.c:(.text+0x96): undefined reference to `gsm_decode' libgsm.c:(.text+0xc0): undefined reference to `gsm_decode' /home/rptr/ffmpeg/libavcodec/libavcodec.a(libgsm.o): In function `libgsm_close': libgsm.c:(.text+0xf2): undefined reference to `gsm_destroy' /home/rptr/ffmpeg/libavcodec/libavcodec.a(libgsm.o): In function `libgsm_encode_frame': libgsm.c:(.text+0x177): undefined reference to `gsm_encode' libgsm.c:(.text+0x192): undefined reference to `gsm_encode' libgsm.c:(.text+0x1b1): undefined reference to `gsm_encode' /home/rptr/ffmpeg/libavcodec/libavcodec.a(libgsm.o): In function `libgsm_init': libgsm.c:(.text+0x1f1): undefined reference to `gsm_create' libgsm.c:(.text+0x22d): undefined reference to `gsm_option' collect2: ld returned 1 exit status make[2]: *** [vlc] Error 1 make[2]: Leaving directory `/home/rptr/vlc-0.8.6c' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/rptr/vlc-0.8.6c' make: *** [all] Error 2

Re: ffmpeg encoder error

Posted: 10 Aug 2007 14:56
by funman
well you need to link to raw1394 libraries i guess.

either install the development files or use --disable-raw1394 in vlc (i'm not sure for the exact syntax)

Re: ffmpeg encoder error

Posted: 10 Aug 2007 16:42
by rptr
I try --disable-raw1394 and also --disable-dc139... but always the same errors while executing make...

Perhaps can I send to you the vlc-config file ?

Re: ffmpeg encoder error

Posted: 10 Aug 2007 16:49
by funman
well --disable-*1394 while building ffmpeg should do the trick

Re: ffmpeg encoder error

Posted: 13 Aug 2007 08:54
by rptr
well --disable-*1394 while building ffmpeg should do the trick
I try that but always the same errors... Have you another solution ?

Re: ffmpeg encoder error

Posted: 13 Aug 2007 13:05
by funman
no... works fine for me...

did you run

Code: Select all

sudo apt-get build-dep vlc
?

Re: ffmpeg encoder error

Posted: 13 Aug 2007 14:43
by rptr
did you run

sudo apt-get build-dep vlc

?
Yes, already done.

Re: ffmpeg encoder error

Posted: 13 Aug 2007 16:30
by funman
which version of vlc are you compiling ? you should try to compile the same than in ubuntu

even get the source package of vlc in ubuntu would be the best: apt-get source vlc

Re: ffmpeg encoder error

Posted: 13 Aug 2007 19:54
by rptr
which version of vlc are you compiling ? you should try to compile the same than in ubuntu
vlc version is 0.8.6...
even get the source package of vlc in ubuntu would be the best: apt-get source vlc
there is no possibility to transcode in mp3 with the source package in ubuntu...

Re: ffmpeg encoder error

Posted: 13 Aug 2007 23:46
by funman
use ffmpeg or lame ;)

Re: ffmpeg encoder error

Posted: 14 Aug 2007 08:15
by rptr
I already use ffmpeg : vlc to read | ffmpeg to encode in mp3 | vlc to stream :D

But it would be better with only vlc... if possible :D

Re: ffmpeg encoder error

Posted: 16 Aug 2007 14:34
by rptr
I think the best thing to do is to uninstall vlc and to reinstall it. Can you give me a correct configuration to do that ? I just need the defaults options and ffmpeg, ffmpeg-mp3lame. Thanks :D

Re: ffmpeg encoder error

Posted: 16 Aug 2007 16:12
by funman
??? option to build it or install it via apt-get ?

Re: ffmpeg encoder error

Posted: 16 Aug 2007 16:36
by rptr
To build it...

Re: ffmpeg encoder error

Posted: 17 Aug 2007 16:22
by funman
well the defaults go well too ;)