hi all
my pipeline has video encoder followed by queue as below encode ---> queue --> rtph264pay --> udpsink due to some technical issues, my encoder give frames sometimes late dut to this, the decoder is going for toss. now, to avoid this i wanted to maintain some buffer in queue and dispatch the buffers at regular intervals is it possible with queue ? to make it simple, can i push buffer to next element to regular intervals ? regards Nagendra -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Hi,
You can try setting the "min-threshold-buffers" property on the queue: https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer-plugins/html/gstreamer-plugins-queue.html#GstQueue--min-threshold-buffers But I am pretty sure that would still cause the same issue. You can also try reducing the min-threshold-buffers property after the running signal has been emited. Another option would be to replace the queue with queue2 and set "use-buffering" to true, then it would wait for the queue2 to fill up, but I haven't used queue2 for this so your mileage may vary. https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer-plugins/html/gstreamer-plugins-queue2.html Either way, the encoder falling behind isn't good. Try lower settings or if you are using x264, try enabling zero-latency. Because even if you enable buffering, it will just take longer for the problem to surface, because the encoder might not "catch-up" to current time. Cheers, Michael. On 11/15/2017 3:04 AM, nagendra sarma wrote: > hi all > > my pipeline has video encoder followed by queue as below > > encode ---> queue --> rtph264pay --> udpsink > > due to some technical issues, my encoder give frames sometimes late > dut to this, the decoder is going for toss. > > now, to avoid this i wanted to maintain some buffer in queue and dispatch > the buffers at regular intervals > is it possible with queue ? > > to make it simple, can i push buffer to next element to regular intervals ? > > regards > Nagendra > > > > -- > Sent from: http://gstreamer-devel.966125.n4.nabble.com/ > _______________________________________________ > gstreamer-devel mailing list > [hidden email] > https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel > > _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
In reply to this post by nagendra sarma
Le 15 nov. 2017 6:15 AM, "nagendra sarma" <[hidden email]> a écrit : hi all Do you have a live source ?
_______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
This post was updated on .
yes , it is live source
yes, tried with min_threshold_buffers=5 and the problem still present but minimum improvement my play was, i would like to maintain some buffers like 5 to 10 in queue and push them at regular intervals ? is that possible ? or sounds crazy ? i dont know -- 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 |
Le jeudi 16 novembre 2017 à 00:06 -0700, nagendra sarma a écrit :
> yes , it is live source > Ok, then the queueing is special, to make your queue to fill, you need to increase the latency. You can tweak that using the "latency" propert y on the GstPipeline object. regards, Nicolas _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel signature.asc (201 bytes) Download Attachment |
Free forum by Nabble | Edit this page |