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 |
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 |
Hello! 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:
_______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |