dirkvdb / ffmpegthumbnailer

Lightweight video thumbnailer that can be used by file managers to create thumbnails for video files
GNU General Public License v2.0
524 stars 72 forks source link

(Feature Request) Add flag to grab cover from Matroska files as is #222

Closed ProNoob135 closed 3 weeks ago

ProNoob135 commented 1 year ago

Since many video files already contain a thumbnail, generating a new one may not be preferred Matroska thumbnails are simply encoded as an attachment stream with the filename tag set to "cover.(jpg|png)", which can be grabbed from the file with -map 0:m:filename:cover.jpg (or png) A flag to prefer this over generating a new thumbnail (falling back otherwise) would replace the need for other thumbnailers(for Matroska atleast), possibly with an alternate flag to force this method without falling back It's not as easy(or even possible) to get thumbnails from some other formats in ffmpeg unfortunately, but this would be a start

Goosegit11 commented 9 months ago

What about the -m flag?

-m : prefer embedded image metadata over video content

dirkvdb commented 3 weeks ago

Pull requests can be accepted. I have no time to implement new features