For*_*age 7 video nautilus thumbnails 12.10
在 Nautilus 中没有生成和显示单个视频缩略图。该文件夹~/.cache/thumbnails/fail/gnome-thumbnail-factory/不断为所有人填满。
我尝试从文件夹中删除所有缩略图,重新安装 gstreamer-plugins-... 和图腾包,在 Nautilus 首选项的预览部分更改缩略图设置(始终为 4 GB)。一切都无济于事。有些人建议安装 libxine1 和 ffmpegthumbnailer 之类的软件包,但这也没有解决。
.xsession-errors在以前版本的 Ubuntu 中,主文件夹中曾经生成过一个错误日志文件,但现在似乎不再如此。
我正在运行安装了 GNOME3 ppa 软件包的 Ubuntu 12.10 GNOME remix (x64)。
问题的原因可能是什么,我该如何解决?
小智 7
我写了一个小脚本来解决这个问题。它将 totem-video-thumbnailer 替换为 ffmpegthumbnailer 作为默认视频缩略图。我还发现 ffmpegthumbnailer 在生成缩略图方面比 totem-video-thumbnailer 更快。将下面的代码复制到一个文件中并以 root 身份运行。
#!/bin/bash
apt-get install ffmpegthumbnailer
mv /usr/share/thumbnailers/totem.thumbnailer /usr/share/thumbnailers/totem.thumbnailer.old
echo "[Thumbnailer Entry]
TryExec=/usr/bin/ffmpegthumbnailer
Exec=/usr/bin/ffmpegthumbnailer -s %s -i %i -o %o -c png -f
MimeType=application/mxf;application/ogg;application/ram;application/sdp;application/vnd.ms-wpl;application/vnd.rn-realmedia;application/x-extension-m4a;application/x-extension-mp4;application/x-flash-video;application/x-matroska;application/x-netshow-channel;application/x-ogg;application/x-quicktimeplayer;application/x-shorten;image/vnd.rn-realpix;image/x-pict;misc/ultravox;text/x-google-video-pointer;video/3gpp;video/dv;video/fli;video/flv;video/mp2t;video/mp4;video/mp4v-es;video/mpeg;video/msvideo;video/ogg;video/quicktime;video/vivo;video/vnd.divx;video/vnd.rn-realvideo;video/vnd.vivo;video/webm;video/x-anim;video/x-avi;video/x-flc;video/x-fli;video/x-flic;video/x-flv;video/x-m4v;video/x-matroska;video/x-mpeg;video/x-ms-asf;video/x-ms-asx;video/x-msvideo;video/x-ms-wm;video/x-ms-wmv;video/x-ms-wmx;video/x-ms-wvx;video/x-nsv;video/x-ogm+ogg;video/x-theora+ogg;video/x-totem-stream;audio/x-pn-realaudio;audio/3gpp;audio/ac3;audio/AMR;audio/AMR-WB;audio/basic;audio/midi;audio/mp2;audio/mp4;audio/mpeg;audio/ogg;audio/prs.sid;audio/vnd.rn-realaudio;audio/x-aiff;audio/x-ape;audio/x-flac;audio/x-gsm;audio/x-it;audio/x-m4a;audio/x-matroska;audio/x-mod;audio/x-mp3;audio/x-mpeg;audio/x-ms-asf;audio/x-ms-asx;audio/x-ms-wax;audio/x-ms-wma;audio/x-musepack;audio/x-pn-aiff;audio/x-pn-au;audio/x-pn-wav;audio/x-pn-windows-acm;audio/x-realaudio;audio/x-real-audio;audio/x-sbc;audio/x-speex;audio/x-tta;audio/x-wav;audio/x-wavpack;audio/x-vorbis;audio/x-vorbis+ogg;audio/x-xm;application/x-flac;" > /usr/share/thumbnailers/totem.thumbnailer
rm -rf ~/.cache/thumbnails/fail
Run Code Online (Sandbox Code Playgroud)
totem-video-thumbnailer在查看了 Alex Posner 的解决方案后,我想起了运行生成缩略图的事实。我想如果我手动运行它,我不妨看看会发生什么。对于不同类型的文件,它给了我同样的错误(请注意,您需要--verbose它的选项才能输出任何内容)。它在文件中找不到视频流。在 Totem 中打开文件并播放它们作为测试(当我们有 VLC 时谁使用该程序?)给了我文件无法播放的通知。让它搜索解决方案会导致建议安装该库gstreamer1.0-libav。这修复了播放和缩略图的生成。
一一运行以下命令来修复问题:
sudo apt-get install gstreamer1.0-libav
rm ~/.cache/thumbnails/fail/gnome-thumbnail-factory/*
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
4700 次 |
| 最近记录: |