Results 1 to 5 of 5
  1. #1

    Title
    Junior Broadcaster
    Join Date
    Nov 2014
    Posts
    28
    Rep Power
    3

    Sending your icecast stream to YouTube live streaming :)

    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_s...put8h8onMLPp2Q
    Last edited by deaddred; 09-27-2017 at 04:32 AM.

  2. #2
    Matt Skills's Avatar
    Title
    Junior Broadcaster
    Join Date
    Sep 2017
    Posts
    10
    Rep Power
    1
    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

  3. #3

    Title
    Junior Broadcaster
    Join Date
    Nov 2014
    Posts
    28
    Rep Power
    3
    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.

  4. #4
    Matt Skills's Avatar
    Title
    Junior Broadcaster
    Join Date
    Sep 2017
    Posts
    10
    Rep Power
    1
    I was thinking more from a live DJ from their PC point of view rather than running constantly from a server.

  5. #5

    Title
    Junior Broadcaster
    Join Date
    Nov 2014
    Posts
    28
    Rep Power
    3
    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.

    Code:
    #!/bin/sh
    
    while true
    do
      mpc current > current.txt
      mpc idle player done
    Last edited by deaddred; 09-22-2017 at 07:59 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •