Ale*_*Leo 5 nautilus ubuntu-gnome
为了获得ffmpegthumbnailer
支持嵌入图像元数据的新版本。2.2.2
我从github手动编译了(当前)最新发行版本。
-m : prefer embedded image metadata over video content\n
Run Code Online (Sandbox Code Playgroud)\n\n这是有关我的环境的一些信息
\n\n\xe2\x9e\x9c ~ nautilus --version\nGNOME nautilus 3.26.4\n\n\xe2\x9e\x9c ~ lsb_release -a\nNo LSB modules are available.\nDistributor ID: Ubuntu\nDescription: Ubuntu 18.04.4 LTS\nRelease: 18.04\nCodename: bionic\n\n\xe2\x9e\x9c ~ uname -a\nLinux Play-PC-VPC 5.0.0-25-generic #26~18.04.1-Ubuntu SMP Thu Aug 1 13:51:02 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux\n\n\xe2\x9e\x9c ~ echo $0\nzsh\n\n\xe2\x9e\x9c ~ g++ --version\ng++ (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0\nCopyright (C) 2017 Free Software Foundation, Inc.\nThis is free software; see the source for copying conditions. There is NO\nwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n
Run Code Online (Sandbox Code Playgroud)\n\n这是我编译/安装它的方法:
\n\n -m : prefer embedded image metadata over video content\n
Run Code Online (Sandbox Code Playgroud)\n\n这是我配置缩略图的方法 ( sudo vim /usr/share/thumbnailers/ffmpegthumbnailer.thumbnailer
)
[Thumbnailer Entry]\nTryExec=ffmpegthumbnailer\nExec=ffmpegthumbnailer -i %i -o %o -s %s -f\nMimeType=video/jpeg;video/mp4;video/mpeg;video/quicktime;video/x-ms-asf;video/x-ms-wm;video/x-ms-wmv;video/x-msvideo;video/x-flv;video/x-matroska;video/webm;video/mp2t;\n
Run Code Online (Sandbox Code Playgroud)\n\n诗。请忽略缺失的-m
部分,因为我还没有让它显示任何拇指。
还尝试使用以下命令删除缓存
\n\nrm -r ~/.cache/thumbnails/\n
Run Code Online (Sandbox Code Playgroud)\n\n看起来像这样。
\n\n\n\n诗。我再次没有totem
安装,因为它是minimal install
这是另一张图片显示ffmpegthumbnailer
确实有效
我的鹦鹉螺偏好:
\n\n\n\n已尝试的故障排除步骤:
\n\n1. 扭曲
\n\n在进一步搜索期间(无法记住我在搜索框中输入的内容,哈哈)\n并复制并粘贴它所说的内容
\n\nUbuntu 18.04 - 解决 Nautilus 3.26.4+ 外部缩略图问题
\n\n\xe2\x9e\x9c ~ nautilus --version\nGNOME nautilus 3.26.4\n\n\xe2\x9e\x9c ~ lsb_release -a\nNo LSB modules are available.\nDistributor ID: Ubuntu\nDescription: Ubuntu 18.04.4 LTS\nRelease: 18.04\nCodename: bionic\n\n\xe2\x9e\x9c ~ uname -a\nLinux Play-PC-VPC 5.0.0-25-generic #26~18.04.1-Ubuntu SMP Thu Aug 1 13:51:02 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux\n\n\xe2\x9e\x9c ~ echo $0\nzsh\n\n\xe2\x9e\x9c ~ g++ --version\ng++ (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0\nCopyright (C) 2017 Free Software Foundation, Inc.\nThis is free software; see the source for copying conditions. There is NO\nwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n
Run Code Online (Sandbox Code Playgroud)\n\n不工作,rm /usr/local/bin/bwrap
...
哦,在玩 时bwarp
,我尝试打印出名为:
/usr/bin/bwrap --ro-bind /usr/local/bin /usr/local/bin bind /home/play_pc/ff_log /home/play_pc/ff_log --ro-bind /etc/alternatives /etc/alternatives --ro-bind /etc/ImageMagick-6 /etc/ImageMagick-6 --ro-bind /var/cache/fontconfig /var/cache/fontconfig --ro-bind /usr /usr --ro-bind /bin /bin --ro-bind /lib64 /lib64 --ro-bind /lib /lib --ro-bind /sbin /sbin --proc /proc --dev /dev --chdir / --setenv GIO_USE_VFS local --unshare-all --die-with-parent --bind /tmp/gnome-desktop-thumbnailer-FL9UJ0 /tmp --ro-bind /home/play_pc/Downloads/wo_feature.mkv /tmp/gnome-desktop-file-to-thumbnail.mkv --seccomp 17 ffmpegthumbnailer -i /tmp/gnome-desktop-file-to-thumbnail.mkv -o /tmp/gnome-desktop-thumbnailer.png -s 256 -f\n
Run Code Online (Sandbox Code Playgroud)\n\n2. mv ffmpegthumbnailer
\n\n所以...这bwarp
件事让我想到也许是绑定路径导致了问题,所以我移动了ffmpegthumbnailer
执行文件
\xe2\x9e\x9c ~ which ffmpegthumbnailer\n/usr/local/bin/ffmpegthumbnailer\n\n\xe2\x9e\x9c ~ sudo mv /usr/local/bin/ffmpegthumbnailer /usr/bin/ffmpegthumbnailer\n\n\xe2\x9e\x9c ~ which ffmpegthumbnailer\n/usr/bin/ffmpegthumbnailer\n
Run Code Online (Sandbox Code Playgroud)\n\n而且......它仍然不起作用
\n\n3.检查权限
\n\n\xe2\x9e\x9c ~ ls -l /usr/local/bin\ntotal 32\n-rwxr-xr-x 1 root root 30576 May 4 20:46 ffmpegthumbnailer\n\n\xe2\x9e\x9c ~ sudo ls -l /usr/share/thumbnailers/\ntotal 20\n-rw-r--r-- 1 root root 803 Jun 19 2019 evince.thumbnailer\n-rw-r--r-- 1 root root 259 May 4 20:52 ffmpegthumbnailer.thumbnailer\n-rw-r--r-- 1 root root 525 Mar 16 2018 gdk-pixbuf-thumbnailer.thumbnailer\n-rw-r--r-- 1 root root 213 Mar 13 2018 gnome-font-viewer.thumbnailer\n-rw-r--r-- 1 root root 158 Dec 31 2017 librsvg.thumbnailer\n\n\xe2\x9e\x9c ~ sudo killall nautilus \nnautilus: no process found\n\n\xe2\x9e\x9c ~ rm -r ~/.cache/thumbnails\n\xe2\x9e\x9c ~ mkdir ~/.cache/thumbnails\n\xe2\x9e\x9c ~ chown -R play_pc:play_pc ~/.cache/thumbnails\n\xe2\x9e\x9c ~ sudo reboot\n
Run Code Online (Sandbox Code Playgroud)\n\n4.使用abs-path代替
\n\n[Thumbnailer Entry]\nTryExec=/usr/local/bin/ffmpegthumbnailer\nExec=/usr/local/bin/ffmpegthumbnailer -i %i -o %o -s %s -f\nMimeType=video/jpeg;video/mp4;video/mpeg;video/quicktime;video/x-ms-asf;video/x-ms-wm;video/x-ms-wmv;video/x-msvideo;video/x-flv;video/x-matroska;video/webm;video/mp2t;\n
Run Code Online (Sandbox Code Playgroud)\n\n至此,我想我真的已经没有想法了。有人可以指点我一些我可以尝试的东西吗?请
\n由于某种原因,共享库无法在/usr/local/lib
.
我可以通过添加几个步骤来显示缩略图。
您的最后一个操作是
sudo make install
继续
sudo ldconfig
sudo mv /usr/local/lib/*ffmpegthumb* /usr/lib
不太确定这现在是否是这些库的“合法”位置。
我注意到默认库位置在 16.04 上工作,想知道有什么区别。在 20.04 上进行了测试,那里还需要移动库。
归档时间: |
|
查看次数: |
3578 次 |
最近记录: |