Skip to content

Instantly share code, notes, and snippets.

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 monir-zaman/807610c5ccfd76b33d56c442e1cc904e to your computer and use it in GitHub Desktop.
Save monir-zaman/807610c5ccfd76b33d56c442e1cc904e to your computer and use it in GitHub Desktop.
ffmpeg -y -i input.mp4 -preset slow -g 48 -sc_threshold 0 -map 0:0 -map 0:1 -map 0:0 -map 0:1 -s:v:0 1280*720 -b:v:0 850k -s:v:1 630*360 -b:v:1 550k -c:a aac -var_stream_map "v:0,a:0,name:720p v:1,a:1,name:360p" -master_pl_name master.m3u8 -f hls -hls_time 10 -hls_playlist_type vod -hls_list_size 0 -hls_segment_filename "%v/segmentNo%d.ts" %v/index.m3u8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment