This post was updated on .
Hello all.
I am using the OpenFrameworks (which is a cpp wrapper) ofxGStreamer addon <https://github.com/arturoc/ofxGStreamer> to receive and display an rtsp h264 IP security camera stream. I am trying to get it to be as close to realtime as possible. The IP camera is wired to a router which is wired into my laptop, at a very short distance, so I can't blame the connection or distance. I can use some software on my windows machine called iSpy which has a latency/delay of a matter of a few hundred milliseconds, while my OF app has a delay of 1 second. The pipeline is: rtspsrc location=rtsp://admin:@192.168.8.192:554/live;stream=0;drop-on-latency=true; latency=0 ! queue2 max-size-buffers=2 ! decodebin ! videoconvert ! videoscale ! appsink name=ofappsink enable-last-sample=0 caps="video/x-raw, format=GRAY8, width=341, height=251" Please let me know if there is something obvious I should try, this is my first time using Gstreamer, I am happy I was able to get it down from 3 second latency to 1 second but I've been stuck here for a while now. I don't care about quality or artifacts, just that it is close to realtime as possible. I believe that because it is RTSP I as the client make requests to how it is being streamed so I can't blame how the camera is sending the stream. Thanks for reading, and comments or suggestions are greatly appreciated. -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list gstreamer-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Hello again,
The strange thing is that reducing the bitrate or resolution doesnt have an effect on the latency at all. I tried using gst-launch-1.0 and gst-inspect-1.0 to get a better insight on how to speed up this pipeline but to no avail, I just need to work with the actual pipeline in my app because those can't really simulate it accurately. I am completely new at this, and have been working at it for weeks (I can go on with what I tried but I don't want this post to be too long), I can't seem to get a lower latency/processing speed. this is my pipeline at the moment rtspsrc location=rtsp://admin:@192.168.8.192:554/live0.264;stream=0;user=system;pass=system; width=192, height=108,framerate=15/1 gop-size=1 bitrate=20 drop-on-latency=true latency=0 ! queue2 max-size-buffers=0 ! decodebin ! videoscale ! videoconvert ! appsink name=ofappsink enable-last-sample=0 caps="video/x-raw, format=RGB, width=192, height=108" How can I make it so that reducing resolution will speed up processing? It's the same if its 1920x1080 or 192x108. Thank you for reading, any insights are appreciated! -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
In reply to this post by chars
I have found that the camera is streaming multiple streams, one for fast
connection, one for recording and one for phones. I was using the one for recording, I can change streams by changing the end of the url to live1.264 instead of live0.264. But this doesnt have effect on the latency! Is it because I am on OSX? rtspsrc location=rtsp://admin:admin@192.168.8.102:554/live2.264; drop-on-latency=true latency=0 ! decodebin ! videoconvert ! videoscale ! appsink name=ofappsink enable-last-sample=0 caps="video/x-raw, format=GRAY8, width=256, height=256" -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |