VLC/shoutcast/icecast2 streaming
Posted: 16 Nov 2008 20:13
Good evening out there!
to my problem: my goal is to stream an arbitrary web radio stream to a shoutcast server (i. e. also transcoding is needed). I tried some hours to find a working output string and searched the web but it didnt work out. What I tried till now:
Streaming incoming ogg stream to icecast2, generated with the vlc gui (selected streaming context menu entry in the playlist window)
Result: working
Added now mp3 transcoding
Result: not working, also when indication as mux=raw or mux=mpeg1
Then found some reasonable hints in a forum (maybe here? lost the link...), that the output module shout requires some parameters and that mp3 streams do not have mountpoints (take root mountpoint...) in icecast2
or
Result: both not working, although the latter one gave me finally the correct (?) content type (Content Type: audio/mpeg) in the webadmin interface of icecast2. And it was working for this guy.
Then I switched to shoutcast (running on my mac, OS-X 10.4) because icecast2 seems to encourage ogg streams and was designed for that (but shouldnt it also stream mp3? anyway...) but also this didnt help. But I noticed, that the source is disconnecting because there is no data sent. (shoutcast console window: [source] no data (30s timeout). disconnecting). Then I went back to icecast2 and also there mountpoint is vanishing, even though after a shorter time. This lead me to the assumption that the transconding isnt working. So I tried it both under linux and windows environment and with mp3 input streams but always the same result, which means, I think, that this is not a platform dependent mp3 encoder issue (under linux I compiled the ffmpeg with libmp3lame support because the encoder wasnt found). The vlc messages dont show any useful information or errors.
Could anyone help me with this problem? I would appreciate it very much!
raich
to my problem: my goal is to stream an arbitrary web radio stream to a shoutcast server (i. e. also transcoding is needed). I tried some hours to find a working output string and searched the web but it didnt work out. What I tried till now:
Streaming incoming ogg stream to icecast2, generated with the vlc gui (selected streaming context menu entry in the playlist window)
Code: Select all
:sout=#duplicate{dst=std{access=shout,mux=ogg,dst=source:hackme@localhost:8000/live}}
Added now mp3 transcoding
Code: Select all
:sout=#transcode{acodec=mp3,ab=128,channels=2}:duplicate{dst=std{access=shout,mux=ogg,dst=source:hackme@localhost:8000/live}}
Then found some reasonable hints in a forum (maybe here? lost the link...), that the output module shout requires some parameters and that mp3 streams do not have mountpoints (take root mountpoint...) in icecast2
Code: Select all
:sout=#transcode{ab=24,samplerate=11025}:standard{access=shout{mp3},mux=raw,dst=source:hackme@localhost:8000/}
Code: Select all
:sout=#transcode{acodec=mp3,ab=128,channels=2}:std{access=shout{mp3=1,bitrate=128},mux=mpeg1,dst=source:hackme@localhost:8000/}}
Then I switched to shoutcast (running on my mac, OS-X 10.4) because icecast2 seems to encourage ogg streams and was designed for that (but shouldnt it also stream mp3? anyway...) but also this didnt help. But I noticed, that the source is disconnecting because there is no data sent. (shoutcast console window: [source] no data (30s timeout). disconnecting). Then I went back to icecast2 and also there mountpoint is vanishing, even though after a shorter time. This lead me to the assumption that the transconding isnt working. So I tried it both under linux and windows environment and with mp3 input streams but always the same result, which means, I think, that this is not a platform dependent mp3 encoder issue (under linux I compiled the ffmpeg with libmp3lame support because the encoder wasnt found). The vlc messages dont show any useful information or errors.
Could anyone help me with this problem? I would appreciate it very much!
raich