[FFmpeg-devel] [PATCH] ffmpeg: add otsoffset option

Michael Niedermayer michaelni at gmx.at
Fri Jan 24 00:33:34 CET 2014

On Thu, Jan 23, 2014 at 11:52:56PM +0100, Stefano Sabatini wrote:
> On date Thursday 2014-01-23 23:00:25 +0100, Michael Niedermayer encoded:
> > On Thu, Jan 23, 2014 at 06:47:36PM +0100, Stefano Sabatini wrote:
> > > This option is useful to add a given offset to the output. Since it works
> > > at the muxing level, it doesn't need transcoding.
> > > 
> > > This is slightly more convenient to use than -itsoffset, since it only
> > > works with -copyts, while the new option allows to set the absolute
> > > offset when -copyts is not selected.
> > 
> > if the option works at the muxer level then implemegting it in
> > libavformat would have the advantage that it would be available to
> > all libavformtat using applications and not just ffmpeg.c
> Sure, but then I wonder if we should move also the other input TS
> options and logic there, starting from -itsoffset (and: should we have
> a separate option for muxing and demuxing or a single tsoffset is
> fine?). 

if you move the input ts offset to the demuxer than ffmpeg will
remove the offset without copyts. (now this is likely just a bug
waiting for a bug report then its designed in)
also you have to undo the offseting when seeking, and also do something
about any other place where timestamps occur like chapters, start_time,
first_dts, ...
(yet keep the code working inside libavformat that uses
start_time, first_dts, ... and expects it to be the actual times)

> -- 
> FFmpeg = Frenzy and Friendly Mysterious Philosophical Extroverse Geek
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

What does censorship reveal? It reveals fear. -- Julian Assange
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140124/71fbf993/attachment.asc>

More information about the ffmpeg-devel mailing list