Azuracast: Video Streaming

Created on 12 Jul 2017  Â·  10Comments  Â·  Source: AzuraCast/AzuraCast

Will it be implemented so that video can be transmitted?

enhancement

Most helpful comment

Yep, it's the best way to do it.

All 10 comments

@AleAmla987 At the moment, I have no major plans to expand AzuraCast to include video streaming, as this would significantly expand the bandwidth and storage requirements of the system, and processing video can be a far more processor-expensive task than doing the same for audio.

However, both LiquidSoap and IceCast (to some extent) are capable of streaming video out to the public, so it's possible that such a feature could be developed in the future.

I do not think it is necessary that this integrated with AzuraCast, could be a separate project ... for example AzuraVideo, I would love to help but I am a .NET expert.

I agree it should be separated. I am willing to help in that effort as well

Well, it could be a good idea to stream a video for the radio, on livestreams like Facebook, Twitch, etc...

@Donokami Requested feature like that on HERE. Hopefully wanna see that soon!

You can do this with OBS Studio.

Yep, it's the best way to do it.

@Roforum But definitely hard to archive when you wanna do it with VPS.

I sincerily got a similar solution using ffmpeg (no OBS)

ffmpeg -loop 1 -i /var/background_image.jpg -thread_queue_size 512 -i https://radio.freeundergroundtekno.org/radio/8000/radio.mp3?1589882348 -c:v libx264 -preset veryfast -x264-params keyint=4:scenecut=0 -b:a 320k -b:v 8192k -minrate 2048k -maxrate 8192k -bufsize 8192k -f flv rtmp://a.rtmp.youtube.com/live2/587t-0t51-kyp2-YYYY-XXXX

Some additional info:

  • output bitrate can be 4500kbps as per YouTube guideline
  • thread_queue_size 512 to avoid audio drops
  • keyint=4 matches YouTube requirements on keyframe interval
  • bufsize 8192k can be higher if you still experience drops
  • preset veryfast help the cpu load a little bit (avoid iit f u need super video quality)
  • -i /var/background_image.jpg can be a live video/web camera/xvfb instead
  • you can dynamically compose a video frame output 30 times per second to simulate a full video input to pass to ffmpeg for encoding/mixing with input audio (to avoid annoying still images as music background, this need more cpu power of course) and push to YouTube live endpont (or others providers).

This works stable (Azuracast to ffmpeg to YouTube live endpoint) with a single cheap 5€/month linux VPS.

Well, it could be a good idea to stream a video for the radio, on livestreams like Facebook, Twitch, etc...

It is very popular on 2020. Most of them with a nice animation background loop.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

RemBdev picture RemBdev  Â·  4Comments

hecgua picture hecgua  Â·  3Comments

SlvrEagle23 picture SlvrEagle23  Â·  3Comments

verdantsquare picture verdantsquare  Â·  3Comments

susl16c picture susl16c  Â·  3Comments