Skip to content

Instantly share code, notes, and snippets.

@gregjhogan
Created June 30, 2021 18:44
Show Gist options
  • Save gregjhogan/9758760114a31f7215c13b97d38ab9f1 to your computer and use it in GitHub Desktop.
Save gregjhogan/9758760114a31f7215c13b97d38ab9f1 to your computer and use it in GitHub Desktop.
ffmpeg to ffplay stream raw video
# on server (waits for connection)
ffmpeg -framerate 20 -i /path/to/video.hevc -an -c:v copy -f hevc tcp://<server-ip>:8888?listen
# on client (format -f can often be auto-detected)
ffplay -f hevc -i tcp://<server-ip>:8888 -framerate 20
# note that -framerate xx is needed because you can't know the frame rate of a raw hevc file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment