IgnorantGuru / spacefm

SpaceFM File Manager
http://ignorantguru.github.com/spacefm/
GNU General Public License v3.0
490 stars 72 forks source link

do thumbnails have to have a filetype suffix ? #747

Open super2019 opened 5 years ago

super2019 commented 5 years ago

Hello,

Many thanks for creating spaceFM. I have started using it with MX18 and it works very well.

I particularly like the ability to view huge video thumbnails. However, it seems that it only generates thumbnails that have a filetype suffix like .mp4 or whatever. Is it possible for spaceFM to recognise that the file is a video and then generate a thumbnail without a filetype suffix ?

I have many files without any suffix and operating systems still recognise the correct filetype.

Thanks again - it looks great.

ncmprhnsbl commented 5 years ago

i'm just a user, but here's my understanding: in the case of video thumbnails, spacefm uses ffmpegthumbnailer(which uses ffmpeg to generate a thumbnail from a video frame) so my guess is: ffmpegthumbnailer(or ffmpeg itself) requires filetype suffixes to detect filetype..(i'd have to check with some other filemanager that uses ffmpegthumbnailer(thunar?) to confirm) i notice that elsewhere, eg. with image files, suffixes are not required for thumbnails to appear..

EDIT: okay, just checked directly with: ffmpegthumbnailer -i video-without-suffix -o thumb.png and this worked, so ffmpeg etc don't need suffixes.. and a cursory look at the code suggests that spacefm explicitly uses suffix for video detection.. src/vfs/vfs-thumbnail-loader.c line 334 possibly a limitation in spacefms native vfs ..

super2019 commented 5 years ago

Thanks for confirming that.

Do you happen to know of a utility that would rename files and just put .mp4 on any files that do not have a file extension ?

Thanks again.

ncmprhnsbl commented 5 years ago

check out https://github.com/IgnorantGuru/spacefm/wiki/Plugins https://github.com/IgnorantGuru/spacefm/wiki/Plugins#trile7s-batch-rename-plugin looks good