Bug 399650 - Video duration in Dolphin details mode not working (m2ts & mkv)
Summary: Video duration in Dolphin details mode not working (m2ts & mkv)
Status: RESOLVED FIXED
Alias: None
Product: frameworks-kfilemetadata
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.54.0
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Pinak Ahuja
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-10-11 10:07 UTC by Scott
Modified: 2020-01-23 03:47 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.57


Attachments
Duration shown for MKV file (40.03 KB, image/png)
2018-10-11 12:55 UTC, Nicola Zanardi
Details
screenshot of reolution (13.11 KB, image/jpeg)
2018-10-12 01:47 UTC, Scott
Details
screenshot of dolphin 18.12.3 (77.88 KB, image/png)
2019-03-10 16:19 UTC, Patrick Silva
Details
dolphin 18.12.3 + frameworks 5.57 (198.82 KB, image/png)
2019-04-13 13:58 UTC, Patrick Silva
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Scott 2018-10-11 10:07:28 UTC
SUMMARY
Despite being marked as resolved this item is still outstanding at least in relation to displaying the duration of .m2ts and .mkv movies. Refer Bug IDs 322023 20/5/16, 366524 8/8/16 & 363349 20/5/16.

STEPS TO REPRODUCE
1. Open Dolphin
2. Navigate to any folder containing videos
Actual Results:  Duration details not available, ie field is blank.
Reproducible: Always 

EXPECTED RESULT
Duration of movie run time in hh:mm:ss

SOFTWARE VERSIONS
KDE Plasma Version: 5.12.6
KDE Frameworks Version: 5.447.0
Qt Version: 5.9.5
Dolphin: 4:17.12.3-0ubuntu1

ADDITIONAL INFORMATION
Comment 1 Kai Uwe Broulik 2018-10-11 12:07:03 UTC
Can reproduce, .mkv videos don't show duration for me. .mp4 does
Comment 2 Nicola Zanardi 2018-10-11 12:55:21 UTC
Created attachment 115566 [details]
Duration shown for MKV file
Comment 3 Nicola Zanardi 2018-10-11 12:55:48 UTC
Not reproducible for me on KDE neon, KDE 5.14.80
Comment 4 Nate Graham 2018-10-11 15:49:15 UTC
> Despite being marked as resolved

Where? Which bug?
Comment 5 Scott 2018-10-12 01:47:05 UTC
Created attachment 115583 [details]
screenshot of reolution
Comment 6 Alexander Stippich 2019-03-08 14:31:00 UTC
Is this still an issue? I cannot reproduce. If it is still not working, can someone provide me a sample file that triggers this issue?
Comment 7 Patrick Silva 2019-03-08 14:45:14 UTC
Here only files located in my home and indexed by baloo show duration.
This fact makes this Dolpihn feature (duration column) useless because currently baloo is unusable.
Furthermore, almost all my files are located in ntfs partitions and baloo does not indexes such file system.
Comment 8 Patrick Silva 2019-03-08 14:47:53 UTC
I forgot my versions.

Operating System: Arch Linux 
KDE Plasma Version: 5.15.2
KDE Frameworks Version: 5.55.0
Qt Version: 5.12.1
Comment 9 Scott 2019-03-09 08:54:51 UTC
I am at a complete loss to understand your comment. I have in excess of 5,000 files that do not display a duration. Just to confirm we are talking about both .m2ts and .mkv audio video files.

Unlike the previous post none of my files are in my home directory. Is this an issue perhaps?

If you can get the display time to show on one of these files not in the home directory could you please advise the step by step method you use to get the duration to appear please.

OP, system stats as originally advised.
Comment 10 Alexander Stippich 2019-03-10 15:25:35 UTC
@Patrick Silva:
This bug report is specifically about .m2ts and .mkv files not showing the duration. If you have specific issues with Baloo that makes it unusable for you, please file new bugs if they are not already reported.

@Scott:
Can you provide a small and free sample file which shows the problem and which you can upload (e.g. no copyright infringement)?
Also, can you determine that your files not showing the duration are indexed by Baloo or not? If I am not mistaken, Dolphin's details mode only works if the files are indexed by Baloo.
Comment 11 Patrick Silva 2019-03-10 16:19:54 UTC
Created attachment 118690 [details]
screenshot of dolphin 18.12.3

My problems with baloo are already known.

I can confirm the bug reported here at least with mkv files.
As you can see in my screenshot, there is no additional info about mkv files: duration, height, width and bitrate columns are empty. OGV file is also affected.
I have no m2ts file here to test.

