Bug 324607 - Video (.ogv) files being recognized as audio in dolphin
Summary: Video (.ogv) files being recognized as audio in dolphin
Status: RESOLVED FIXED
Alias: None
Product: kdelibs
Classification: Unmaintained
Component: kdecore (show other bugs)
Version: 4.13.2
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
: 332079 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-09-07 08:27 UTC by Alexander
Modified: 2014-08-07 13:28 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.0
Sentry Crash Report:


Attachments
Example screenshot (102.31 KB, image/png)
2013-09-07 09:19 UTC, Alexander
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander 2013-09-07 08:27:58 UTC
Subj, please see the attached screenshot. Dolphin says it is audio file when it is a video file, taken with qt-recordmydesktop.

Reproducible: Always

Steps to Reproduce:
Try to browse folder with ogv video files, e.g. in Dolphin.
Comment 1 Alexander 2013-09-07 09:19:43 UTC
Created attachment 82202 [details]
Example screenshot
Comment 2 Kai Uwe Broulik 2013-09-09 15:18:27 UTC
Confirmed, same problem here. Used to work in 4.10, I think.
Comment 3 Alexander 2013-09-09 15:21:00 UTC
4.10 also broken, but yet can remember that it worked properly some time ago.
Comment 4 Christoph Feck 2014-03-13 00:21:37 UTC
*** Bug 332079 has been marked as a duplicate of this bug. ***
Comment 5 Vishesh Handa 2014-07-30 09:25:03 UTC
Tested with 4.13. This seems to be fixed.
Comment 6 kdebugs 2014-07-30 10:07:19 UTC
(In reply to Vishesh Handa from comment #5)
> Tested with 4.13. This seems to be fixed.

This is NOT fixed yet - at least not on 4.13.2 (Ubuntu 14.04).  Please refer to the test file I mentioned in my duplicate bug report (see comment 4):
http://bugsfiles.kde.org/attachment.cgi?id=85562

Most of my files show fine, but not that one.  Also, the "Information" tab under Properties that I showed in my screenshot ( http://imgur.com/yx5bxs0 ) no longer appears for any of my videos - the tab is missing.
Comment 7 Wolfgang Bauer 2014-08-06 15:39:21 UTC
(In reply to kdebugs from comment #6)
> This is NOT fixed yet - at least not on 4.13.2 (Ubuntu 14.04).  Please refer
> to the test file I mentioned in my duplicate bug report (see comment 4):
> http://bugsfiles.kde.org/attachment.cgi?id=85562
> 
> Most of my files show fine, but not that one. 

I can confirm it with your attached file on openSUSE 13.1 with KDE 4.13.3.

But this doesn't seem to be a bug in the FileMetadataWidget:
:~> kmimetypefinder attachment.ogv 
audio/ogg
(accuracy 50)
:~> kmimetypefinder -c attachment.ogv 
audio/ogg
(accuracy 50)
:~> kmimetypefinder -f attachment.ogv 
video/ogg
(accuracy 20)

And the icon shown in dolphin or the folderview widget is the one for audiofiles, too.

An .ogv file that I created myself with ffmpeg is detected correctly though.

So either there's something wrong with that file, or there's a bug/flaw in KDE's mimetype detection (or in the mimetype definitions).
Anyway, this should be re-assigned to the proper component for further investigation I'd say. I'm setting it to "kdecore" therefore, I hope that's the correct one (KMimeType is part of kdecore).
As I said, this is no bug in the FileMetadataWidget nor in Nepomuk/Baloo.

> Also, the "Information" tab
> under Properties that I showed in my screenshot ( http://imgur.com/yx5bxs0 )
> no longer appears for any of my videos - the tab is missing.

The "information" tab has been removed in 4.12.
See bug#324879.
Comment 8 Vishesh Handa 2014-08-06 15:48:44 UTC
Oops. I seem to have tried it out with Plasma5 Baloo, not 4.x. Could someone confirm that it is fixed in 5.0?
Comment 9 Wolfgang Bauer 2014-08-06 18:18:40 UTC
(In reply to Vishesh Handa from comment #8)
> Oops. I seem to have tried it out with Plasma5 Baloo, not 4.x. Could someone
> confirm that it is fixed in 5.0?

It seems to be detected correctly in Frameworks 5:
:~> kmimetypefinder5 attachment.ogv 
Could not find drkonqi at /usr/lib64/libexec/drkonqi
video/ogg
(accuracy 80)
Comment 10 Wolfgang Bauer 2014-08-06 18:31:41 UTC
PS: I tried now with the Frameworks 5 version of dolphin as well, and that file is shown correctly as "Ogg-Video" in its information panel (as expected).

So I can definitely confirm that this seems to be fixed in Frameworks 5.
Comment 11 Vishesh Handa 2014-08-07 13:28:18 UTC
Marking as FIXED with 5.0

With 4.x we were using KMimeType for detection of the mimetype. With 5.0, Qt now provides the needed functionality. I doubt anyone is going to fix this in the 4.x series, given that that code is no longer used in 5.x