We’ve made improvements to the script, adding more customizable options and better error handling. Now, the script is more flexible, with clear validation for video quality, FPS, and file paths.
-
Video File: Set the path to your video file (e.g.,
.mp4
). -
Audio File: Set the path to your audio file (e.g.,
.mp3
). -
Audio Bitrate: Choose the audio bitrate (e.g.,
64k
,128k
,320k
). -
FPS: Set the desired FPS (e.g.,
30
,60
). -
Video Quality: Select video quality options (e.g.,
2160p
,1440p
,1080p
,720p
,480p
,360p
,144p
). -
Resolution: Automatically set based on the selected video quality (e.g.,
3840x2160
for2160p
). -
Bitrate: Video bitrate automatically adjusts based on video quality selection.
-
Error Handling: The script checks for missing files and invalid input (FPS and video quality).
-
FFmpeg Command: Automatically starts streaming to the specified RTMP URL.
How to Apply Changes:
Edit the live.sh
file and adjust the parameters to your preferences.