Skip to content

Instantly share code, notes, and snippets.

@MaZderMind
Created March 20, 2020 13:24
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 MaZderMind/687f476014fa2b171538d48b3586ae65 to your computer and use it in GitHub Desktop.
Save MaZderMind/687f476014fa2b171538d48b3586ae65 to your computer and use it in GitHub Desktop.
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