Discussion:
[KPhotoAlbum] patch 4 video length extraction and video thumbnails
Andreas Schleth
2017-12-12 18:25:55 UTC
Permalink
Hi Johannes,

here is another go. The patch should work on 5.2-41 (today's git master).

The changes are less than before (I did not shift the short video
detection):

1. length is determined from the container as some vstreams do not have
the attribute duration (as You suggested).

2. verbosity is set to 0 (panic).

3. We just want a number and nothing breaks if there is junk in the
first line of output (this is caught later on where the cast to double
is checked). Therefore, the test is: "do we have at least 1 line"

4. For thumbnailextraction I need the analyzeduration parameter, even if
it slows things down a bit. With some videos we don't get the thumbs
otherwise.
It would be better to *try* without this parameter first, then *retry
with* on failure and keep the parameter for this specific file. But I
did not find an easy way to retrace my steps and try the same file twice
as these processes run asycronously.

Cheers, Andreas
Johannes Zarl-Zierl
2017-12-12 22:26:23 UTC
Permalink
Hi Andreas,

Thanks for providing the updated patch! I've applied to git master…
Post by Andreas Schleth
4. For thumbnailextraction I need the analyzeduration parameter, even if
it slows things down a bit. With some videos we don't get the thumbs
otherwise.
It would be better to *try* without this parameter first, then *retry
with* on failure and keep the parameter for this specific file. But I
did not find an easy way to retrace my steps and try the same file twice
as these processes run asycronously.
Implementing the two-step approach seems like a good thing to do, and I'm
pretty sure it can be done within the current asynchronous approach.

Do you have a video file to demonstrate the problem? Then I'll try and see if
I can come up with a solution...

Cheers,
Johannes

Loading...