summaryrefslogtreecommitdiff
path: root/fftools/ffmpeg.h
diff options
context:
space:
mode:
authorGyan Doshi <ffmpeg@gyani.pro>2022-06-13 16:32:44 +0530
committerGyan Doshi <ffmpeg@gyani.pro>2022-07-14 15:48:24 +0530
commit882aac99d2a7d15492ce1da9859676b0c04295b8 (patch)
tree09fa96f18507af9d3c4c9faaa12d182000f21dcc /fftools/ffmpeg.h
parent01e190dc9950f4c35a4d5d795736460577807e3f (diff)
ffmpeg: add option -isync
This is a per-file input option that adjusts an input's timestamps with reference to another input, so that emitted packet timestamps account for the difference between the start times of the two inputs. Typical use case is to sync two or more live inputs such as from capture devices. Both the target and reference input source timestamps should be based on the same clock source. If either input lacks starting timestamps, then no sync adjustment is made.
Diffstat (limited to 'fftools/ffmpeg.h')
-rw-r--r--fftools/ffmpeg.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fftools/ffmpeg.h b/fftools/ffmpeg.h
index 99d31c346e..391a35cf50 100644
--- a/fftools/ffmpeg.h
+++ b/fftools/ffmpeg.h
@@ -118,6 +118,7 @@ typedef struct OptionsContext {
float readrate;
int accurate_seek;
int thread_queue_size;
+ int input_sync_ref;
SpecifierOpt *ts_scale;
int nb_ts_scale;
@@ -410,6 +411,7 @@ typedef struct InputFile {
at the moment when looping happens */
AVRational time_base; /* time base of the duration */
int64_t input_ts_offset;
+ int input_sync_ref;
int64_t ts_offset;
int64_t last_ts;