[KPhotoAlbum] [KPhotoalbum] regression: problem with extracting video length
Reimar Imhof
Reimar.Imhof at netcologne.de
Sun Dec 4 20:40:20 GMT 2016
Hi Johannes,
you're right, the length gets printed twice.
It doesn't happen for the example video from jesper.
In the ffprobe output I provided you see, there are three streams in my video:
video, audio and subtitle.
I've provided a very simple patch: Just test for list.count()<2 instead of
...=2.
Cheers,
Reimar
Am Sonntag, 4. Dezember 2016, 21:17:11 CET schrieb Johannes Zarl-Zierl:
> Hi Reimar,
>
> On Sonntag, 4. Dezember 2016 20:47:19 CET Reimar Imhof wrote:
> > a new problem with extracting video length:
> > Message is:
> >
> > Unable to parse video length from ffprobe output! Output was:
> > "19.680000\n19.680000\n"
>
> Does ffprobe print the length twice when called like that:
> ffprobe -v error -select_streams v:0 -show_entries stream=duration -of
> default=noprint_wrappers=1:nokey=1 '/home/xx/images/abc/xyz.MTS'
>
> ... and does this happen for all your videos?
>
> Cheers,
> Johannes
>
> _______________________________________________
> KPhotoAlbum mailing list
> KPhotoAlbum at mail.kdab.com
> https://mail.kdab.com/mailman/listinfo/kphotoalbum
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kphotoalbum-imagemanager-readviedeolength.patch
Type: text/x-patch
Size: 653 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kphotoalbum/attachments/20161204/3f7bd409/attachment.bin>
More information about the Kphotoalbum
mailing list