Hello Minex Tuts team, I’ve been trying to find a solution to do a live stream radio 24/7 on my channel for a few days. I’ve already seen two other articles here on how to do this with a single video file and also with a video and audio file separately, however what I really need to do is a stream of several audios with the concat function and an image of static video. I got this code from somewhere on the internet (I don’t remember where) and tried to make an adaptation with the code you already have here, but I was not successful. can you help me?
Here is the code spoken:
#! / bin / bash
VBR = “1500k”
SPF = “25”
QUAL = “ultrafast”
YOUTUBE_URL = “rtmp: //a.rtmp.youtube.com/live2”
YOUTUBE_KEY = “xxxx-xxxx-xxxx-xxxx-xxxx”
VIDEO_SOURCE = “/ home / ubuntu / Video / live1.mp4”
AUDIO_ENCODER = “aac”
-i “$ VIDEO_SOURCE”
-f concat -i audiofiles.txt
-c: v libx264 -preset $ QUAL -r $ FPS -g $ (($ FPS * 2)) -b: v $ VBR -bufsize 3000k -maxrate $ VBR
-c: a $ AUDIO_ENCODER -ar 44100 -b: a 128k -pix_fmt yuv420p
-f flv $ YOUTUBE_URL / $ YOUTUBE_KEY
The question I have is: where should I keep this file “audiofiles.txt”, in the root of the user “ubuntu” or in the folder that contains the songs for example “/home/ubuntu/music/audiofiles.txt”?
If you can help I will be very grateful, you have already achieved much bigger things and are very good at it!
A hug from Brazil!