Skip to content

Instantly share code, notes, and snippets.

@tyohan
Created September 29, 2021 02:36
Show Gist options
  • Save tyohan/e6996a8f0bf9bc6a5868af7ab10a0343 to your computer and use it in GitHub Desktop.
Save tyohan/e6996a8f0bf9bc6a5868af7ab10a0343 to your computer and use it in GitHub Desktop.
ffmpeg dash low latency experiment
ffmpeg -f flv -listen 1 -i rtmp://127.0.0.1:19350/live/app \
-c:v libx264 -b:v:0 5000k -b:v:1 2000k -crf 23 -g 120 -format_options "movflags=cmaf" -adaptation_sets "id=0,streams=v id=1,streams=a" \
-frag_type duration -keyint_min 120 -maxrate 1M -bufsize 2M -force_key_frames "expr:gte(t,n_forced*4)" \
-pix_fmt yuv420p -profile:v baseline -an -s 1280x720 \
-ldash 1 -streaming 1 -use_template 1 -use_timeline 0 -seg_duration 4 -frag_duration 1 -frag_type duration \
-utc_timing_url "http://time.akamai.com/?iso%26ms" -window_size 15 -extra_window_size 15 -remove_at_exit 1 -f dash ./ldash/1.mpd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment