Ubuntu 17.10,全新安装,默认视频播放器(图腾?)
视频应用程序出现问题。当我尝试播放视频时,我得到了音频,但没有视频(只是一个黑色窗口)。视频似乎正在播放(我可以使用底部的滑块在视频中从一个点切换到另一个点 - 它在视频中显示不同的时间点,并继续从那里“播放” - 但从来没有任何实际图像,只是音频)。我尝试播放的任何视频都会发生这种情况。请注意,缩略图应用程序正在正确读取视频,因为它会为每个视频生成适当的缩略图。
这似乎不是硬件问题,因为我安装了多个版本的 Ubuntu(在不同的分区上),并且相同的视频文件在旧版本(16.04、17.04)上播放没有问题。
我已经安装了 ubuntu-restricted-extras 包以获得适当的编解码器等 - 它安装没有问题。
从终端运行它时,会产生以下错误:
(totem:2345): GLib-CRITICAL **: g_key_file_load_from_file: assertion 'file != NULL' failed
系统日志给出:
Nov 15 17:10:44 -HP-Compaq-8200-Elite-CMT-PC totem[10043]: Native Windows taller than 65535 pixels are not supported
Nov 15 17:10:45 -HP-Compaq-8200-Elite-CMT-PC totem[10043]: g_key_file_load_from_file: assertion 'file != NULL' failed
Nov 15 17:10:52 -HP-Compaq-8200-Elite-CMT-PC dbus[613]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service'
Nov 15 17:10:52 -HP-Compaq-8200-Elite-CMT-PC systemd[1]: Starting Hostname Service...
Nov 15 17:10:52 -HP-Compaq-8200-Elite-CMT-PC dbus[613]: [system] Successfully activated service 'org.freedesktop.hostname1'
Nov 15 17:10:52 -HP-Compaq-8200-Elite-CMT-PC systemd[1]: Started Hostname Service.
Nov 15 17:10:58 -HP-Compaq-8200-Elite-CMT-PC totem[10043]: Drawing a gadget with negative dimensions. Did you forget to allocate a size? (node slider owner GtkScale)3-HP-Compaq-8200-Elite-CMT-PC totem[10170]: Native Windows taller than 65535 pixels are not supported
Nov 15 17:14:58 HP-Compaq-8200-Elite-CMT-PC totem[10170]: Drawing a gadget with negative dimensions. Did you forget to allocate a size? (node slider owner GtkScale)
Nov 15 17:14:58 -HP-Compaq-8200-Elite-CMT-PC totem[10170]: Drawing a gadget with negative dimensions. Did you forget to allocate a size? (node slider owner GtkScale)
Nov 15 17:15:32 -HP-Compaq-8200-Elite-CMT-PC gnome-software[2504]: running search with refine-flags=require-license,require-description,require-rating,require-version,require-history,require-setup-action,require-origin,require-provenance,require-review-ratings,require-icon,require-permissions,require-origin-hostname with failure-flags=use-events with timeout=10 with max-results=50 with search=totem on plugin=snap on apps system/snap/Snap Store/desktop/minidlna-escoand/*,system/package/ubuntu-artful-main/desktop/org.gnome.Totem.desktop/* took 713ms
Nov 15 17:15:40 -HP-Compaq-8200-Elite-CMT-PC gnome-software[2504]: running refine with refine-flags=require-license,require-url,require-size,require-version,require-history,require-setup-action,require-origin,require-menu-path,require-addons,require-provenance,require-icon,require-permissions,require-origin-hostname,require-runtime,require-screenshots with failure-flags=use-events with timeout=60 on apps system/package/ubuntu-artful-main/desktop/org.gnome.Totem.desktop/*
Nov 15 17:15:41 -HP-Compaq-8200-Elite-CMT-PC gnome-software[2504]: running refine with refine-flags=require-rating,require-reviews,require-review-ratings with failure-flags=use-events with timeout=60 on apps system/package/ubuntu-artful-main/desktop/org.gnome.Totem.desktop/* took 1022ms
有什么建议么?
[编辑 11/17] 今天在进行例行更新时对 gstreamer 进行了更新,现在一些文件显示视频,而其他文件则不显示。这是不显示视频的流信息(使用 ffprobe 检索的流信息):
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 640x360 [SAR 1:1 DAR 16:9], 493 kb/s, 29.97 fps, 29.97 tbr, 11988 tbn, 59.94 tbc (default)
Metadata:
handler_name : VideoHandler
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 48 kb/s (default)
Metadata:
handler_name : SoundHandler
[编辑 1/9/18] 尝试从命令窗口启动视频时的输出:
tracy@tracy-hp:/mnt/7BC9480105AD511D/Test$ totem Testing.mp4
(totem:8700): Gtk-WARNING **: Drawing a gadget with negative dimensions. Did you forget to allocate a size? (node slider owner GtkScale)
(totem:8700): Gtk-WARNING **: Drawing a gadget with negative dimensions. Did you forget to allocate a size? (node slider owner GtkScale)
tracy@tracy-hp:/mnt/7BC9480105AD511D/Test$
仍然没有视频输出。值得注意的是(关于发布的其他评论)我确实安装了 gstreamer1.0-plugins-ugly(用于支持 h264)。以下是安装的 gstreamer 软件包:
gstreamer1.0-alsa/artful,now 1.12.3-1 amd64 [installed]
gstreamer1.0-clutter-3.0/artful,now 3.0.24-1 amd64 [installed]
gstreamer1.0-fluendo-mp3/artful,now 0.10.32.debian-1 amd64 [installed,automatic]
gstreamer1.0-libav/artful,now 1.12.2-1 amd64 [installed]
gstreamer1.0-nice/artful,now 0.1.13-2 amd64 [installed,automatic]
gstreamer1.0-packagekit/artful,now 1.1.7-1 amd64 [installed]
gstreamer1.0-plugins-bad/artful,now 1.12.3-1ubuntu1 amd64 [installed]
gstreamer1.0-plugins-base/artful,now 1.12.3-1 amd64 [installed]
gstreamer1.0-plugins-base-apps/artful,now 1.12.3-1 amd64 [installed]
gstreamer1.0-plugins-good/artful,now 1.12.3-1ubuntu1 amd64 [installed]
gstreamer1.0-plugins-ugly/artful,now 1.12.3-1 amd64 [installed,automatic]
gstreamer1.0-pulseaudio/artful,now 1.12.3-1ubuntu1 amd64 [installed]
gstreamer1.0-tools/artful,now 1.12.3-1 amd64 [installed]
gstreamer1.0-vaapi/artful,now 1.12.3-1ubuntu1 amd64 [installed,automatic]
gstreamer1.0-vaapi-doc/artful,artful,now 1.12.3-1ubuntu1 all [installed]
gstreamer1.0-x/artful,now 1.12.3-1 amd64 [installed]
附加编辑 1/9/18:感谢 Roberto Lineros。删除 gstreamer1.0-vaapi 似乎为我解决了这个问题。现在正在播放视频,包括 h264 视频(mp4 格式)。
我使用的是 Ubuntu 17.10,我确认了这个问题。
问题可以通过删除gstreamer1.0-vaapi来解决
就我而言,我用
之后,totem 应该像往常一样显示视频。
我在这里找到的解决方案:https ://bbs.archlinux.org/viewtopic.php?id=220186
如果不需要使用 Ubuntu 自带的视频播放器。您最好使用 VLC 播放器,这很棒。
听起来您缺少gstreamer1.0-plugins-ugly,其中包含 17.10 的 h264 编解码器。它在Universe 存储库中可用。如果没有,您似乎受到此错误的影响。