ffmpeg encoder error

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

Re: ffmpeg encoder error

Postby rptr » 17 Aug 2007 16:27

not for mp3 encoding...

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:37

Ubuntu 7.04
Using medibuntu's ffmpeg


[fun@ubuntu ~]% vlc -vvv --color out.wav --sout '#transcode{acodec=mp3,ab=128}:standard{access=udp,mux=ts,dst=230.1.1.1}'
VLC media player 0.8.6 Janus
[00000001] main private debug: checking builtin modules
[00000001] main private debug: checking plugin modules
[00000001] main private debug: loading plugins cache file /home/fun/.vlc/cache/plugins-04041e.dat
[00000001] main private debug: recursively browsing `modules'
[00000001] main private debug: recursively browsing `/usr/lib/vlc'
[00000001] main private debug: recursively browsing `plugins'
[00000001] main private debug: module bank initialized, found 215 modules
[00000001] main private debug: opening config file /home/fun/.vlc/vlcrc
[00000001] main private debug: CPU has capabilities 486 586 MMX MMXEXT SSE SSE2 FPU
[00000001] main private debug: looking for memcpy module: 1 candidate
[00000001] main private debug: using memcpy module "memcpy"
[00000280] main playlist debug: waiting for thread completion
[00000280] main playlist debug: thread 3076135824 (playlist) created at priority 0 (playlist/playlist.c:184)
[00000281] main private debug: waiting for thread completion
[00000281] main private debug: thread 3067743120 (preparser) created at priority 0 (playlist/playlist.c:210)
[00000282] main interface debug: looking for interface module: 0 candidates
[00000282] main interface error: no interface module matched "audioscrobbler,none"
[00000282] main interface error: no suitable interface module
[00000001] main private error: interface "audioscrobbler,none" initialization failed
[00000283] main interface debug: looking for interface module: 1 candidate
[00000283] main interface debug: using interface module "hotkeys"
[00000283] main interface debug: thread 3059325840 (interface) created at priority 0 (interface/interface.c:231)
[00000285] main interface debug: looking for interface module: 1 candidate
[00000285] main interface debug: using interface module "screensaver"
[00000285] main interface debug: thread 3050924944 (interface) created at priority 0 (interface/interface.c:231)
[00000280] main playlist debug: adding playlist item `out.wav' ( out.wav )
[00000287] main interface debug: looking for interface module: 5 candidates
[00000287] main interface debug: using interface module "wxwidgets"
[00000287] main interface debug: thread 3025423248 (manager) created at priority 0 (interface/interface.c:216)
[00000287] wxwidgets interface debug: Using last windows config '(-1,0,0,1024,768)(0,0,24,460,86)(6,0,0,-1,150)'
[00000287] wxwidgets interface debug: id=0 p=(0,24) s=(460,86)
[00000287] wxwidgets interface debug: id=6 p=(0,0) s=(-1,150)
[00000280] main playlist debug: nothing requested, starting
[00000280] main playlist debug: creating new input thread
[00000290] main input debug: waiting for thread completion
[00000290] main input debug: thread 2998381456 (input) created at priority 0 (input/input.c:265)
[00000291] main stream output debug: stream=`transcode'
[00000292] main private debug: looking for sout stream module: 1 candidate
[00000291] main stream output debug: stream=`standard'
[00000295] main private debug: looking for sout stream module: 1 candidate
[00000295] main private debug: set sout option: sout-standard-access to udp
[00000295] main private debug: set sout option: sout-standard-mux to ts
[00000295] main private debug: set sout option: sout-standard-dst to 230.1.1.1
[00000295] stream_out_standard private debug: creating `udp/ts://230.1.1.1'
[00000295] stream_out_standard private debug: extension is 1
[00000295] stream_out_standard private debug: extension -> mux=(null)
[00000295] stream_out_standard private debug: using `udp/ts://230.1.1.1'
[00000297] main private debug: looking for sout access module: 1 candidate
[00000297] main private debug: net: connecting to 230.1.1.1 port 1234
[00000299] main private debug: thread 2989906832 (sout write thread) created at priority 0 (udp.c:268)
[00000297] access_output_udp private debug: udp access output opened(230.1.1.1:1234)
[00000297] main private debug: using sout access module "access_output_udp"
[00000295] stream_out_standard private debug: access opened
[00000300] main private debug: looking for sout mux module: 1 candidate
[00000300] mux_ts private debug: shaping=200000 pcr=70000 dts_delay=400000
[00000300] main private debug: using sout mux module "mux_ts"
[00000291] main stream output debug: muxer support adding stream at any time
[00000295] stream_out_standard private debug: mux opened
[00000295] main private debug: using sout stream module "stream_out_standard"
[00000292] main private debug: set sout option: sout-transcode-acodec to mp3
[00000292] main private debug: set sout option: sout-transcode-ab to 128
[00000292] stream_out_transcode private debug: codec audio=mp3 0Hz 0 channels 128Kb/s
[00000292] main private debug: using sout stream module "stream_out_transcode"
[00000290] main input debug: `out.wav' gives access `' demux `' path `out.wav'
[00000290] main input debug: creating demux: access='' demux='' path='out.wav'
[00000301] main demuxer debug: looking for access_demux module: 2 candidates
[00000290] main input debug: creating access '' path='out.wav'
[00000304] main access debug: looking for access2 module: 5 candidates
[00000304] vcd access debug: trying .cue file: out.cue
[00000304] vcd access debug: could not find .cue file
[00000304] access_file access debug: opening file `out.wav'
[00000304] main access debug: using access2 module "access_file"
[00000310] main private debug: pre-buffering...
[00000310] main private debug: received first data for our buffer
[00000310] main private debug: pre-buffering done 1408981 bytes in 0s - 529418 kbytes/s
[00000290] main input debug: creating demux: access='' demux='' path='out.wav'
[00000311] main demuxer debug: looking for demux2 module: 45 candidates
[00000311] wav demuxer debug: chunk: fcc=`fmt ` size=16
[00000311] wav demuxer debug: format: 0x0001, fourcc: araw, channels: 1, freq: 22050 Hz, bitrate: 43Ko/s, blockalign: 2, bits/samples: 16, extra size: 0
[00000311] wav demuxer debug: found Raw audio audio format
[00000311] wav demuxer debug: chunk: fcc=`data` size=9768960
[00000290] main input debug: selecting program id=0
[00000311] main demuxer debug: using demux2 module "wav"
[00000290] main input debug: looking for a subtitle file in /home/fun/
[00000312] main packetizer debug: looking for packetizer module: 17 candidates
[00000312] main packetizer debug: using packetizer module "packetizer_copy"
[00000290] main input debug: stream out mode -> no decoder thread
[00000290] main input debug: starting in sync mode
[00000290] main input debug: `out.wav' successfully opened
[00000291] main stream output debug: adding a new input
[00000292] stream_out_transcode private debug: creating audio transcoding from fcc=`s16l' to fcc=`mp3 '
[00000343] main decoder debug: looking for decoder module: 24 candidates
[00000343] araw decoder debug: samplerate:22050Hz channels:1 bits/sample:16
[00000343] main decoder debug: using decoder module "araw"
[00000344] main encoder debug: looking for encoder module: 8 candidates
[00000344] ffmpeg encoder debug: libavcodec initialized (interface 3345152 )
[00000344] ffmpeg encoder debug: found encoder MPEG Audio layer 1/2/3
[00000344] main encoder debug: using encoder module "ffmpeg"
[00000300] main private debug: adding a new input
[00000300] mux_ts private debug: adding input codec=mpga pid=68
[00000300] mux_ts private debug: new PCR PID is 68
[00000290] main input debug: control type=0
[00000290] main input debug: control: stopping input
[00000290] main input debug: closing input
[00000311] main demuxer debug: removing module "wav"
[00000304] main access debug: removing module "access_file"
[00000312] main packetizer debug: removing module "packetizer_copy"
[00000312] main packetizer debug: killing decoder fourcc `araw', 0 PES in FIFO
[00000291] main stream output debug: removing an input
[00000343] main decoder debug: removing module "araw"
[00000344] main encoder debug: removing module "ffmpeg"
[00000300] mux_ts private debug: removing input pid=68
[00000300] mux_ts private debug: new PCR PID is 8191
[00000300] main private warning: no more input streams for this mux
[00000290] main input debug: destroying sout
[00000292] main private debug: destroying chain... (name=transcode)
[00000295] main private debug: destroying chain... (name=standard)
[00000300] main private debug: removing module "mux_ts"
[00000299] main private debug: thread 2989906832 joined (udp.c:316)
[00000297] access_output_udp private debug: udp access output closed
[00000297] main private debug: removing module "access_output_udp"
[00000295] main private debug: removing module "stream_out_standard"
[00000295] main private debug: destroying chain done
[00000292] main private debug: removing module "stream_out_transcode"
[00000292] main private debug: destroying chain done
[00000290] main input debug: thread 2998381456 joined (input/input.c:412)
[00000001] main private debug: removing all interfaces
[00000287] main interface debug: thread 3025423248 joined (interface/interface.c:258)
[00000287] main interface debug: removing module "wxwidgets"
[00000285] main interface debug: thread 3050924944 joined (interface/interface.c:258)
[00000285] main interface debug: removing module "screensaver"
[00000290] main input warning: refcount is -1, delaying before deletion (id=290,type=-7)
[00000283] main interface debug: thread 3059325840 joined (interface/interface.c:258)
[00000283] main interface debug: removing module "hotkeys"
[00000001] main private debug: removing playlist handler
[00000281] main private debug: thread 3067743120 joined (playlist/playlist.c:247)
[00000290] main input error: refcount is -1, delaying again (id=290,type=-7)
[00000290] main input error: waited too long, cancelling destruction (id=290,type=-7)
[00000280] main playlist debug: thread 3076135824 joined (playlist/playlist.c:248)
[00000280] main playlist: stopping playback
[00000280] main playlist debug: deleting playlist item `out.wav'
[00000001] main private debug: removing all video outputs
[00000001] main private debug: removing all audio outputs
[00000001] main private debug: removing module "memcpy"
[00000001] main private debug: opening config file /home/fun/.vlc/vlcrc
[00000001] main private debug: saving plugins cache file /home/fun/.vlc/cache/plugins-04041e.dat
[fun@ubuntu ~]%

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

