Skip to content

Instantly share code, notes, and snippets.

@AysadKozanoglu
Created March 14, 2019 20:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AysadKozanoglu/a55985330431ff9f49d219082419e6d1 to your computer and use it in GitHub Desktop.
Save AysadKozanoglu/a55985330431ff9f49d219082419e6d1 to your computer and use it in GitHub Desktop.
streamPath="/usr/local/nginx/html/stream"; link=$(wget -qO tv8.html https://canlitv.com/canli-tv8-5 | cat tv8.html | grep file | cut -d \" -f2); rm -rf $streamPath/* && ffmpeg -y -probesize 15000000 -analyzeduration 12000000 -i "$link" -user_agent "firefox browser" -strict -2 -dn -acodec copy -vcodec copy -crf 29 -hls_flags delete_segments -hls_time 10 -hls_list_size 8 -hls_segment_filename "$streamPath/tv8%d.ts" $streamPath/tv8.m3u8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment