How to Step Backward?

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

How to Step Backward?

Thomas Bond
Hello,


     I'm using this method to step forward.

gst_event_new_step (GST_FORMAT_BUFFERS,framesToSkip, 1, TRUE, FALSE)


     What do I need to do in order to change direction to step backward?


     In my scenario I need to go back a frame and the go forward a frame
so I end on the same frame I started from.

I need to do this to update post processing I'm doing when the video
stream is stopped.


     Thanks in advance.


     Tom

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: How to Step Backward?

Thibault Saunier-4
Hello,

The stepping event steps in the current "direction" of the pipeline, meaning that to step 1 frame back, you need to flush seek to the current pipeline position with a negative rate then the step event will step backward.

Regards,

- Thibault

On Wed, Jan 15, 2020 at 10:11 AM Thomas Bond <[hidden email]> wrote:
Hello,


     I'm using this method to step forward.

gst_event_new_step (GST_FORMAT_BUFFERS,framesToSkip, 1, TRUE, FALSE)


     What do I need to do in order to change direction to step backward?


     In my scenario I need to go back a frame and the go forward a frame
so I end on the same frame I started from.

I need to do this to update post processing I'm doing when the video
stream is stopped.


     Thanks in advance.


     Tom

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

Re: How to Step Backward?

Nicolas Dufresne-5
In reply to this post by Thomas Bond


Le mer. 15 janv. 2020 09 h 15, Thomas Bond <[hidden email]> a écrit :
Hello,


     I'm using this method to step forward.

gst_event_new_step (GST_FORMAT_BUFFERS,framesToSkip, 1, TRUE, FALSE)


     What do I need to do in order to change direction to step backward?

You need to change the direction by first seeking with a negative rate. This is the only way decoders can be refilled with the entire GOP. You can do a flushing seek at the current position.

     In my scenario I need to go back a frame and the go forward a frame
so I end on the same frame I started from.

I need to do this to update post processing I'm doing when the video
stream is stopped.


     Thanks in advance.


     Tom

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

Re: How to Step Backward?

Thomas Bond
In reply to this post by Thomas Bond

Hello,


    When the player is paused and I step a single frame one or more times and then resume playback the audio is fine but the video

doesn't start or doesn't ever get back into sync with the audio until the next video clips is started.  What can I do once I'm done stepping to ensure

the video plays correctly.  Thanks.


    Tom

On 1/15/20 8:06 AM, Thomas Bond wrote:
Hello,


    I'm using this method to step forward.

gst_event_new_step (GST_FORMAT_BUFFERS,framesToSkip, 1, TRUE, FALSE)


    What do I need to do in order to change direction to step backward?


    In my scenario I need to go back a frame and the go forward a frame so I end on the same frame I started from.

I need to do this to update post processing I'm doing when the video stream is stopped.


    Thanks in advance.


    Tom

-- 
TOM BOND
Vice President, Technology
14 Old French Road
Honeoye Falls, NY 14472
Phone: 585-869-9243
Mobile: 585-662-8956
Email: [hidden email]

Corporate Headquarters
Entertainment Experience LLC
9475 Double R Blvd. Suite 9
Reno, Nevada 89521
Websites: www.eecolor.com

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Video Not Syncing After performing single steps

Thomas Bond
In reply to this post by Thomas Bond

Hello,


    When the player is paused and I step a single frame one or more times and then resume playback the audio is fine but the video

doesn't start or doesn't ever get back into sync with the audio until the next video clips is started.  What can I do once I'm done stepping to ensure

the video plays correctly.  Thanks.


    Tom



_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel