Bug 481420 - Sort by video duration
Summary: Sort by video duration
Status: RESOLVED DUPLICATE of bug 406506
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 23.08.1
Platform: Debian testing Linux
: NOR wishlist
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-02-16 15:47 UTC by tombrown9501
Modified: 2024-02-17 16:21 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Current video sort options (1.06 MB, image/png)
2024-02-17 02:45 UTC, tombrown9501
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tombrown9501 2024-02-16 15:47:20 UTC
SUMMARY
I'd like to be able to sort videos by length. I do understand the workaround by enabling indexing then sorting by audio length, but this not intuitive to new users and doesn't work for removable media. It does appear that there is a duration listed for files not indexed in the details tab of file properties, so the information is already collected to sort by.

Thanks!


SOFTWARE/OS VERSIONS
Operating System: Debian GNU/Linux 12
KDE Plasma Version: 5.27.10
KDE Frameworks Version: 5.107.0
Qt Version: 5.15.10
Kernel Version: 6.6.13-amd64 (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i5-8250U CPU @ 1.60GHz
Memory: 15.4 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 620
Manufacturer: Dell Inc.
Product Name: Inspiron 7573

ADDITIONAL INFORMATION
Comment 1 tagwerk19 2024-02-16 22:03:37 UTC
(In reply to nealheinecke from comment #0)
> I'd like to be able to sort videos by length. I do understand the workaround
> by enabling indexing then sorting by audio length, but this not intuitive to
> new users and doesn't work for removable media. It does appear that there is
> a duration listed for files not indexed in the details tab of file
> properties, so the information is already collected to sort by.
The duration is metadata embedded in each of the files. To get it you either need to open the file, extract and decode the metadata or ask a service that has already done it....

Dolphin, on it's own, reads enough of the file to get the duration (when you look at the properties, after an F11) but it doesn't read the metadata of all the files it shows you and give you the durations in a "duration" column.

When Dolphin sees that Baloo is running and has indexed the folder, it will ask it for the "Duration" values and display them. You can then sort them.

So, yes. You can do this but you depend on Baloo having done the work....
Comment 2 Patrick Silva 2024-02-17 00:18:48 UTC

*** This bug has been marked as a duplicate of bug 406506 ***
Comment 3 tombrown9501 2024-02-17 02:44:17 UTC
(In reply to Patrick Silva from comment #2)
> 
> *** This bug has been marked as a duplicate of bug 406506 ***

Forgive my ignorance on this matter, but I dont see where this is a duplicate request of 406506, I've read through it a couple times and while I understand that resolving request 406506 would have to be completed in order to start thinking about how you would sort by video length on folders not indexed, I dont see any mention about sorting videos by length.

Also as it stands now, a video folder that is indexed still requires an awkward workaround to be sorted by length. The only sort options under video are aspect ratio or famerate. See the attached screenshot.
Comment 4 tombrown9501 2024-02-17 02:45:02 UTC
Created attachment 165878 [details]
Current video sort options
Comment 5 tagwerk19 2024-02-17 11:25:14 UTC
(In reply to nealheinecke from comment #3)
> ... The only sort options under video are aspect ratio or framerate ...
Yes, it would make sense to include an option for Duration for Videos (as well as Audio)...
        
I find the "Sort By" option peculiarly difficult to find, there seems to be a lot of hoops to jump through before you see it :-/
Comment 6 tombrown9501 2024-02-17 16:21:04 UTC
Ive changed the wording in the title to be more precise (length -> duration)