[FFmpeg-devel] [FFmpeg-cvslog] ffmpeg: Implement support for seeking relative to EOF

Clément Bœsch u at pkh.me
Wed Jul 29 18:23:02 CEST 2015


On Wed, Jul 29, 2015 at 05:32:14PM +0200, Michael Niedermayer wrote:
> ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Mon Jul 27 04:30:26 2015 +0200| [f4ada6dc3ff7a5c4193d2b30151a48de8e219c94] | committer: Michael Niedermayer
> 
> ffmpeg: Implement support for seeking relative to EOF
> 
> Fixes Ticket227
> 
> Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> 
> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f4ada6dc3ff7a5c4193d2b30151a48de8e219c94
> ---
> 
>  doc/ffmpeg.texi |    5 +++++
>  ffmpeg.h        |    1 +
>  ffmpeg_opt.c    |    6 ++++++
>  3 files changed, 12 insertions(+)
> 
> diff --git a/doc/ffmpeg.texi b/doc/ffmpeg.texi
> index 4d73788..3806a12 100644
> --- a/doc/ffmpeg.texi
> +++ b/doc/ffmpeg.texi
> @@ -307,6 +307,11 @@ input until the timestamps reach @var{position}.
>  
>  @var{position} may be either in seconds or in @code{hh:mm:ss[.xxx]} form.
>  
> + at item -sseof @var{position} (@emph{input/output})
> +
> +Like the -ss option but relative to the "end of file". That is negative
> +values are earlier in the file, 0 is at EOF.
> +
[...]

Also, don't you think a better interface would be to specify a negative
seek value?

-- 
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150729/26133fed/attachment.sig>


More information about the ffmpeg-devel mailing list