Getting frames in PAUSED mode and stepping
Henning Riis
henning.riis at craftwork.dk
Tue Jul 5 08:17:50 UTC 2016
I decided I didn't understand what stepping is about, and I found the preroll-handoff signal on the fake-sink, which pretty much does what I need.
Using this I will usually get decoded frame data on my sink after I either initially preroll or after the prerolls when I do a seek.
However, I have an mp4 file on my SSD disk that whenever I do my initial preroll (I set the uri and put the pipeline in PAUSED mode) I will not get the preroll signal.
Is there any reasonable explanation to why I sometimes don't get the preroll signal? Is this to be expected on some streams for some reason?
Best Regards,
Henning
From: gstreamer-devel [mailto:gstreamer-devel-bounces at lists.freedesktop.org] On Behalf Of Henning Riis
Sent: Monday, July 04, 2016 3:06 PM
To: gstreamer-devel at lists.freedesktop.org
Subject: Getting frames in PAUSED mode and stepping
Hi,
I have a playbin based player, and I'm trying to implement starting it in PAUSED mode and getting frames. I obtain the frames using a fakesink and the handoff signal.
When loading a resource, I set the URI and then I set the pipeline in PAUSED mode. Once the pipeline goes to PAUSED I send a step event for stepping 10 seconds into the stream. I expect my handoff signal handler to get called so that I may present the frame.
It's pretty much based on the code found in tests/examples/stepping/framestep1.c.
Does this sound valid?
The problem I face, is that it seems that when my URI is pointing to a file I have on disk I never get my handoff signal, however for a http URI it seems to work.
Are there any known problem around this? Should it work?
Also, can I use the same technique for "seeking" when paused and still getting the frame data? I'm not sure I understand the difference between seeking and stepping. Any hints?
Best Regards,
Henning
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160705/4ad95513/attachment.html>
More information about the gstreamer-devel
mailing list