Frame seq numbers and timestamps.

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

Frame seq numbers and timestamps.

Tonu Jaansoo
Hi!

Please let me get this straight - in gstreamer there is no concept of frame sequence numbers, only timestamps in guint64 ? I dont know much about different video container internals, but does any container keep frame seq index or is it just timestamps in stream? I got by this issue by constructing another pipeline to run through the container fast, collect all timestamps of all the frames, sort these timestamps, and then create hash table for timestamp->index conversion and a table to do index->timestamp.
The question is that is that what i have to do, or is there some other way which i am not aware of? Similar topic has been discussed, but that did not make it clear for me at least.

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

Re: Frame seq numbers and timestamps.

Josh Doe
On Tue, Dec 6, 2011 at 8:21 AM, Tõnu Jaansoo <[hidden email]> wrote:
> Hi!
>
> Please let me get this straight - in gstreamer there is no concept of frame sequence numbers, only timestamps in guint64 ? I dont know much about different video container internals, but does any container keep frame seq index or is it just timestamps in stream? I got by this issue by constructing another pipeline to run through the container fast, collect all timestamps of all the frames, sort these timestamps, and then create hash table for timestamp->index conversion and a table to do index->timestamp.
> The question is that is that what i have to do, or is there some other way which i am not aware of? Similar topic has been discussed, but that did not make it clear for me at least.

I don't think I fully understand what you're trying to do. GstBuffer
has an offset field which is used to indicate the frame number. What
are you doing with your hash table?
-Josh
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Frame seq numbers and timestamps.

Tonu Jaansoo
Hello!

I think I was not so clear. First of all, i need to know the current buffer's frame sequence number. Second, i want to seek to a frame using frame sequence number. And it needs to be frame accurate.
As for GstBuffer offset field - i really aint sure it works. Or should i say i am not sure it works with the video files i have tested with. I tested right now with mkv file to be sure and i got number 18446744073709551615 for each sequential frame starting from frame zero.
I have also tried to gst_element_query_position with different formats and i don't get frame sequence numbers.
As i said i already have a working solution and i ask it because maybe there is something i dont understand. And if so, maybe i could drop the indexing process.

Tonu

On Dec 6, 2011, at 4:42 PM, Josh Doe wrote:

On Tue, Dec 6, 2011 at 8:21 AM, Tõnu Jaansoo <[hidden email]> wrote:
Hi!

Please let me get this straight - in gstreamer there is no concept of frame sequence numbers, only timestamps in guint64 ? I dont know much about different video container internals, but does any container keep frame seq index or is it just timestamps in stream? I got by this issue by constructing another pipeline to run through the container fast, collect all timestamps of all the frames, sort these timestamps, and then create hash table for timestamp->index conversion and a table to do index->timestamp.
The question is that is that what i have to do, or is there some other way which i am not aware of? Similar topic has been discussed, but that did not make it clear for me at least.

I don't think I fully understand what you're trying to do. GstBuffer
has an offset field which is used to indicate the frame number. What
are you doing with your hash table?
-Josh
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


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