Re: ffmpeg encoder error

Postby rptr » 20 Aug 2007 08:11

Ok... It works... Thanks :D

MaNRo
New Cone
New Cone
Posts: 2
Joined: 03 Sep 2007 04:01

Re: ffmpeg encoder error

Postby MaNRo » 03 Sep 2007 04:10

Ok... It works... Thanks :D
How do you fix it?, I cannot find a way to fix mine! :cry:

$ stream

Code: Select all

VLC media player 0.8.6 Janus [00000297] main private: creating httpd [00000357] ffmpeg encoder error: cannot find encoder MPEG Audio layer 1/2/3 [00000292] stream_out_transcode private error: cannot find encoder ((null)) [00000292] stream_out_transcode private error: cannot create audio chain [00000311] main packetizer error: cannot create packetizer output (s16l)
$ vlc -vvv --color startup.wav --sout '#transcode{acodec=mp3,ab=128}:standard{access=udp,mux=ts,dst=230.1.1.1}'

Code: Select all

VLC media player 0.8.6 Janus [00000001] main private debug: checking builtin modules [00000001] main private debug: checking plugin modules [00000001] main private debug: loading plugins cache file /home/manro/.vlc/cache/plugins-04041e.dat [00000001] main private debug: recursively browsing `modules' [00000001] main private debug: recursively browsing `/usr/lib/vlc' [00000001] main private debug: recursively browsing `plugins' [00000001] main private debug: module bank initialized, found 215 modules [00000001] main private debug: opening config file /home/manro/.vlc/vlcrc [00000001] main private debug: CPU has capabilities 486 586 MMX MMXEXT SSE SSE2 FPU [00000001] main private debug: looking for memcpy module: 1 candidate [00000001] main private debug: using memcpy module "memcpy" [00000280] main playlist debug: waiting for thread completion [00000280] main playlist debug: thread 3078744976 (playlist) created at priority 0 (playlist/playlist.c:184) [00000281] main private debug: waiting for thread completion [00000281] main private debug: thread 3070352272 (preparser) created at priority 0 (playlist/playlist.c:210) [00000282] main interface debug: looking for interface module: 1 candidate [00000282] main interface debug: using interface module "hotkeys" [00000282] main interface debug: thread 3061959568 (interface) created at priority 0 (interface/interface.c:231) [00000284] main interface debug: looking for interface module: 1 candidate [00000284] main interface debug: using interface module "screensaver" [00000284] main interface debug: thread 3053566864 (interface) created at priority 0 (interface/interface.c:231) [00000280] main playlist debug: adding playlist item `startup.wav' ( startup.wav ) [00000286] main interface debug: looking for interface module: 5 candidates [00000286] main interface debug: using interface module "wxwidgets" [00000286] main interface debug: thread 3028011920 (manager) created at priority 0 (interface/interface.c:216) [00000286] wxwidgets interface debug: Using last windows config '(-1,0,0,1680,1050)(0,1043,49,417,84)(6,0,0,-1,150)' [00000286] wxwidgets interface debug: id=0 p=(1043,49) s=(417,84) [00000286] wxwidgets interface debug: id=6 p=(0,0) s=(-1,150) [00000280] main playlist debug: nothing requested, starting [00000280] main playlist debug: creating new input thread [00000289] main input debug: waiting for thread completion [00000289] main input debug: creating statistics handler [00000291] main stream output debug: stream=`transcode' [00000292] main private debug: looking for sout stream module: 1 candidate [00000291] main stream output debug: stream=`standard' [00000295] main private debug: looking for sout stream module: 1 candidate [00000295] main private debug: set sout option: sout-standard-access to udp [00000295] main private debug: set sout option: sout-standard-mux to ts [00000295] main private debug: set sout option: sout-standard-dst to 230.1.1.1 [00000295] stream_out_standard private debug: creating `udp/ts://230.1.1.1' [00000295] stream_out_standard private debug: extension is 1 [00000295] stream_out_standard private debug: extension -> mux=(null) [00000295] stream_out_standard private debug: using `udp/ts://230.1.1.1' [00000297] main private debug: looking for sout access module: 1 candidate [00000297] main private debug: net: connecting to 230.1.1.1 port 1234 [00000299] main private debug: thread 3001002896 (sout write thread) created at priority 0 (udp.c:268) [00000297] access_output_udp private debug: udp access output opened(230.1.1.1:1234) [00000297] main private debug: using sout access module "access_output_udp" [00000295] stream_out_standard private debug: access opened [00000300] main private debug: looking for sout mux module: 1 candidate [00000300] mux_ts private debug: shaping=200000 pcr=70000 dts_delay=400000 [00000300] main private debug: using sout mux module "mux_ts" [00000291] main stream output debug: muxer support adding stream at any time [00000295] stream_out_standard private debug: mux opened [00000295] main private debug: using sout stream module "stream_out_standard" [00000289] main input debug: thread 3009461136 (input) created at priority 0 (input/input.c:265) [00000292] main private debug: set sout option: sout-transcode-acodec to mp3 [00000292] main private debug: set sout option: sout-transcode-ab to 128 [00000292] stream_out_transcode private debug: codec audio=mp3 0Hz 0 channels 128Kb/s [00000292] main private debug: using sout stream module "stream_out_transcode" [00000289] main input debug: `startup.wav' gives access `' demux `' path `startup.wav' [00000289] main input debug: creating demux: access='' demux='' path='startup.wav' [00000301] main demuxer debug: looking for access_demux module: 2 candidates [00000289] main input debug: creating access '' path='startup.wav' [00000304] main access debug: looking for access2 module: 5 candidates [00000304] vcd access debug: trying .cue file: startup.cue [00000304] vcd access debug: could not find .cue file [00000304] access_file access debug: opening file `startup.wav' [00000304] main access debug: using access2 module "access_file" [00000310] main private debug: pre-buffering... [00000310] main private debug: received first data for our buffer [00000289] main input debug: creating demux: access='' demux='' path='startup.wav' [00000311] main demuxer debug: looking for demux2 module: 45 candidates [00000311] wav demuxer debug: chunk: fcc=`fmt ` size=16 [00000311] wav demuxer debug: format: 0x0001, fourcc: araw, channels: 2, freq: 44100 Hz, bitrate: 172Ko/s, blockalign: 4, bits/samples: 16, extra size: 0 [00000311] wav demuxer debug: found Raw audio audio format [00000311] wav demuxer debug: chunk: fcc=`data` size=707712 [00000289] main input debug: selecting program id=0 [00000311] main demuxer debug: using demux2 module "wav" [00000289] main input debug: looking for a subtitle file in /home/manro/ [00000323] main packetizer debug: looking for packetizer module: 17 candidates [00000323] main packetizer debug: using packetizer module "packetizer_copy" [00000289] main input debug: stream out mode -> no decoder thread [00000289] main input debug: starting in sync mode [00000289] main input debug: `startup.wav' successfully opened [00000291] main stream output debug: adding a new input [00000292] stream_out_transcode private debug: creating audio transcoding from fcc=`s16l' to fcc=`mp3 ' [00000354] main decoder debug: looking for decoder module: 24 candidates [00000354] araw decoder debug: samplerate:44100Hz channels:2 bits/sample:16 [00000354] main decoder debug: using decoder module "araw" [00000355] main encoder debug: looking for encoder module: 8 candidates [00000355] ffmpeg encoder debug: libavcodec initialized (interface 3345152 ) [00000355] ffmpeg encoder error: cannot find encoder MPEG Audio layer 1/2/3 [00000292] stream_out_transcode private error: cannot find encoder ((null)) [00000354] main decoder debug: removing module "araw" [00000292] stream_out_transcode private error: cannot create audio chain [00000323] main packetizer error: cannot create packetizer output (s16l) [00000289] main input debug: EOF reached [00000289] main input debug: closing input [00000311] main demuxer debug: removing module "wav" [00000304] main access debug: removing module "access_file" [00000323] main packetizer debug: removing module "packetizer_copy" [00000323] main packetizer debug: killing decoder fourcc `araw', 0 PES in FIFO [00000289] main input debug: destroying sout [00000292] main private debug: destroying chain... (name=transcode) [00000295] main private debug: destroying chain... (name=standard) [00000300] main private debug: removing module "mux_ts" [00000299] access_output_udp private debug: packet has been sent too late (1188785085028225) [00000299] main private debug: thread 3001002896 joined (udp.c:316) [00000297] access_output_udp private debug: udp access output closed [00000297] main private debug: removing module "access_output_udp" [00000295] main private debug: removing module "stream_out_standard" [00000295] main private debug: destroying chain done [00000292] main private debug: removing module "stream_out_transcode" [00000292] main private debug: destroying chain done [00000289] main input debug: thread 3009461136 joined (input/input.c:412) [00000280] main playlist: nothing to play
Thanks for the help! :)
MaNRo

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

