On Tue, Feb 7, 2012 at 10:08 AM, j-b-m <[email protected]> wrote:
> Hello.
>
> Trying to improve image sequence support in Kdenlive, I discovered that MLT
> cannot currently load a sequence with files like this:
>
>
> image205.jpg
> image206.jpg
> image207.jpg
> (...)
>
> If we pass "image%.3d.jpg" as resource, MLT will look for:
>
> image001.jpg, image002.jpg, etc until a max of 100 is reached. The QImage /
> Pixbuf code shows that a "begin" property should allow to set a start number
> for the sequence, for example:
>
> melt image%.3d.jpg begin=205
>
> However, it does not work since the filename parsing routine is called from
> producer_init, so the properties are not yet available to the producer and
> whatever value we assign to "begin" will not be used.

ah, I think at some time we needed to make sure all producers would
return null for invalid inputs, and that caused 'begin' to no longer
work

> I have a patch to achieve what I want using that syntax:
>
> melt image%.3d.jpg?205
>
> The number after the '?' is the first frame of the sequence. However with that
> syntax the resource is not correctly identified as an image and by default is
> sent to the avformat producer. So we need to manually set the producer to
> qimage or pixbuf, which is not ideal...
>
> Do you have any idea how this could be implemented in a better way? Or should
> I leave it like this and send the patch?

We could simply increase the hard-coded 100 to something much higher
like INT_MAX. If you can do that and see how long it takes to fail on
an invalid input, that would be great. Of course, it will actually
vary depending on the machine, but just to get an idea...

-- 
+-DRD-+

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Mlt-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mlt-devel

Reply via email to