How to add an mp3 (live) ?
Adding an mp3 (live) allows you to play background music during your live events.
You need to add a pull live source and put the correct command.
-
In the Production section (A).
-
Add a new input (B).
-
In the Live source section (C).
- Add a “Pull live source” input (D).
- Paste in the URL field (E) the command line bellow including your MP3 live URL.
The generic command is the following:
ffmpeg -re -loop 1 -i https://static-eu-irl.easylive.io/front/img/poster/audio-only.png -itsoffset $caching -i "http://XXXXXX.mp3" -map 0:v:0 -map 1:a:0 -pix_fmt yuv420p -r 10
You simply need to replace http://XXXXXX.mp3 by the actual MP3 live source URL.
Example:
ffmpeg -re -loop 1 -i https://static-eu-irl.easylive.io/front/img/poster/audio-only.png -itsoffset $caching -i "http://demo.stream1.com/live.mp3" -map 0:v:0 -map 1:a:0 -pix_fmt yuv420p -r 10
Don’t forget to save the live source. Your live source should be available in the Production section.
Note: You can control the delay like any other live source in case you would like to synchronize video and audio sources.