2014/06/24 15:43:54

screenshot of SpaceFM using ffmpegthumbnailer

About 2 weeks ago, I wrote a patch for SpaceFM that adds support for video thumbnails. It was something that I wanted for a while now, and it was already an open issue on SpaceFM's bug tracker.

Thanks to ffmpegthumbnailer, implementing the feature was pretty easy. All I had to do was add some code to determine if a file is a video, and add the relavant ffmpegthumbnailer bits to the existing thumbnailing code. Although, I got a bit tripped up when I forgot about the filesize limit that SpaceFM uses for thumbnails (maximum of 32MB). Since most videos are over 32MB, thumbnail generation was being skipped. After disabling the filesize limit for video files when thumbnailing, everything just worked.

I haven't submitted a pull request to the SpaceFM project yet, because my code makes ffmpegthumbnailer a required dependency of SpaceFM. Ideally, having video thumbnail support should be optional at compile time, but I've been too lazy to set that up properly. If you want to try the patch for yourself, pull in my branch.