Skip to content

Instantly share code, notes, and snippets.

@rodhfr
Last active March 19, 2025 13:47
Show Gist options
  • Save rodhfr/cc00c5206e77f9009260c5526f1494e4 to your computer and use it in GitHub Desktop.
Save rodhfr/cc00c5206e77f9009260c5526f1494e4 to your computer and use it in GitHub Desktop.
udp stream
ffmpeg -stream_loop -i "$input" -vf "subtitles=${input@Q}" -c:v libx264 -crf 18 -f mpegts udp://192.168.0.51:8581
# intel hevc_qsv # alternatively: h264_qsv
ffmpeg -stream_loop -1 -i "$input" -vf "subtitles=${input@Q}" -c:v hevc_qsv -global_quality 20 -look_ahead 1 -f mpegts udp://192.168.0.51:8581
# udp address is the client that the video is fowarded to
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment