[gst-devel] Where'd the timestamps go?
Stefan Kost
ensonic at hora-obscura.de
Wed Apr 14 10:31:29 CEST 2010
hi,
Wes Miller wrote:
> I found the answer! Wish I could say the search was painless.
>
> I saved an MJPEG stream file using gst-launch souphttpsrc ! multipartdemux
> ! matroskamux ! filesink
>
> I then parsed the file using a Rexx program breaking out JPEGs by locating
> the 0xFFD8 delimiters, then parsed each JPEG looking for FFFE comment
> delimiters. The second comment at offset 21 contains the date. The date is
> at offset 27 and is coded in hex as Unix Time, seconds since
> 1970:01:01:00:00:00.
>
> Wes
>
what you are talking about are not timestamps as in buffer-timestamps.
You are talking about stream metadata which gstreamer emits as
tag-messages and distributes in the pipline as tag-events. You can use
gst-launch -t ... to see the tags printed (as the application would see
them). The metadata that you look into seem to be ordinary jpeg
comments. If you have recent enough gst-plugin-bad jpegparse should
handle them:
gst-launch -t souphttpsrc ! multipartdemux ! jpegparse ! fakesink
Does it work? No its unlikely that all of them would be mapped to a
matroska. I guess only the first or last comment will end up there.
That leaves the big question, what is it that you actually would like to
do :) ?
Stefan
More information about the gstreamer-devel
mailing list