Skip to content

Instantly share code, notes, and snippets.

@joe-oli
Created July 6, 2024 03:07
Show Gist options
  • Save joe-oli/8aada3be52cfe94eb76c57e97ad02016 to your computer and use it in GitHub Desktop.
Save joe-oli/8aada3be52cfe94eb76c57e97ad02016 to your computer and use it in GitHub Desktop.
stream with ffmpeg - view with VLC
# Add a packet size on both server (ffmpeg) and client (vlc) sides;
# in ffmpeg:
ffmpeg -re -i "path/to/my/video.mp4" -vcodec libx264 -f mpegts udp://127.0.0.1:1234?pkt_size=1316
# in vlc:
udp://127.0.0.1:1234?pkt_size=1316
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment