Lag when streaming from iPhone to Pi
sexyzc
ngzhongcai at digitively.com
Thu Feb 21 04:05:17 UTC 2019
Hi there,
I am able to stream live feed from Pi to iPhone without much latency.
Quality is very good.
Pipelines are as follows:
Pi:
raspivid -n -vf -t 900000 -h 720 -w 1080 -fps 25 -hf -b 2000000 -o - |
gst-launch-1.0 -v fdsrc ! h264parse ! rtph264pay config-interval=1 pt=96 !
gdppay ! tcpserversink host=192.168.1.7 port=5002
iPhone:
tcpclientsrc host=192.168.1.7 port=5002 ! gdpdepay ! rtph264depay !
avdec_h264 ! videoconvert ! autovideosink sync=false
There is however a 5-15seconds lag in the reverse direction, from iPhone to
Pi.
iPhone:
avfvideosrc device-index=1 ! vtenc_h264 allow-frame-reordering=false
realtime=true ! rtph264pay config-interval=1 pt=96 ! gdppay ! tcpserversink
host=192.168.1.211 port=5000
Pi:
gst-launch-1.0 -v tcpclientsrc host=192.168.1.211 port=5000 ! gdpdepay !
rtph264depay ! avdec_h264 ! videoconvert ! videoscale !
video/x-raw,width=1366,height=768 ! fbdevsink sync=false
Am hoping someone can help vet through my pipelines.
--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
More information about the gstreamer-devel
mailing list