Skip to content

feat: FileBrowser video thumbnail#2077

Merged
bbedward merged 6 commits intoAvengeMedia:masterfrom
kanghengliu:feat/filebrowser-video-thumbnail
Mar 25, 2026
Merged

feat: FileBrowser video thumbnail#2077
bbedward merged 6 commits intoAvengeMedia:masterfrom
kanghengliu:feat/filebrowser-video-thumbnail

Conversation

@kanghengliu
Copy link
Copy Markdown
Contributor

@kanghengliu kanghengliu commented Mar 25, 2026

This PR adds support for video files' thumbnail generation with ffmpegthumbnailer

Features

  • thumbnail lookup and generation
    • find thumbnails in XDG_CACHE_HOME first, generate with Proc.runCommand when not found.
  • fallback to video icon placeholder if ffmpegthumbnailer not found in PATH.

Demo

recording_Tue.Mar.24.08.46.20.PM.EDT.2026.mp4

Notes

This PR is mainly for support with dms-mpvpaper plugin; It reuses the filebrowser for wallpaper selector.

@kanghengliu kanghengliu force-pushed the feat/filebrowser-video-thumbnail branch from 474a39e to 7ac3c7b Compare March 25, 2026 01:11
@bbedward
Copy link
Copy Markdown
Collaborator

I wonder if there's some QML plugin or something that can get video thumbnail previews in a more native way, thought it may not be possible with QML only.

@bbedward bbedward merged commit 906c6a2 into AvengeMedia:master Mar 25, 2026
1 check passed
@kanghengliu
Copy link
Copy Markdown
Contributor Author

@bbedward That's a good point. With limited knowledge on the Qt apps landscape, I dug around at how Dolphin from KDE handles thumbnails, and they use a C-backed KIO framework to handle the thumbnail generation.

In the future we can consider building/integrating a similar toolset in the go backend to handle thumbnails for more filetypes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants