ignoring framerate in my plugin

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

ignoring framerate in my plugin

Ozhmegov
Hi all,

I play videofile with gstreamer and pipeline has my plugin *laplacian* and
*laplacian* is ignoring framerate and it seems that it has as large fps as
it can.

My pipeline:
gst-launch-1.0 filesrc location=test_p480.mov ! decodebin name=dec !
videorate ! video/x-raw,width=640,heigh=360,framerate=24/1 ! queue !
videoconvert  ! laplacian ! videoconvert ! osxvideosink

It is based on the Boilerplate from here
https://gstreamer.freedesktop.org/documentation/plugin-development/basics/boiler.html.

Laplacian:
gstlaplacian.hxx
<http://gstreamer-devel.966125.n4.nabble.com/file/t377923/gstlaplacian.hxx>  
gstlaplacian.cxx
<http://gstreamer-devel.966125.n4.nabble.com/file/t377923/gstlaplacian.cxx>  

How to make it work with framerate? What's the problem? Did I miss something
on tutorial?

Kind Regards



--
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: ignoring framerate in my plugin

Ozhmegov
The problem was fixed by the line below:
gst_buffer_copy_into ( new_buf, old_buf, (GstBufferCopyFlags)
GST_BUFFER_COPY_TIMESTAMPS, 0 ,0);




--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel