Created
March 20, 2020 13:24
-
-
Save MaZderMind/687f476014fa2b171538d48b3586ae65 to your computer and use it in GitHub Desktop.
hls-transcode.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ffmpeg -v warning -nostats -nostdin -y -analyzeduration 3000000 \ | |
-i http://live.ber.c3voc.de:8000/sloop_native_hd.webm \ | |
\ | |
-c:v libx264 -preset:v veryfast -profile:v main -pix_fmt yuv420p -flags +cgop \ | |
-r:v:0 25 -g:v:0 75 -crf:v:0 21 -maxrate:v:0 4M -bufsize:v:0 18M \ | |
-threads:v 0 -aspect 16:9 \ | |
\ | |
-c:a aac -b:a 192k -ar 48000 -ac 1 \ | |
\ | |
-map 0:v:0 -map 0:a:0 \ | |
\ | |
-hls_time 6 \ | |
-hls_list_size 200 \ | |
-hls_flags +delete_segments+omit_endlist \ | |
"/tmp/stream/index.m3u8" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment