Streaming to icecast server

About encoding, codec settings, muxers and filter usage
rptr
Blank Cone
Blank Cone
Posts: 30
Joined: 07 Aug 2007 14:59

Streaming to icecast server

Postby rptr » 14 Aug 2007 15:29

I would like to stream with vlc to an icecast server using this command...

Code: Select all

vlc -vvv --color rhonefm.ogg --sout '#standard{access=shout,mux=ogg,dst=admin:*****@localhost:8800}' --loop
...but I obtain the following error message :

Code: Select all

[00000281] access_output_shout private warning: failed to connect using 'icy' (shoutcast) protocol status change: ( new input: rhonefm.ogg ) status change: ( audio volume: 256 ) status change: ( play state: 1 ) [00000281] access_output_shout private warning: failed to connect using 'http' (icecast 2.x) protocol [00000281] access_output_shout private error: failed to open shout stream to localhost:8800/: Login failed [00000281] main private warning: no sout access module matching "shout" could be loaded [00000279] stream_out_standard private error: no suitable sout access module for `shout/ogg://admin:*****@localhost:8800' [00000279] main private warning: no sout stream module matching "standard" could be loaded [00000279] main private debug: destroying chain... (name=standard) [00000279] main private debug: destroying chain done [00000278] main stream output error: stream chain failed for `standard{access=shout,mux=ogg,dst=admin:*****@localhost:8800}' [00000276] main input error: cannot start stream output instance, aborting
I compile vlc with --enable-shout and I can see "access_output_shout IceCAST output" with vlc --list...
Last edited by rptr on 16 Aug 2007 11:15, edited 1 time in total.

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

Re: Streaming to icecast server

Postby rptr » 14 Aug 2007 17:00

I made some changes, but I still can not read from icecast server. The mountpoint is not constant, so I think there is something wrong with the output from vlc to icecast...

Command line...

Code: Select all

vlc -vvv --color couleur3.mp3 --sout '#standard{access=shout,mux=ts,dst=source:test@localhost:8800/test}' --loop
Output log...

Code: Select all

