Skip to content

Instantly share code, notes, and snippets.

@amfern
Created June 7, 2021 12:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amfern/a12ac7a1d9d1f1ddf7245eb655372cf7 to your computer and use it in GitHub Desktop.
Save amfern/a12ac7a1d9d1f1ddf7245eb655372cf7 to your computer and use it in GitHub Desktop.
source from host:
docker run --rm -it -e RTSP_PROTOCOLS=tcp -p 8554:8554 -p 1935:1935 aler9/rtsp-simple-server
ffmpeg -re -stream_loop -1 -i Downloads/jellyfish-110-mbps-hd-h264.mkv -c copy -f rtsp rtsp://localhost:8554/mystream
receive from rpi4
gst-launch-1.0 rtspsrc location=rtsp://192.168.18.87:8554/mystream ! rtph264depay ! h264parse ! v4l2h264dec capture-io-mode=4 ! kmssink sync=false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment