#!/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)\") mkdir -p /home/build/MSS-ONE/temp/cache/$project-$intnumber/ 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