VLC media player 0.8.6c Janus [00000001] main private debug: checking builtin modules [00000001] main private debug: checking plugin modules [00000001] main private debug: loading plugins cache file /home/sebastien/.vlc/cache/plugins-04041e.dat [00000001] main private debug: recursively browsing `modules' [00000001] main private debug: recursively browsing `/usr/local/lib/vlc' [00000001] main private debug: recursively browsing `plugins' [00000001] main private debug: module bank initialized, found 212 modules [00000001] main private debug: opening config file /home/sebastien/.vlc/vlcrc [00000001] main private debug: CPU has capabilities 486 586 MMX MMXEXT SSE SSE2 FPU [00000001] main private debug: looking for memcpy module: 3 candidates [00000001] main private debug: using memcpy module "memcpymmxext" [00000268] main playlist debug: waiting for thread completion [00000268] main playlist debug: thread 3082652560 (playlist) created at priority 0 (playlist/playlist.c:184) [00000269] main private debug: waiting for thread completion [00000269] main private debug: thread 3074259856 (preparser) created at priority 0 (playlist/playlist.c:210) [00000270] main interface debug: looking for interface module: 1 candidate [00000270] main interface debug: using interface module "hotkeys" [00000270] main interface debug: thread 3065867152 (interface) created at priority 0 (interface/interface.c:231) [00000272] main interface debug: looking for interface module: 1 candidate [00000272] main interface debug: using interface module "screensaver" [00000272] main interface debug: thread 3057474448 (interface) created at priority 0 (interface/interface.c:231) [00000268] main playlist debug: adding playlist item `couleur3.mp3' ( couleur3.mp3 ) [00000274] main interface debug: looking for interface module: 1 candidate Remote control interface initialized. Type `help' for help. [00000274] main interface debug: using interface module "rc" [00000274] main interface debug: thread 3049081744 (manager) created at priority 0 (interface/interface.c:216) [00000268] main playlist debug: creating new input thread [00000276] main input debug: waiting for thread completion [00000276] main input debug: creating statistics handler [00000278] main stream output debug: stream=`standard' [00000279] main private debug: looking for sout stream module: 1 candidate [00000279] main private debug: set sout option: sout-standard-access to shout [00000279] main private debug: set sout option: sout-standard-mux to ts [00000279] main private debug: set sout option: sout-standard-dst to source:test@localhost:8800/test [00000279] stream_out_standard private debug: creating `shout/ts://source:test@localhost:8800/test' [00000279] stream_out_standard private debug: using `shout/ts://source:test@localhost:8800/test' [00000281] main private debug: looking for sout access module: 1 candidate [00000281] access_output_shout private warning: failed to connect using 'icy' (shoutcast) protocol [00000276] main input debug: thread 3040689040 (input) created at priority 0 (input/input.c:265) status change: ( new input: couleur3.mp3 ) status change: ( audio volume: 256 ) status change: ( play state: 1 ) [00000281] access_output_shout private debug: connected using 'http' (icecast 2.x) protocol [00000281] access_output_shout private debug: shout access output opened (source@localhost:8800/test) [00000281] main private debug: using sout access module "access_output_shout" [00000279] stream_out_standard private debug: access opened [00000283] main private debug: looking for sout mux module: 1 candidate [00000283] mux_ts private debug: shaping=200000 pcr=70000 dts_delay=400000 [00000283] main private debug: using sout mux module "mux_ts" [00000278] main stream output debug: muxer support adding stream at any time [00000278] main stream output debug: muxer prefers to wait for all ES before starting to mux [00000279] stream_out_standard private debug: mux opened [00000279] main private debug: using sout stream module "stream_out_standard" [00000276] main input debug: `couleur3.mp3' gives access `' demux `' path `couleur3.mp3' [00000276] main input debug: creating demux: access='' demux='' path='couleur3.mp3' [00000284] main demuxer debug: looking for access_demux module: 1 candidate [00000276] main input debug: creating access '' path='couleur3.mp3' [00000286] main access debug: looking for access2 module: 4 candidates [00000286] vcd access debug: trying .cue file: couleur3.cue [00000286] vcd access debug: could not find .cue file [00000286] access_file access debug: opening file `couleur3.mp3' [00000286] main access debug: using access2 module "access_file" [00000291] main private debug: pre-buffering... [00000291] main private debug: received first data for our buffer [00000276] main input debug: creating demux: access='' demux='' path='couleur3.mp3' [00000292] main demuxer debug: ID3v2.4 revision 0 tag found, skipping 32 bytes [00000292] main demuxer debug: looking for demux2 module: 43 candidates [00000307] main packetizer debug: looking for packetizer module: 16 candidates [00000307] main packetizer debug: using packetizer module "mpeg_audio" [00000307] mpeg_audio packetizer debug: MPGA channels:2 samplerate:48000 bitrate:128 [00000276] main input debug: selecting program id=0 [00000292] main demuxer debug: looking for id3 module: 1 candidate [00000292] id3tag demuxer debug: checking for ID3 tag [00000292] id3tag demuxer debug: found ID3v2 tag [00000292] main demuxer debug: using id3 module "id3tag" [00000292] main demuxer debug: removing module "id3tag" [00000292] main demuxer debug: using demux2 module "mpga" [00000276] main input debug: looking for a subtitle file in /home/sebastien/ [00000332] main packetizer debug: looking for packetizer module: 16 candidates [00000332] main packetizer debug: using packetizer module "mpeg_audio" [00000276] main input debug: stream out mode -> no decoder thread [00000276] main input debug: starting in async mode [00000276] main input debug: meta information: [00000276] main input debug: - 'Encoded by' = 'Lavf51.12.1' [00000276] main input debug: `couleur3.mp3' successfully opened [00000332] mpeg_audio packetizer debug: MPGA channels:2 samplerate:48000 bitrate:128 [00000278] main stream output debug: adding a new input [00000283] main private debug: adding a new input [00000283] mux_ts private debug: adding input codec=mpga pid=68 [00000283] mux_ts private debug: new PCR PID is 68 [00000276] main input debug: EOF reached signal 2 received, terminating vlc - do it again in case it gets stuck status change: ( stop state: 0 ) status change: ( quit ) [00000001] main private debug: removing all interfaces [00000274] main interface debug: thread 3049081744 joined (interface/interface.c:258) [00000274] main interface debug: removing module "rc" [00000276] main input debug: closing input [00000307] main packetizer debug: removing module "mpeg_audio" [00000292] main demuxer debug: removing module "mpga" [00000286] main access debug: removing module "access_file" [00000332] main packetizer debug: removing module "mpeg_audio" [00000332] main packetizer debug: killing decoder fourcc `mpga', 0 PES in FIFO [00000278] main stream output debug: removing an input [00000283] mux_ts private debug: removing input pid=68 [00000283] mux_ts private debug: new PCR PID is 8191 [00000283] main private warning: no more input streams for this mux [00000276] main input debug: destroying sout [00000279] main private debug: destroying chain... (name=standard) [00000283] main private debug: removing module "mux_ts" [00000281] access_output_shout private debug: shout access output closed [00000281] main private debug: removing module "access_output_shout" [00000279] main private debug: removing module "stream_out_standard" [00000279] main private debug: destroying chain done [00000272] main interface debug: thread 3057474448 joined (interface/interface.c

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

Re: Streaming to icecast server

Postby rptr » 16 Aug 2007 13:54

If I change "access=shout,mux=ts" to "access=shout{mp3},mux=raw", the mountpoint becomes constant.

francki61
New Cone
New Cone
Posts: 2
Joined: 09 Jul 2010 16:17

Re: Streaming to icecast server

Postby francki61 » 09 Jul 2010 16:26

i had this error too:
access_output_shout warning: failed to connect using 'icy' (shoutcast) protocol
access_output_shout warning: failed to connect using 'http' (icecast 2.x) protocol
access_output_shout warning: unable to establish connection, retrying...

the solution :
put "source" as username or login, followed by a column and a password.
example : :sout=#transcode{acodec=vorb,ab=128,channels=2,samplerate=44100}:std{access=shout,mux=ogg,dst=source:0000@192.168.1.4:8000/live}

it seems putting "source" make work vlc

francki61
New Cone
New Cone
Posts: 2
Joined: 09 Jul 2010 16:17

Re: Streaming to icecast server

Postby francki61 » 09 Jul 2010 16:28

i had this error too:
access_output_shout warning: failed to connect using 'icy' (shoutcast) protocol
access_output_shout warning: failed to connect using 'http' (icecast 2.x) protocol
access_output_shout warning: unable to establish connection, retrying...

the solution :
put "source" as username or login, followed by a column and a password.
example : :sout=#transcode{acodec=vorb,ab=128,channels=2,samplerate=44100}:std{access=shout,mux=ogg,dst=source:0000@192.168.1.4:8000/live}

it seems putting "source" make work vlc


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 12 guests