Setting timestamps on filesrc pipeline

Nicolas Dufresne nicolas at ndufresne.ca
Fri Jun 16 15:58:21 UTC 2017


Le vendredi 16 juin 2017 à 03:39 -0700, bomba a écrit :
> Arjen Veenhuizen wrote
> > set do-timestamp=true on both v4l2src and filesrc.
> 
> Putting timestamps on v4l2src makes perfect sense, it is a LIVE device, so
> timestamps would be correctly applied by the source element.
> 
> Putting do-timpestamps on filesrc instead doesn't make sense, because that
> source file is already 1.5 seconds late, I would mark as "now" something
> that happened "1.5 seconds ago".
> 
> Of course queues on sinks would help reproducing smoothly, but won't fix the
> issue.
> 

Just to clarify, there is no valid use case for setting do-timestamp
either on v4l2src or filesrc. On v4l2src, setting do-timestamp will
make the timestamp worst then the one produced by the element (derived
from HW timestamp). On filesrc, as the stream segment is of type BYTES,
the timestamp would normally be ignored anyway since timestamp are
always in time. You'll find valid use case of do-timestamp when using
udpsrc.

regards,
Nicolas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20170616/4ae3c989/attachment-0001.sig>


More information about the gstreamer-devel mailing list