View Full Version : Sending your icecast stream to YouTube live streaming :)

09-22-2017, 05:56 AM
Was going some reading and wanted to see if anyone was using YT live with Icecast and stream live through YT. Well found this info and its works pretty good http://akos.me/2017/stream-icecast-stream-to-youtube/ Just remember to remove the [] where is says [KEY] when you put your key in.

I got my stream testing here


Matt Skills
09-22-2017, 02:59 PM
What I have done before is use OBS Studio (https://obsproject.com/ (https://obsproject.com/download)) and used the shoutcast/icecast stream url as the audio source and then you can switch between displaying images, videos and webcams as the video source and it works quite well and you can also stream it to facebook live.

obviously this will only be useful from a live dj use and not auto dj though.


09-22-2017, 05:27 PM
I'm on a dedicated server so no gui. Still need to research if it possible to get ffmpeg/avconv to get the track name and print it to the screen when a different track is playing.

Oh and this might not be good if you're on a a VPS as it'll peg the CPU. I'm on E3/SSD and i'm constantly at 130% CPU usage and load at time hitting 2.

Matt Skills
09-22-2017, 07:25 PM
I was thinking more from a live DJ from their PC point of view rather than running constantly from a server.

09-22-2017, 07:47 PM
No problem.

Ok think I found an easy solution to printing the current track name in the video while its playing. I still need to see if avconv drawtext supports the reload options like ffmpeg does.

So avconv and ffmpeg have the drawtext option which will draw text onto the screen. This can come from a text file and ffmpeg has the reload option that scans the txt file for changed every frame or what ever you set it to

tA text file containing text to be drawn. The text must be a sequence of UTF-8 encoded characters.
This parameter is mandatory if no text string is specified with the parameter text.
If both text and textfile are specified, an error is thrown.
reloadIf set to 1, the textfile will be reloaded before each frame. Be sure to update it atomically, or it may be read partially, or even fail.

So I'm using MPD as the Icecast srouce and MPC to control MPD. MPC has an option to write the current track name to a file. In console mpc current current.xt and it'll print the track name.

So all you you would have to do is run a scrip to constantly update the current.txt file which ffmpeg/avconv would read and use the drawtext command and options to format the track name in the video stream.

Found this also and texted running it in tmux as not sure if it keep running after you execute it. It writes the current track to a file on track change.


while true
mpc current > current.txt
mpc idle player done