Streaming and transcoding

About encoding, codec settings, muxers and filter usage
Lisofc
New Cone
New Cone
Posts: 7
Joined: 06 Oct 2007 16:00

Streaming and transcoding

Postby Lisofc » 02 Apr 2008 11:25

Hi,

After search on google and into this forum, I don't understand why my commande line doesn't work. (the input stream bitrate is 128k and the command line was in the wiki)

Code: Select all

./vlc -I dummy -vvv --color http://scfire-dll-aa01.stream.aol.com:80/stream/1048 --sout "#transcode{aenc=mp3,ab=64}:std{access=shout{mp3,name='TT',url=''},mux=raw,dst=source:pass@ip:port}" vlc:quit
I can stream the input file but there is no transcoding, the output stream is 128k also...
And the vlc stop to send packets after 15 secondes...

I can see there is a problem with the "codec mp3"... I have compiled ffmpeg with libmp3lame....
And VLC with : $ ./configure --enable-ffmpeg --with-ffmpeg-mp3lame --enable-mad --disable-libdvbpsi --disable-a52 --disable-dca --enable-libmpeg2 --disable-fribidi --disable-speex --disable-flac --enable-live555 --disable-caca -disable-kde --disable-qt --enable-release --enable-x264 --disable-flashsv --disable-wxwidgets --disable-skins2 --disable-v4l --disable-dvb --enable-shout --disable-glx


Can you see a problem in the command line maybe ?

Thanks.

Here the logs :

Code: Select all

[00000485] access_http access debug: Meta-Info: icy-url: http://www.radioparadise.com [00000485] access_http access debug: Content-Type: audio/mpeg [00000485] access_http access debug: Meta-Info: icy-pub: 1 [00000485] access_http access debug: Icy-MetaInt: 24576 [00000485] access_http access warning: ICY metaint=24576 [00000485] access_http access debug: Meta-Info: icy-br: 128 [00000485] access_http access: Raw-audio server found, mp3 demuxer selected [00000485] access_http access debug: auto re-connect enabled [00000485] main access debug: using access2 module "access_http" [00000487] main private debug: pre-buffering... [00000487] main private debug: received first data for our buffer [00000487] main private debug: pre-buffering done 2920 bytes in 0s - 21 kbytes/s [00000472] main input debug: creating demux: access='http' demux='mp3' path='scfire-dll-aa01.stream.aol.com:80/stream/1048' [00000488] main demuxer debug: looking for demux2 module: 2 candidates [00000490] main packetizer debug: looking for packetizer module: 30 candidates [00000490] main packetizer debug: using packetizer module "mpeg_audio" [00000490] mpeg_audio packetizer debug: emulated startcode (no startcode on following frame) [00000490] mpeg_audio packetizer debug: emulated startcode (no startcode on following frame) [00000490] mpeg_audio packetizer debug: MPGA channels:2 samplerate:44100 bitrate:128 [00000472] main input debug: selecting program id=0 [00000488] main demuxer debug: looking for id3 module: 0 candidates [00000488] main demuxer error: no id3 module matched "any" [00000488] main demuxer debug: using demux2 module "mpga" [00000529] main packetizer debug: looking for packetizer module: 30 candidates [00000529] main packetizer debug: using packetizer module "mpeg_audio" [00000472] main input debug: stream out mode -> no decoder thread [00000472] main input debug: starting in async mode [00000472] main input debug: meta information: [00000472] main input debug: - 'Titre' = 'Radio Paradise - DJ-mixed modern & classic rock, world, electronica & more - info: radioparadise.com' [00000472] main input debug: - 'Genre' = 'eclectic rock' [00000472] main input debug: `http://scfire-dll-aa01.stream.aol.com:80/stream/1048' successfully opened [00000529] mpeg_audio packetizer debug: MPGA channels:2 samplerate:44100 bitrate:128 [00000474] main stream output debug: adding a new input [00000475] stream_out_transcode private debug: creating audio transcoding from fcc=`mpga' to fcc=`mp3 ' [00000530] main decoder debug: looking for decoder module: 38 candidates [00000530] main decoder debug: using decoder module "mpeg_audio" [00000531] main encoder debug: looking for encoder module: 8 candidates [00000531] ffmpeg encoder debug: libavcodec initialized (interface 3345152 ) [00000531] ffmpeg encoder error: cannot find encoder MPEG Audio layer 1/2/3 [00000531] ffmpeg encoder debug: libavcodec initialized (interface 3345152 ) [00000531] ffmpeg encoder error: cannot find encoder MPEG Audio layer 1/2/3 [00000475] stream_out_transcode private error: cannot find encoder ((null)) [00000530] main decoder debug: removing module "mpeg_audio" [00000475] stream_out_transcode private error: cannot create audio chain [00000529] main packetizer error: cannot create packetizer output (mpga) [00000485] access_http access debug: New Title=Pete Yorn - For Us [00000472] main input debug: meta information: [00000472] main input debug: - 'Titre' = 'Radio Paradise - DJ-mixed modern & classic rock, world, electronica & more - info: radioparadise.com' [00000472] main input debug: - 'Genre' = 'eclectic rock' [00000472] main input debug: - 'Actuellement' = 'Pete Yorn - For Us' signal 2 received, terminating vlc - do it again in case it gets stuck [00000001] main private debug: removing all interfaces [00000463] main interface debug: thread 3057949616 joined (interface/interface.c:258) [00000463] main interface debug: removing module "dummy" [00000461] main interface debug: thread 3066358704 joined (interface/interface.c:258) [00000461] main interface debug: removing module "hotkeys" [00000001] main private debug: removing playlist handler [00000460] main private debug: thread 3074775984 joined (playlist/playlist.c:247) [00000472] main input debug: control type=0

