How can alternate buffers be dropped efficiently?

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

How can alternate buffers be dropped efficiently?

jeyp4
How can alternate buffers be dropped in efficient manner.
I have read and tried  'videorate'.

I feel it induces a latency of ~20ms, while reducing fps from 60fps to
30fps. I guess it is because it depends on time-stamp of buffer.

Is there any element which can just dump alternate buffers.

I have tried 'identity drop-probability=0.5', I found dumping is not
consistent for alternate buffers.

Please correct me, if I am wrong somewhere.

-Jai



--
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: How can alternate buffers be dropped efficiently?

Nicolas Dufresne-5


Le mer. 9 oct. 2019 17 h 40, jeyp4 <[hidden email]> a écrit :
How can alternate buffers be dropped in efficient manner.
I have read and tried  'videorate'.

I feel it induces a latency of ~20ms, while reducing fps from 60fps to
30fps. I guess it is because it depends on time-stamp of buffer.

Would need to be investigated, I wonder why it would do that. Do you use drop-only property?


Is there any element which can just dump alternate buffers.

I have tried 'identity drop-probability=0.5', I found dumping is not
consistent for alternate buffers.

Please correct me, if I am wrong somewhere.

-Jai



--
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
Reply | Threaded
Open this post in threaded view
|

AW: How can alternate buffers be dropped efficiently?

Thornton, Keith
In reply to this post by jeyp4
Hi,
you could add a pad-probe to one of your pads and drop every second buffer.
Gruesse

-----Ursprüngliche Nachricht-----
Von: gstreamer-devel <[hidden email]> Im Auftrag von jeyp4
Gesendet: Mittwoch, 9. Oktober 2019 23:01
An: [hidden email]
Betreff: How can alternate buffers be dropped efficiently?

How can alternate buffers be dropped in efficient manner.
I have read and tried  'videorate'.

I feel it induces a latency of ~20ms, while reducing fps from 60fps to 30fps. I guess it is because it depends on time-stamp of buffer.

Is there any element which can just dump alternate buffers.

I have tried 'identity drop-probability=0.5', I found dumping is not consistent for alternate buffers.

Please correct me, if I am wrong somewhere.

-Jai



--
Sent from: https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgstreamer-devel.966125.n4.nabble.com%2F&amp;data=02%7C01%7C%7C4640482a955e4cf32e3008d74d015ce0%7C28042244bb514cd680347776fa3703e8%7C1%7C0%7C637062540551254431&amp;sdata=1re8W2HT7Mb%2F4ZjC2pL1VILJvNzReav0a%2BWbcq1yL8A%3D&amp;reserved=0
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Fgstreamer-devel&amp;data=02%7C01%7C%7C4640482a955e4cf32e3008d74d015ce0%7C28042244bb514cd680347776fa3703e8%7C1%7C0%7C637062540551254431&amp;sdata=F3EEnhqkaOaMBcJtdkq9w%2Fs%2B4Rsh%2BigM7xZ5c4DeMnA%3D&amp;reserved=0
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: How can alternate buffers be dropped efficiently?

jeyp4
In reply to this post by Nicolas Dufresne-5
Yes I think using "drop-only = true" is efficient. I tried it and felt
satisfied. Thank you

gst-launch-1.0 -v v4l2src device=/dev/video1 ! 'video/x-raw,
width=1280,height=720' ! videorate drop-only = true !
video/x-raw,framerate=25/1 ! xvimagesink




--
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: How can alternate buffers be dropped efficiently?

Nicolas Dufresne-5


Le jeu. 10 oct. 2019 05 h 41, jeyp4 <[hidden email]> a écrit :
Yes I think using "drop-only = true" is efficient. I tried it and felt
satisfied. Thank you

gst-launch-1.0 -v v4l2src device=/dev/video1 ! 'video/x-raw,
width=1280,height=720' ! videorate drop-only = true !
video/x-raw,framerate=25/1 ! xvimagesink

That being said, it leaves me the impression there is a bug in the timestamp recalculation when drop only isn't set.





--
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