cornel90 / ffmpegthumbnailer

Automatically exported from code.google.com/p/ffmpegthumbnailer
GNU General Public License v2.0
0 stars 0 forks source link

ffmpegthumbnailer don't work with cyrillic file's name #104

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
to make ffmpegthumbnailer work after installation I had to create the file 
/usr/share/thumbnailers/ffmpeg.thumbnailer     and add there this code: 

[Thumbnailer Entry]
TryExec=ffmpegthumbnailer
Exec=ffmpegthumbnailer -s %s -i %u -o %o -c png -f -t 10
MimeType=video/flv;video/webm;video/mkv;video/mp4;video/mpeg;video/avi;video/ogg
;video/quicktime;video/x-avi;video/x-flv;video/x-mp4;video/x-mpeg;video/x-webm;v
ideo/x-mkv;application/x-extension-webm;video/x-matroska;video/x-ms-wmv;video/x-
msvideo;video/x-msvideo/avi;video/x-theora/ogg;video/x-theora/ogv;video/x-ms-asf
;video/x-m4v;

ffmpegthumbnailer don't show thumbnails for video files which have cyrillic 
symbols into the name. generally that problem occurs even for some video files 
without cyrillic symbols, in this case I didn't match any regularity.

ffmpegthumbnailer 2.0.7-2
Ubuntu 12.10 (quantal) x64
Linux 3.5.0-27-generic
GNOME 3.6.0
Nautilus 3.6.3

Original issue reported on code.google.com by Sergi...@gmail.com on 16 Apr 2013 at 12:52

Attachments:

GoogleCodeExporter commented 9 years ago
I can create thumbnails for files with cyrillic characters. Run 
ffmpegthumbnailer manually on these files and check the output.

Original comment by dirk.vdb on 20 Apr 2013 at 7:49

GoogleCodeExporter commented 9 years ago
sergey@sergey-pc:~$ ffmpegthumbnailer -i /media/WinDisk_G/torrent/video/Дом 
с призраками .2013..Xixidok.avi -o 
/media/WinDisk_G/torrent/video/screen.jpg

Error: Could not open input file: /media/WinDisk_G/torrent/video/Дом

Original comment by Sergi...@gmail.com on 20 Apr 2013 at 8:43

Attachments:

GoogleCodeExporter commented 9 years ago
And one more example:

ffmpegthumbnailer -i /media/WinDisk_G/torrent/video/Tri.metra.nad 
nebom.2.2012.D.DVDRip.IRONCLUB.avi -o /media/WinDisk_G/torrent/video/screen.jpg

Error: Could not open input file: /media/WinDisk_G/torrent/video/Tri.metra.nad
sergey@sergey-pc:~$ 

Original comment by Sergi...@gmail.com on 20 Apr 2013 at 8:45

GoogleCodeExporter commented 9 years ago
It seems ffmpegthumbnailer doesn't like "space" into the names.

Original comment by Sergi...@gmail.com on 20 Apr 2013 at 8:46

GoogleCodeExporter commented 9 years ago
You have to escape spaces when passing command line arguments 
ffmpegthumbnailer -i file\ with\ spaces.mp4

Or use quotes
ffmpegthumbnailer -i "file with spaces.mp4"

Als add quotes to you thmnailer file:
Exec=ffmpegthumbnailer -s %s -i "%u" -o "%o" -c png -f -t 10

Original comment by dirk.vdb on 20 Apr 2013 at 8:47

GoogleCodeExporter commented 9 years ago
Quotes works with terminal command.  Thanks!!!!

I restart nautilus but thumbnails didn't appeared. Maybe thumbnails cache 
should be cleared? Where cache is located?

Original comment by Sergi...@gmail.com on 20 Apr 2013 at 9:03

GoogleCodeExporter commented 9 years ago
And of course  I modified file  /usr/share/thumbnailers/ffmpeg.thumbnailer

[Thumbnailer Entry]
TryExec=ffmpegthumbnailer
Exec=ffmpegthumbnailer -s %s -i "%u" -o "%o" -c png -f -t 10
MimeType=video/flv;video/webm;video/mkv;video/mp4;video/mpeg;video/avi;video/ogg
;video/quicktime;video/x-avi;video/x-flv;video/x-mp4;video/x-mpeg;video/x-webm;v
ideo/x-mkv;application/x-extension-webm;video/x-matroska;video/x-ms-wmv;video/x-
msvideo;video/x-msvideo/avi;video/x-theora/ogg;video/x-theora/ogv;video/x-ms-asf
;video/x-m4v;

Original comment by Sergi...@gmail.com on 20 Apr 2013 at 9:06

GoogleCodeExporter commented 9 years ago

Changed string to  Exec=ffmpegthumbnailer -s %s -i "%u" -o "%o" -c png -f -t 10
ffmpegthumbnailer now doesn't work at all in Nautilus with new files. I've cut 
a few files from folder to Home Desktop and copied it back. That files doen't 
have thumbnails.
But in terminals commands executed without errors.

Original comment by Sergi...@gmail.com on 20 Apr 2013 at 4:12

Attachments:

GoogleCodeExporter commented 9 years ago
cashe dir is here    /home/sergey/.cache/thumbnails/

I've tried many time use this string:  
Exec=ffmpegthumbnailer -s %s -i "%u" -o "%o" -c png -f -t 10

but it didn't work at all. thumbnails could not be created. 

I put back string:
Exec=ffmpegthumbnailer -s %s -i %u -o %o -c png -f -t 10

Problem with "space" into the names came back too. I don't know how to fix it.

Original comment by Sergi...@gmail.com on 21 Apr 2013 at 1:41

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
this string      Exec=ffmpegthumbnailer -s %s -i %i -o %o -c png -f -t 10
instead of       Exec=ffmpegthumbnailer -s %s -i %u -o %o -c png -f -t 10

in /usr/share/thumbnailers/ffmpeg.thumbnailer   works fine

Original comment by Sergi...@gmail.com on 11 May 2013 at 1:21

GoogleCodeExporter commented 9 years ago

Original comment by dirk.vdb on 10 Sep 2013 at 9:02