deaddred Posted September 22, 2017 Share Posted September 22, 2017 (edited) 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 https://www.youtube.com/embed/live_stream?channel=UCrqTlE4vcput8h8onMLPp2Q Edited September 27, 2017 by deaddred Link to comment Share on other sites More sharing options...
Matt Skills Posted September 22, 2017 Share Posted September 22, 2017 What I have done before is use OBS Studio (https://obsproject.com/) 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. Thanks, Matt TWITTER: @mattcas_tro SKYPE & EMAIL: matt@stationsite.co.uk FB: ITSMATTSKILLS Developer of StationSite & RealCast Link to comment Share on other sites More sharing options...
deaddred Posted September 22, 2017 Author Share Posted September 22, 2017 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. Link to comment Share on other sites More sharing options...
Matt Skills Posted September 22, 2017 Share Posted September 22, 2017 I was thinking more from a live DJ from their PC point of view rather than running constantly from a server. TWITTER: @mattcas_tro SKYPE & EMAIL: matt@stationsite.co.uk FB: ITSMATTSKILLS Developer of StationSite & RealCast Link to comment Share on other sites More sharing options...
deaddred Posted September 22, 2017 Author Share Posted September 22, 2017 (edited) 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. [color=#858C93][font=inherit]#!/bin/sh [/font][/color][color=#101094][font=inherit]while[/font][/color][color=#303336][font=inherit] true [/font][/color][color=#101094][font=inherit]do[/font][/color][color=#303336][font=inherit] mpc current [/font][/color][color=#303336][font=inherit]>[/font][/color][color=#303336][font=inherit] current[/font][/color][color=#303336][font=inherit].[/font][/color][color=#303336][font=inherit]txt mpc idle player [/font][/color][color=#101094][font=inherit]done[/font][/color] Edited September 22, 2017 by deaddred Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now