diff options
author | Diederick Niehorster <dcnieho@gmail.com> | 2021-12-21 14:53:27 +0100 |
---|---|---|
committer | Gyan Doshi <ffmpeg@gyani.pro> | 2021-12-24 14:06:06 +0530 |
commit | 7dc33aad45772ca3c0a3092833cf8447d1607663 (patch) | |
tree | 2d90d4a5c0fe2c6a284dd57f9bc1fcd4d4714ae0 /doc | |
parent | 7b21841ce45ef4ab486c3c94a714345b878a70fd (diff) | |
download | ffmpeg-7dc33aad45772ca3c0a3092833cf8447d1607663.tar.gz |
avdevice/dshow: implement option to use device video timestamps
The dshow avdevice ignores timestamps for video frames provided by the
DirectShow device, instead using wallclock time, apparently because the
implementer of this code had a device that provided unreliable
timestamps. Me (and others) would like to use the device's timestamps.
The new use_video_device_timestamps option for dshow device enables them
to do so. Since the majority of video devices out there probably provide
fine timestamps, this patch sets the default to using the device
timestamps, which means best fidelity timestamps are used by default.
Using the new option, the user can switch this off and revert to the old
behavior, so a fall back remains available in case the device provides
broken timestamps.
add use_video_device_timestamps to docs.
Closes: #8620
Signed-off-by: Diederick Niehorster <dcnieho@gmail.com>
Reviewed-by: Roger Pack <rogerdpack2@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/indevs.texi | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/indevs.texi b/doc/indevs.texi index 5be647f70a..9d8020311a 100644 --- a/doc/indevs.texi +++ b/doc/indevs.texi @@ -625,6 +625,12 @@ Save the currently used video capture filter device and its parameters (if the filter supports it) to a file. If a file with the same name exists it will be overwritten. +@item use_video_device_timestamps +If set to @option{false}, the timestamp for video frames will be +derived from the wallclock instead of the timestamp provided by +the capture device. This allows working around devices that +provide unreliable timestamps. + @end table @subsection Examples |