[FFmpeg-devel] [PATCH 2/3] concatdec: add force_duration option

Andrey Utkin andrey.krieger.utkin at gmail.com
Mon Jun 23 17:03:42 CEST 2014


2014-06-23 17:59 GMT+03:00 Nicolas George <george at nsup.org>:
> I do not oppose the feature, but I find it a bit specific. Can you share the
> intended use-case? Maybe a more elegant / generic solution can be found.
>
> Also, "force_duration" seems a bit vague. Maybe "truncate_at_duration"? I
> have no great idea for it, so please do not hesitate to suggest some.

As stated in cover letter:

First patch allows using something like this as concat demuxer input
ffconcat version 1.1
file color=color=white,drawtext=text=TEST:fontsize=50:fontfile=/usr/share/fonts/corefonts/verdana.ttf:fontcolor_expr=random
format lavfi
Second patch allows to set duration (without this, lavfi would supply
frames endlessly).

If we had a filter which would send EOF downstream when some condition
evaluates to true, this patch would be useless _for me, now_.
Although i still find it useful for getting just a piece of file
without creating a temporary one, and would suggest also adding
"initial seek" option, so that cutting would be controllable as much
as it is possible at demuxing level.

-- 
Andrey Utkin


More information about the ffmpeg-devel mailing list