ffmpeg encoder error

*nix specific usage questions
rptr
Blank Cone
Blank Cone
Posts: 30
Joined: 07 Aug 2007 14:59

ffmpeg encoder error

Postby rptr » 09 Aug 2007 16:07

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 ?

funman
Developer
Developer
Posts: 1159
Joined: 03 Sep 2006 04:03
VLC version: master
Operating System: All of them
Location: Lost, please help me

Re: ffmpeg encoder error

Postby funman » 09 Aug 2007 17:53

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

rptr
Blank Cone
Blank Cone
Posts: 30
Joined: 07 Aug 2007 14:59

Re: ffmpeg encoder error

Postby rptr » 09 Aug 2007 18:34

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}'

funman
Developer
Developer
Posts: 1159
Joined: 03 Sep 2006 04:03
VLC version: master
Operating System: All of them
Location: Lost, please help me

Re: ffmpeg encoder error

Postby funman » 09 Aug 2007 21:23

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)

rptr
Blank Cone
Blank Cone
Posts: 30
Joined: 07 Aug 2007 14:59

Re: ffmpeg encoder error

Postby rptr » 10 Aug 2007 07:47

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))

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: ffmpeg encoder error

Postby Jean-Baptiste Kempf » 10 Aug 2007 08:58

Did you clean your cache ?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

rptr
Blank Cone
Blank Cone
Posts: 30
Joined: 07 Aug 2007 14:59

Re: ffmpeg encoder error

Postby rptr » 10 Aug 2007 09:04

Yes, but no effect... Still ffmpeg encoder error...

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: ffmpeg encoder error

Postby Jean-Baptiste Kempf » 10 Aug 2007 09:16

Have you try to not specify ffmpeg-config, but just ffmpeg-tree ?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

rptr
Blank Cone
Blank Cone
Posts: 30
Joined: 07 Aug 2007 14:59

Re: ffmpeg encoder error

Postby rptr » 10 Aug 2007 09:25

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 ?

funman
Developer
Developer
Posts: 1159
Joined: 03 Sep 2006 04:03
VLC version: master
Operating System: All of them
Location: Lost, please help me

Re: ffmpeg encoder error

Postby funman » 10 Aug 2007 12:17

paste the make output

rptr
Blank Cone
Blank Cone
Posts: 30
Joined: 07 Aug 2007 14:59

Re: ffmpeg encoder error

Postby rptr » 10 Aug 2007 13:50

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

funman
Developer
Developer
Posts: 1159
Joined: 03 Sep 2006 04:03
VLC version: master
Operating System: All of them
Location: Lost, please help me

Re: ffmpeg encoder error

Postby funman » 10 Aug 2007 14:56

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)

rptr
Blank Cone
Blank Cone
Posts: 30
Joined: 07 Aug 2007 14:59

Re: ffmpeg encoder error

Postby rptr » 10 Aug 2007 16:42

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 ?

funman
Developer
Developer
Posts: 1159
Joined: 03 Sep 2006 04:03
VLC version: master
Operating System: All of them
Location: Lost, please help me

Re: ffmpeg encoder error

Postby funman » 10 Aug 2007 16:49

well --disable-*1394 while building ffmpeg should do the trick

rptr
Blank Cone
Blank Cone
Posts: 30
Joined: 07 Aug 2007 14:59

Re: ffmpeg encoder error

Postby rptr » 13 Aug 2007 08:54

well --disable-*1394 while building ffmpeg should do the trick
I try that but always the same errors... Have you another solution ?

funman
Developer
Developer
Posts: 1159
Joined: 03 Sep 2006 04:03
VLC version: master
Operating System: All of them
Location: Lost, please help me

Re: ffmpeg encoder error

Postby funman » 13 Aug 2007 13:05

no... works fine for me...

did you run

Code: Select all

sudo apt-get build-dep vlc
?

rptr
Blank Cone
Blank Cone
Posts: 30
Joined: 07 Aug 2007 14:59

Re: ffmpeg encoder error

Postby rptr » 13 Aug 2007 14:43

did you run

sudo apt-get build-dep vlc

?
Yes, already done.

funman
Developer
Developer
Posts: 1159
Joined: 03 Sep 2006 04:03
VLC version: master
Operating System: All of them
Location: Lost, please help me

Re: ffmpeg encoder error

Postby funman » 13 Aug 2007 16:30

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

rptr
Blank Cone
Blank Cone
Posts: 30
Joined: 07 Aug 2007 14:59

Re: ffmpeg encoder error

Postby rptr » 13 Aug 2007 19:54

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...

funman
Developer
Developer
Posts: 1159
Joined: 03 Sep 2006 04:03
VLC version: master
Operating System: All of them
Location: Lost, please help me

Re: ffmpeg encoder error

Postby funman » 13 Aug 2007 23:46

use ffmpeg or lame ;)

rptr
Blank Cone
Blank Cone
Posts: 30
Joined: 07 Aug 2007 14:59

Re: ffmpeg encoder error

Postby rptr » 14 Aug 2007 08:15

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

rptr
Blank Cone
Blank Cone
Posts: 30
Joined: 07 Aug 2007 14:59

Re: ffmpeg encoder error

Postby rptr » 16 Aug 2007 14:34

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

funman
Developer
Developer
Posts: 1159
Joined: 03 Sep 2006 04:03
VLC version: master
Operating System: All of them
Location: Lost, please help me

Re: ffmpeg encoder error

Postby funman » 16 Aug 2007 16:12

??? option to build it or install it via apt-get ?

rptr
Blank Cone
Blank Cone
Posts: 30
Joined: 07 Aug 2007 14:59

Re: ffmpeg encoder error

Postby rptr » 16 Aug 2007 16:36

To build it...

funman
Developer
Developer
Posts: 1159
Joined: 03 Sep 2006 04:03
VLC version: master
Operating System: All of them
Location: Lost, please help me

Re: ffmpeg encoder error

Postby funman » 17 Aug 2007 16:22

well the defaults go well too ;)


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 11 guests