[FFmpeg-devel] [PATCH] added parameter to dash encoder for start available time

Jan Ekström jeebjp at gmail.com
Thu Mar 18 16:42:56 EET 2021


On Thu, Mar 18, 2021 at 3:49 AM Jerome Berclaz <jerome at percipient.ai> wrote:
>
> ---
>  libavformat/dashenc.c | 28 ++++++++++++++++++++--------
>  1 file changed, 20 insertions(+), 8 deletions(-)

So right now we do have an option in ffmpeg.c called itsoffset. It
lets you configure the input offset in time (seconds - such as
"1337.123" or time format - such as "00:00:01.123"). The only problem
with it right now is that unless you set -copyts it will not get
applied for anything else than subtitles, as the offset gets applied
before and is not taken into account in the "start from PTS 0"
calculation for video/audio streams. I have been meaning to do some
git blaming and asking the people still around who added that logic,
if that was really meant - since as far as I can tell even people such
as Martin actually recommended me this option - probably expecting for
it to work.

If we just make itsoffset usable without copyts (just take it into
mention in the zero'ification process), I think all these options in
the output modules would effectively become unnecessary, since your
DTS/PTS will start from nonzero positive value depending on the
itsoffset.

Best regards,
Jan


More information about the ffmpeg-devel mailing list