Gstreamer 1.0 network mp4 streaming - Raspberry Pi Forums


i'm trying stream hd mp4 files on ethernet between multiple raspberry pi 2's.
video files preconverted ffmpeg. don't think want encoding.
raspberry server starts streaming file, , multiple clients play file synchronously.

semi-working pipelines:

code: select all

// server gst-launch-1.0 -v filesrc location=video.mp4 ! qtdemux ! video/x-h264 ! rtph264pay ! udpsink host=192.168.0.255 port=5000 -or gst-launch-1.0 -v filesrc location=video.mp4 ! qtdemux ! queue ! rtph264pay ! udpsink host=192.168.0.255 port=5000  // client gst-launch-1.0 -v udpsrc port=5000 caps = 'application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)h264, sprop-parameter-sets=(string)"z2qah6zzqfafuhaaaamaeaaaawpa8ymzya\=\=\,aovssiw\=", payload=(int)96, ssrc=(uint)36838312, timestamp-offset=(uint)1359991347, seqnum-offset=(uint)58019' ! rtpjitterbuffer latency=1000 ! rtph264depay ! decodebin ! videoconvert ! eglglessink -or gst-launch-1.0 -v udpsrc port=5000 caps="application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)h264" ! rtph264depay ! h264parse ! omxh264dec ! videoconvert ! eglglessink sync=false 
wrong these pipelines?
client connect instantly rtp stream great. (compared vlc, 5-10sec)
video stutters , glitches occasionally. need queue's?
i'm not sure problem, server or client.
also, image flipped due opengl coordinate system, adding '..,format=(string)i420,.." doesn't help. can live now.

can point me in direction? proper documentation seems hard find..
i'm on wheezy.

what resolution stream?
rendering >720p egl pushing gpu performance, although you've got cpu based videoconvert in there expensive in cpu time instead of gpu. sounds don't need egl, should able render direct screen - videosink work better?
i'd suggest checking can read , decode stream locally first, add in rtp layers.


raspberrypi



Comments

Popular posts from this blog

invalid use of void expresion in FlexiTimer2 library

error: a function-definition is not allowed here before '{' token

LED Strip Code