GNOME Bugzilla – Bug 709756
h264parse: Add a method to blindly timestamp based on framerate
Last modified: 2018-11-03 13:18:01 UTC
Sometimes one may encounter a raw h.264 file that doesn't have any timestamp information. It may be useful, at least for testing purposes, to be able to apply timestamps to the frames using h264parse. The idea is that if the sink pad caps state the stream-format=byte-stream and contain a framerate, this is can be used to override the buffer timestamps by starting from zero and adding the frame duration for each frame.
This fairly generic in that the same could be said/requested for mpegvideoparse, or mpeg4videoparse, etc. Rather than duplicate and overload these, there are some generic elements in gst-entrans that could help here, notably some combination of stamp and/or tsdup. See http://gentrans.sourceforge.net/docs/head/gst-entrans-plugins/html/gst-entrans-plugins-stamp.html and http://gentrans.sourceforge.net/docs/head/gst-entrans-plugins/html/gst-entrans-plugins-tsdup.html
*** Bug 725867 has been marked as a duplicate of this bug. ***
I've removed the "upstream" part of the description, as the framerate could also be taken from SPS/VUI.
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/issues/111.