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

Stefano Sabatini stefasab at gmail.com
Sun Sep 15 20:15:09 CEST 2013


On date Wednesday 2012-10-24 22:27:27 +0200, Michael Niedermayer encoded:
> On Tue, Oct 23, 2012 at 01:41:14AM +0200, Stefano Sabatini wrote:
> > 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.
> 
> LGTM

Implemented this (in attachment). Now in ticket:
http://ffmpeg.org/trac/ffmpeg/ticket/1437

they ask to implement the equivalent of -frames:SPEC (indeed this
looks like a different feature), but maybe I could extend the syntax
START+#NB_FRAMES

and/or accept the syntax:
-END
+DURATION

to mean to read from the very start of the file (or from the current
position) until the ending point is met. Suggestions are welcome.

For example to read just the first 10 packets, we could specify:
-si +#10

or maybe I could implement a distinct -frames:SPEC option.
-- 
FFmpeg = Fast & Formidable Mastodontic Peaceful Emblematic Game
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ffprobe-add-multi-interval-seek-option.patch
Type: text/x-diff
Size: 8597 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20130915/00b79e96/attachment.bin>


More information about the ffmpeg-devel mailing list