How to transcode and play uploaded VoD files as HLS in Ant Media Server without broadcasting them. #4888
-
I'm uploading a VoD file to Ant Media Server, but how do I convert it to a multi-bitrate HLS stream without broadcasting because streaming with multiple ABRs uses more CPU on the server? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
To convert uploaded VOD to HLS with different bit rates, please follow the below steps:
By default, the script transcodes to 240p, 480p, and 720p, and the default target directory is
To learn more about the user-defined scripts for MP4 mixing and VoD upload, and detailed information please visit https://antmedia.io/docs/guides/recording-live-streams/user-defined-scripts/#vod-upload-finish-process |
Beta Was this translation helpful? Give feedback.
To convert uploaded VOD to HLS with different bit rates, please follow the below steps:
First, you need to download the VOD to HLS transcode script on your server with the below command
wget https://raw.githubusercontent.com/ant-media/Scripts/master/vod_transcode.sh
After downloading, run the command
chmod +x vod_transcode.sh
to give this script execute access.By default, the script transcodes to 240p, 480p, and 720p, and the default target directory is
/usr/local/antmedia/webapps/WebRTCAppEE/streams/
but you can alter these as needed.Make the following changes to the advanced setting of your application :
"vodUploadFinishScript"="/script-directory-path/vod_transcode.sh"
Now,…