Streaming video from Raspberry PI

 

Just a note to future self on how to stream video from Raspi running Debian GNU/Linux 13

stdbuf -o0 rpicam-vid -t 0   --inline   --width 1296 --height 972   --framerate 3   --codec h264 --bitrate 500000 --profile main   --nopreview -g 3   -o - | gst-launch-1.0 -v   fdsrc do-timestamp=true blocksize=$(( 1024 * 256 )) ! video/x-h264,stream-format=byte-stream,alignment=au !   h264parse config-interval=-1 ! rtph264pay pt=96 ! udpsink host=192.168.1.1 port=5000 sync=false

And receive it on a Mac

% cat rtp.sdp

c=IN IP4 192.168.1.1

m=video 5000 RTP/AVP 96

a=rtpmap:96 H264/90000


ffplay -protocol_whitelist file,udp,rtp -i rtp.sdp


Comments

Popular posts from this blog

iMovie event library on a network drive, NAS

Proxmox PCIe passthrough on HP gen8 - failed to set iommu for container

Easy-rsa fails with "Missing or invalid OpenSSL"