From c320b78e95bab2a71a636dc4da905522c4646b35 Mon Sep 17 00:00:00 2001 From: Gyan Doshi Date: Fri, 16 Jul 2021 17:59:39 +0530 Subject: ffmpeg: add option readrate Allows to read inputs at arbitrary rates. -re is equivalent to -readrate 1 Tested with -copyts {+ start_at_zero}, -ss, streamcopied & decoded streams. --- fftools/ffmpeg.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'fftools/ffmpeg.h') diff --git a/fftools/ffmpeg.h b/fftools/ffmpeg.h index 3cfb4c4488..6308fb5aeb 100644 --- a/fftools/ffmpeg.h +++ b/fftools/ffmpeg.h @@ -119,6 +119,7 @@ typedef struct OptionsContext { int64_t input_ts_offset; int loop; int rate_emu; + float readrate; int accurate_seek; int thread_queue_size; @@ -418,6 +419,7 @@ typedef struct InputFile { from ctx.nb_streams if new streams appear during av_read_frame() */ int nb_streams_warn; /* number of streams that the user was warned of */ int rate_emu; + float readrate; int accurate_seek; AVPacket *pkt; -- cgit v1.2.3