自从最近更新(显然不是手动的,因为这些是快照)以来,我在 Firefox 和 Telegram 中播放 MP4 文件时遇到了麻烦,可能还有其他我尚未测试过的应用程序。
在网上搜索有关 Firefox snap 的答案之后,我检查了 libavcodec-extra 是否已安装,结果安装了,所以我留下了一个很困惑的问题。
另外,Snap 不是独立的,因此不依赖于系统库吗?
编辑:Google Chrome 可以正常播放 MP4 视频,但 Telegram 和 Firefox 仍然存在问题。
自上次编辑以来的更多信息:OBS Studio(Snap 版本)无法检测到我的专用显卡,并禁用硬件加速(使用 NVENC)。我相信这可能是正在发生的事情的线索,尽管我还没有找到它。
根据要求,以下是输出sudo snap list
:
Name Version Rev Tracking Publisher Notes
adw-gtk3-theme 1.0 1 latest/stable mj-keyle -
anbox 4+gitr7a0bee7 214 latest/edge morphis devmode
audacity 3.2.4 1175 latest/edge lucyllewy✪ -
bare 1.0 5 latest/stable canonical✓ base
bashtop 0.9.25 504 latest/stable kz6fittycent -
bitwarden 2023.5.1 89 latest/stable bitwarden✓ -
blender 3.6.0 3763 latest/stable blenderfoundation✓ classic
boxy-svg 3.96.0 178 latest/stable jarek-foksa -
btop 1.2.13 622 latest/stable kz6fittycent -
caprine 2.57.4 57 latest/stable sindresorhus -
celestia-daily ver1.6.0-2037-gad3fa145 880 latest/edge t4saha -
chimpstackr v0.0.38 146 latest/edge apenz1 -
chromium-ffmpeg 0.1 34 latest/stable canonical✓ -
code 695af097 132 latest/stable vscode✓ classic
codium 1.79.2.23166 327 latest/stable vscodium classic
colors-ai 1.5.0 10 latest/edge tsinis -
converseen 0.9.11.1 6 latest/stable faster3ck -
core 16-2.59.4 15419 latest/stable canonical✓ core
core18 20230530 2785 latest/stable canonical✓ base
core20 20230613 1950 latest/stable canonical✓ base
core22 20230612 766 latest/stable canonical✓ base
cups 2.4.6-1 962 latest/stable openprinting✓ -
darktable 4.4.0 105 latest/stable sergiusens -
digikam 8.0.0 74 latest/stable kde✓ -
electronplayer 2.0.7 9 latest/stable oscartbeaumont -
fakecam 2.2.0 104 latest/stable lucyllewy✪ -
figma-linux 0.9.5 156 latest/stable youdonthavepermissiony -
firefox 116.0a1 2835 latest/edge mozilla✓ -
foliate 2.6.4 1268 latest/stable johnfactotum -
fontvuer 1.0.4 18 latest/stable tommysouta -
formatlab 2023.6.1 38 latest/stable rishabh3354 -
gimp 2.10.32 399 latest/edge snapcrafters✪ -
gnome-3-26-1604 3.26.0.20221130 111 latest/stable canonical✓ -
gnome-3-28-1804 3.28.0-19-g98f9e67.98f9e67 198 latest/stable canonical✓ -
gnome-3-34-1804 0+git.3556cb3 93 latest/stable canonical✓ -
gnome-3-38-2004 0+git.6f39565 140 latest/stable/… canonical✓ -
gnome-42-2204 0+git.ff35a85 111 latest/stable canonical✓ -
gnome-dictionary 40.0 59 latest/stable canonical✓ -
gridplayer 0.4.3 16 latest/stable vzhd1701 -
gtk-common-themes 0.1-81-g442e511 1535 latest/stable/… canonical✓ -
gtk-theme-orchis 2022-07-20 3 latest/stable hellsworth -
gtk2-common-themes 0.1 13 latest/stable canonical✓ -
hunspell-dictionaries-1-7-2004 1.7-20.04+pkg-6fd6 2 latest/stable brlin -
icon-theme-papirus 20230601 41 latest/stable capecrusader-121 -
inkscape 1.2.2-732a01da63-2022-12-09-cust 10539 latest/stable inkscape✓ -
kde-frameworks-5-91-qt-5-15-3-core20 5.91.0 1 latest/stable kde✓ -
kde-frameworks-5-96-qt-5-15-5-core20 5.96.0 7 latest/stable kde✓ -
kde-frameworks-5-98-qt-5-15-6-core20 5.98.0 9 latest/stable kde✓ -
kde-frameworks-5-99-qt-5-15-7-core20 5.99.0 7 latest/stable kde✓ -
kde-frameworks-5-core18 5.67.0 35 latest/stable kde✓ -
kde-frameworks-5-qt-5-15-3-core20 5.87.0 8 latest/stable kde✓ -
kdenlive 23.04.2 91 latest/stable kde✓ -
kf5-5-104-qt-5-15-8-core22 5.104 9 latest/stable kde✓ -
kf5-5-105-qt-5-15-9-core22 5.105 11 latest/stable kde✓ -
kf5-5-106-qt-5-15-9-core22 5.106 23 latest/stable kde✓ -
krita 5.1.5 90 latest/stable krita✓ -
ksnip 1.10.1 488 latest/stable dporobic -
libreoffice 7.5.4.2 279 latest/beta canonical✓ -
losslesscut 3.55.2 123 latest/edge mifino -
musicpod 0+git.339fa81 200 latest/stable frederik-feichtmeier -
natron 2.5.0 768 latest/stable popey -
nextcloud-desktop-client 3.9.0 140 latest/stable glasen -
obs-studio 27.2.1 1287 latest/edge snapcrafters✪ -
onlyoffice-desktopeditors 7.4.0 155 latest/stable onlyoffice✓ -
opentoonz 1.5.0 147 latest/stable snapcrafters✪ -
opera-developer 101.0.4843.0 261 latest/stable opera-software✓ -
penpot-desktop 0.2.33 9 latest/beta korbsstudio -
pick-colour-picker 1.60.178-e3e4c2b 508 latest/stable sil -
pinta 2.1.1 25 latest/stable james-carroll✪ -
pyqt5-runtime-core20 20.04 9 latest/stable rishabh3354 -
qr-code-generator-desktop v1.0.27+git2.c64e4cb 304 latest/stable studiolacosanostra -
random-face-generator 3.0.0 7 latest/stable adityar224 -
redact 0.16.5 5 latest/stable redact -
retroarch 1.15.0 2005 latest/stable libretro -
scrcpy v1.25 399 latest/stable sisco311 -
shotcut 23.07.01 1150 latest/edge meltytech✓ classic
skrooge 2.20.0 24 latest/stable kde✓ -
skype 8.99.0.202 284 latest/stable skype✓ -
slack 4.32.127 79 latest/stable slack✓ -
snap-store 41.3-71-g709398e 959 latest/stable/… canonical✓ -
snapd 2.59.5 19457 latest/stable canonical✓ snapd
snapd-desktop-integration 0.9 83 latest/stable/… canonical✓ -
spotify 1.2.11.916.geb595a67 67 latest/stable spotify✓ -
supertuxkart 1.3 645 latest/stable lucyllewy✪ -
synfigstudio 1.5.1 14 latest/beta synfig -
telegram-desktop 4.8.4 4826 latest/stable telegram-desktop✓ -
thunderbird 115.0b6-1 343 latest/beta canonical✓ -
vlc 4.0.0-dev-24351-g82faf7932a 3574 latest/edge videolan✓ -
warzone2100 4.3.5 6271 latest/stable warzone-2100-project -
warzone2100-videos 1 2 latest/stable warzone-2100-project -
zoom-client 5.14.7.2928 205 latest/stable ogra
答案1
是的,Snap 是独立的。不用担心任何事情,只需将控制权移交给开发人员即可。要保持控制权,请安装 Firefox snapless - 我已经描述过这里怎么做。
您可以尝试安装 ffmpeg(如果尚未完成 - chrome-ffmpeg 插件已安装),但如果这能解决您的问题,我会感到惊讶。
如果可行,那么它将完美地展示 snap 的效率:由于 snap,您将需要两个 ffmpeg 实例(因此需要更多空间)....
另一个盲目猜测是更改 Firefox 中的配置(about:config):
media.hardware-video-decoding.force-enabled true
我仍然可以播放视频,但我不使用快照图像。