Skip to content

Instantly share code, notes, and snippets.

@luanlmd
Created August 11, 2022 14:48
Show Gist options
  • Save luanlmd/e1346ae3dd372a174b1c433f155b7aeb to your computer and use it in GitHub Desktop.
Save luanlmd/e1346ae3dd372a174b1c433f155b7aeb to your computer and use it in GitHub Desktop.
ffmpeg -listen 1 -timeout 10000 -i rtmp://127.0.0.1:5000 \
-preset slower \
-c:a aac \
-c:v h264 \
-maxrate 3500k \
-bufsize 350k \
-force_key_frames "expr:gte(t,n_forced*3)" \
-hls_time 3 \
-hls_segment_filename "/tmp/720p_%03d.ts" /tmp/720p_playlist.m3u8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment