Lag when streaming from iPhone to Pi

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Lag when streaming from iPhone to Pi

sexyzc
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/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Lag when streaming from iPhone to Pi

sexyzc
Edit...
I changed the framerate from 2/1. Latency is now dropped to 4seconds. Are
there any other ways I can drop the latency?


From iPhone to Pi

iPhone:
avfvideosrc device-index=1 ! *video/x-raw,framerate=2/1* ! vtenc_h264
allow-frame-reordering=false realtime=true ! rtph264pay ! 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



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel