Skip to content

Instantly share code, notes, and snippets.

@fiddyschmitt
Created December 2, 2025 02:37
Show Gist options
  • Select an option

  • Save fiddyschmitt/f1e1b67cd83fb5d1f2a564dc79d09319 to your computer and use it in GitHub Desktop.

Select an option

Save fiddyschmitt/f1e1b67cd83fb5d1f2a564dc79d09319 to your computer and use it in GitHub Desktop.
ffmpeg and ffplay
.\ffmpeg.exe -f gdigrab -framerate 30 -video_size 1920x1080 -offset_x 1920 -offset_y 0 -i desktop -vcodec mpeg4 -q 12 -f mpegts udp://127.0.0.1:5000
.\ffmpeg.exe -f gdigrab -framerate 30 -video_size 1920x1080 -offset_x 1920 -offset_y 0 -i desktop -c:v libx264 -preset ultrafast -tune zerolatency -b:v 5000k -maxrate 6000k -bufsize 12000k -g 30 -f mpegts udp://127.0.0.1:5000
.\ffplay.exe -fflags nobuffer -flags low_delay -probesize 20000 -analyzeduration 1 -framedrop -f mpegts udp://127.0.0.1:5000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment