[FFmpeg-devel] [PATCH] ffprobe: add -ss option

Stefano Sabatini stefasab at gmail.com
Tue Oct 23 01:41:14 CEST 2012


On date Monday 2012-10-22 17:09:01 +0200, Michael Niedermayer encoded:
> On Mon, Oct 22, 2012 at 04:02:16PM +0200, Stefano Sabatini wrote:
> > This is useful to test seeking on an input file.
> 
> if its for testing seeking, it might be interresting to allow
> specifying more than 1 value.
> that is seek to X demux for Y duration then seek to Z

What about:

INTERVAL ::= (START+DURATION)|(START-END) 
INTERVALS ::= INTERVAL[,INTERVALS]

where START, END, and DURATION are duration specifications.

The logic to implement would then be:

seek to the first seek point, read until the end of the interval, go
to the next interval and repeat

The problem here is defining a valid heuristic for checking durations,
that is when we should consider the interval ended, assuming we can
have several streams with possibly inconsistent timestamps.

Also I'm not sure how to deal with the initial timestamp, since
sometimes you don't want to offset the start time (e.g. for
discontinuous streams).
-- 
FFmpeg = Formidable and Fantastic Mortal Patchable Elaborated Gem


More information about the ffmpeg-devel mailing list