Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- read -p "Project Name: " project
- read -p "Enter Youtube Link Name: " ylink
- intnumber=$(cat /dev/urandom | tr -cd 'a-f0-9' | head -c 8)
- hlslink=$(echo \"$(youtube-dl -f 95 -g $ylink)\")
- ffmpeg -hide_banner -hwaccel cuvid -c:v h264_cuvid -f hls -i $hlslink -c:v h264_nvenc -r 50 -c:a pcm_s16le -ac 2 -ar 48000 -f hls -hls_list_size 0 /home/build/MSS-ONE/temp/cache/$project-$intnumber/$project.m3u8
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement