Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
hls-transcode.sh
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