Raspberry - gst-rtsp-server

horai ivo.hora at seznam.cz
Sat Dec 9 20:41:10 UTC 2017


Just to note:

Actually, what I am trying to do is to implement this pattern of a 
server/client pipelines into gst-rtsp-server. Both pipelines are running on
the same Raspberry Pi Zero just for testing purposes. The server is done
very simply since I am using the enclosed examples written by the gods of
gstreamer. Maybe the problem is that I am not following the right way of
implementing the pipelines but on Ubuntu 14.04 and different hardware it
works properly! BUT if I change omx encoding codec omxh264enc to x264enc,
the entire server and client start to cooperate and I see window with video
opened! I really really really don't understand what is going on here, why
changing encoding codec at that point helps. it's just a different (this
case not hardware encoding way) way of encoding, right?
If anyone could help me, I would be very grateful since I cannot use
x264enc, it's just way too much slow, i really need omxh264enc and I am
going slighly mad


Server:
gst-launch-1.0 v4l2src device=/dev/video0 !
video/x-raw,width=1280,height=720,framerate=30/1 ! videoconvert ! 
omxh264enc ! h264parse ! rtph264pay ! udpsink host=127.0.0.1 port=8554


Gst-rtsp-server side:
./test-launch  "( v4l2src device=/dev/video0 !
video/x-raw,width=1280,height=720,framerate=30/1 ! videoconvert ! x264enc !
h264parse ! rtph264pay name=pay0 pt=96 )"

Client:
gst-launch-1.0 -v udpsrc port=8554 caps="application/x-rtp,
media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264" !
rtph264depay ! h264parse ! oxmh264dec ! videoconvert ! autovideosink

Gst-rts-client side:
gst-launch-1.0 rtspsrc location="rtsp://localhost:8554/test" latency=0 !
rtph264depay ! h264parse ! omxh264dec ! videoconvert ! autovideosink




--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/


More information about the gstreamer-devel mailing list