Re: ffmpeg encoder error

Postby rptr » 03 Sep 2007 16:50

You problem is here. VLC doesn't find the mp3 encoder.

Code: Select all

[00000357] ffmpeg encoder error: cannot find encoder MPEG Audio layer 1/2/3
First of all install FFmpeg with mp3 support (libmp3lame). Have a look on the previous messages to know how to do that. You can check the mp3 encoder with the following command :

Code: Select all

ffmpeg -i startup.wav -f mp3 startup.mp3
Uninstall VLC and reinstall it when you are sure FFmpeg can encode to mp3. It should work.

MaNRo
New Cone
New Cone
Posts: 2
Joined: 03 Sep 2007 04:01

Re: ffmpeg encoder error

Postby MaNRo » 04 Sep 2007 06:01

You problem is here. VLC doesn't find the mp3 encoder.

Code: Select all

[00000357] ffmpeg encoder error: cannot find encoder MPEG Audio layer 1/2/3
First of all install FFmpeg with mp3 support (libmp3lame). Have a look on the previous messages to know how to do that. You can check the mp3 encoder with the following command :

Code: Select all

ffmpeg -i startup.wav -f mp3 startup.mp3
Uninstall VLC and reinstall it when you are sure FFmpeg can encode to mp3. It should work.
Thanks, :D ... to be honest I did not understand very well the thing about the "libmp3lame" (my english is not so good, neither my Linux knowledge) but anyway, what I did was:

1. Remove and purge vlc and ffmpeg
2. Add the medibuntu's repositories
3. Install ffmpeg
4. Install vlc

After that everything is running just the way it should!

Thanks for all the help! :D
Best regards,
MaNRo


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

Who is online

Users browsing this forum: No registered users and 13 guests