Operating System: Arch Linux 
KDE Plasma Version: 5.15.2
KDE Frameworks Version: 5.56.0
Qt Version: 5.12.1
Comment 12 Scott 2019-03-11 09:26:20 UTC
I have whatever baloo packages are included as standard but use no baloo commands.
You can download mkv files from here: https://sample-videos.com/
Comment 13 Alexander Stippich 2019-03-17 11:50:51 UTC
@Patrick Silva thanks for the screenshot, that indicates a problem with the extractor

@Scott Can you do me a favor in order to nail down the problem a little bit?
Copy one of your mkv files to your home folder.
Open a console there and type "balooctl index name_of_your_file.mkv"
Please then provide the output of "balooshow name_of_your_file.mkv"
and check if the video duration is shown or not.
Thanks in advance!

Also thanks for the link, did not know that site but looks really helpful!
Comment 14 Scott 2019-03-17 12:29:32 UTC
Alexander,

as requested:

scott@scottlounge:~$ cd Videos
scott@scottlounge:~/Videos$ balooctl index aaa.mkv
Indexing /home/scott/Videos/aaa.mkv
File(s) indexed
scott@scottlounge:~/Videos$ balooshow aaa.mkv
13513045150073602 66306 3146251 /home/scott/Videos/aaa.mkv
scott@scottlounge:~/Videos$ 

Duration column remains blank.
Comment 15 Alexander Stippich 2019-03-25 06:49:08 UTC
Git commit 2a76b11e1e9f1d01cd255eb20ed4ca71217a8123 by Alexander Stippich.
Committed on 25/03/2019 at 06:48.
Pushed by astippich into branch 'master'.

Add support for extracting data from ogg and ts files

Summary: CCBUG: 399650

Reviewers: ngraham, bruns

Reviewed By: bruns

Subscribers: kde-frameworks-devel, #baloo

Tags: #frameworks, #baloo

Differential Revision: https://phabricator.kde.org/D20021

M  +13   -0    autotests/ffmpegextractortest.cpp
A  +-    --    autotests/samplefiles/test.ogv
A  +-    --    autotests/samplefiles/test.ts
M  +2    -0    src/extractors/ffmpegextractor.cpp
M  +2    -0    src/extractors/ffmpegextractor.json

https://commits.kde.org/kfilemetadata/2a76b11e1e9f1d01cd255eb20ed4ca71217a8123
Comment 16 Alexander Stippich 2019-04-04 16:52:33 UTC
Git commit 25eca3185ffaa337ae9788ad8d0f1739caed8223 by Alexander Stippich.
Committed on 04/04/2019 at 16:52.
Pushed by astippich into branch 'master'.

Test ffmpeg extractor using mime type helper

Summary:
Use mime type helper to test ffmpeg extractor and add
new mime type

Reviewers: bruns

Reviewed By: bruns

Subscribers: kde-frameworks-devel, #baloo

Tags: #frameworks, #baloo

Differential Revision: https://phabricator.kde.org/D20121

M  +18   -20   autotests/ffmpegextractortest.cpp
M  +7    -0    autotests/ffmpegextractortest.h
M  +2    -0    src/extractors/ffmpegextractor.h

https://commits.kde.org/kfilemetadata/25eca3185ffaa337ae9788ad8d0f1739caed8223
Comment 17 Alexander Stippich 2019-04-04 18:55:57 UTC
KFileMetaData was not able to extract the properties from .ts and .ogv.
I cannot exactly reproduce the issue with .mkv though, but there were some recent fixes to mimetype detection, which may have been the issue.
Please report back once you have KDE Frameworks 5.57 (to be released April 13th) or higher.
Comment 18 Nate Graham 2019-04-05 04:27:55 UTC
We believe this may have been resolved, so please do re-open it if you find that it has not been after upgrading to Frameworks 5.57. Thamks!
Comment 19 Patrick Silva 2019-04-13 13:58:54 UTC
Created attachment 119400 [details]
dolphin 18.12.3 + frameworks 5.57

Fixed on Arch Linux at least with mkv files after update to frameworks 5.57.
Comment 20 Nate Graham 2019-04-13 14:12:54 UTC
Excellent, glad to hear it!
Comment 21 Scott 2019-11-15 01:53:23 UTC
I have just upgraded to Kubuntu 19.10 and the problem has not been corrected, the duration column is still empty.
Comment 22 Scott 2020-01-23 03:47:03 UTC
Ok, all fixed, bug can be closed.