revolunet
Big Cone-huna
Big Cone-huna
Posts: 515
Joined: 17 Oct 2007 13:16
VLC version: 0.9.8
Operating System: Vista
Location: Paris, France
Contact:

Re: Streaming and transcoding

Postby revolunet » 02 Apr 2008 15:34

i see

Code: Select all

ffmpeg encoder error: cannot find encoder MPEG Audio layer 1/2/3
in your debug

try with a52 codec, its easyer to setup under linux
VLC & web IT consulting - http://www.revolunet.com
Github : http://github.com/revolunet

Lisofc
New Cone
New Cone
Posts: 7
Joined: 06 Oct 2007 16:00

Re: Streaming and transcoding

Postby Lisofc » 02 Apr 2008 15:46

Thanks.

Ok, the problem ffmpeg encoder error: cannot find encoder MPEG Audio layer 1/2/3 is gone.

But the stream is online only 15 secondes, and there is no transcoding... and after 15 secondes, there is no source again connected to my server...

Another idea ?

revolunet
Big Cone-huna
Big Cone-huna
Posts: 515
Joined: 17 Oct 2007 13:16
VLC version: 0.9.8
Operating System: Vista
Location: Paris, France
Contact:

Re: Streaming and transcoding

Postby revolunet » 02 Apr 2008 16:00

you compiled with disable-a52 so you should try recompile with enable-a52 ;)
VLC & web IT consulting - http://www.revolunet.com
Github : http://github.com/revolunet

Lisofc
New Cone
New Cone
Posts: 7
Joined: 06 Oct 2007 16:00

Re: Streaming and transcoding

Postby Lisofc » 02 Apr 2008 16:59

Ok. I haven't got libmad...

Code: Select all

apt-get install libmad0 libmad0-dev then ./configure --enable-ffmpeg --with-ffmpeg-mp3lame --enable-mad --disable-libdvbpsi --enable-a52 --disable-dca --enable-libmpeg2 --disable-fribidi --disable-speex --disable-flac --enable-live555 --disable-caca -disable-kde --disable-qt --enable-release --enable-x264 --disable-flashsv --disable-wxwidgets --disable-skins2 --disable-v4l --disable-dvb --enable-shout --disable-glx
And then a "make".

But I have this problem now :

Code: Select all

[00000569] mpgatofixed32 private debug: libmad error: bad main_data_begin pointer [00000569] mpgatofixed32 private debug: libmad error: bad main_data_begin pointer
Any idea ?

Thanks.

johansyd
Blank Cone
Blank Cone
Posts: 25
Joined: 27 Feb 2008 11:10

Re: Streaming and transcoding

Postby johansyd » 10 Apr 2008 01:23

You have to install it on your system first. Make a check if it is installed.


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 14 guests