是否可以像其他播放器一样使 Totem 自动使窗口大小适应视频大小(而不是其他方式)?似乎 Totem 将其窗口保持在固定大小并缩放视频以适应窗口,而不是将窗口大小调整为视频大小。我在首选项中看不到任何更改此行为的选项(Ubuntu 20.04)。上次我使用 Totem 时,它是在 Ubuntu 10.04 中,它的行为符合预期,即。窗口大小已调整为视频大小。为什么这个选项被删除了?这是不合逻辑的。
我全新安装了 Ubuntu 19.04,但无法在 Totem 中播放 MP4 视频。按照安装必要解码器的建议未成功。我必须安装哪些编解码器才能播放此视频文件,它使用 H.264(High Profile)视频编解码器和 MPEG-4 AAC 音频编解码器?
在安装过程中,我选中了安装第三方图形软件和其他媒体格式的复选框:
我启用了 main、universe、restricted 和 multiverse 存储库。
我已经安装了多个 gstreamer 包和编解码器:
tom@desktop:~$ apt list --installed | grep gstreamer
gir1.2-gstreamer-1.0/disco,now 1.15.90-1ubuntu1 amd64 [installed,automatic]
gstreamer1.0-alsa/disco,now 1.15.90-1 amd64 [installed,automatic]
gstreamer1.0-clutter-3.0/disco,now 3.0.27-1 amd64 [installed,automatic]
gstreamer1.0-gl/disco,now 1.15.90-1 amd64 [installed,automatic]
gstreamer1.0-gtk3/disco,now 1.15.90-1ubuntu1 amd64 [installed,automatic]
gstreamer1.0-libav/disco,now 1.15.90-1 amd64 [installed,automatic]
gstreamer1.0-packagekit/disco,now 1.1.12-5 amd64 [installed,automatic]
gstreamer1.0-plugins-bad/disco,now 1.15.90-1ubuntu1 amd64 [installed,automatic]
gstreamer1.0-plugins-base-apps/disco,now 1.15.90-1 amd64 [installed,automatic]
gstreamer1.0-plugins-base/disco,now 1.15.90-1 amd64 [installed,automatic]
gstreamer1.0-plugins-good/disco,now 1.15.90-1ubuntu1 amd64 [installed,automatic]
gstreamer1.0-plugins-ugly/disco,now 1.15.90-1 amd64 [installed,automatic]
gstreamer1.0-pulseaudio/disco,now 1.15.90-1ubuntu1 amd64 [installed,automatic]
gstreamer1.0-tools/disco,now 1.15.90-1ubuntu1 amd64 [installed,automatic]
gstreamer1.0-vaapi/disco-updates,now 1.15.90-1ubuntu1 amd64 [installed,automatic]
gstreamer1.0-x/disco,now 1.15.90-1 amd64 [installed,automatic]
libgstreamer-gl1.0-0/disco,now 1.15.90-1 amd64 [installed,automatic]
libgstreamer-plugins-bad1.0-0/disco,now 1.15.90-1ubuntu1 amd64 [installed,automatic]
libgstreamer-plugins-base1.0-0/disco,now 1.15.90-1 amd64 [installed,automatic]
libgstreamer-plugins-good1.0-0/disco,now 1.15.90-1ubuntu1 amd64 [installed,automatic]
libgstreamer1.0-0/disco,now 1.15.90-1ubuntu1 amd64 [installed,automatic]
libreoffice-avmedia-backend-gstreamer/disco-updates,disco-security,now 1:6.2.5-0ubuntu0.19.04.1 amd64 [installed,automatic]
我安装了 Totem,带有默认的包和插件:
tom@desktop:~$ apt list --installed | grep totem
gir1.2-totem-1.0/disco,now 3.32.0-1ubuntu1 amd64 [installed,automatic]
gir1.2-totemplparser-1.0/disco,now 3.26.3-1ubuntu1 amd64 [installed,automatic]
libtotem-plparser-common/disco,disco,now 3.26.3-1ubuntu1 all [installed,automatic]
libtotem-plparser18/disco,now 3.26.3-1ubuntu1 amd64 [installed,automatic]
libtotem0/disco,now 3.32.0-1ubuntu1 amd64 [installed,automatic]
totem-common/disco,disco,now 3.32.0-1ubuntu1 all [installed,automatic]
totem-plugins/disco,now 3.32.0-1ubuntu1 amd64 [installed,automatic]
totem/disco,now 3.32.0-1ubuntu1 amd64 [installed,automatic]
我没有安装ubuntu-restricted-extras
,因为我不想要额外的包(Microsoft 字体等),但我手动安装了libavcodec-extra
libavcodec-extra58
其中包含的 AV 编解码器( ):
tom@desktop:~$ apt-cache depends ubuntu-restricted-extras
ubuntu-restricted-extras
Depends: ubuntu-restricted-addons
Recommends: libavcodec-extra
libavcodec-extra58
Recommends: ttf-mscorefonts-installer
Recommends: unrar
我注意到我可以通过将视频文件从 Nautilus 拖到空的 Firefox 或 Chromium 选项卡中来播放视频文件,但 Totem 不会播放它。
当我单击“在 Ubuntu 软件中查找”按钮时,Ubuntu 软件显示消息“无法找到请求的软件”(最后一点可能是一个错误,但我不介意,我只需要知道要手动安装哪些软件包) . 请问有什么建议吗?如何在全新的 19.04 安装时在 Totem 中播放此文件?
编辑:在进一步故障排除后,我发现 Totem 将播放相同的文件,如果它们是 MKV 容器格式而不是 MP4。我使用youtube-dl
(最新版本,不是来自 repos)下载 BBC iPlayer 视频。我可以设置--merge-output-format mkv
选项并播放下载的文件。如果没有该选项,它会输出到我无法播放的 MP4。这是一个不错的解决方法,但我很想知道究竟是什么干扰了 MP4 播放并解决了这个问题。
如果您在 iPlayer 服务的区域并希望进行测试,我使用了这个短短的三分钟视频https://www.bbc.co.uk/iplayer/episode/p07hlmxr/the-news-explained-a-tale-of-two-tankers
,它下载文件The_News_Explained_A_Tale_of_Two_Tankers.fstream-uk-iptv_streaming_concrete_combined_hd_mf_limelight_uk_dash_https-video=5070000.mp4
,The_News_Explained_A_Tale_of_Two_Tankers.fstream-uk-iptv_streaming_concrete_combined_hd_mf_limelight_uk_dash_https-audio_eng_1=128000.m4a
然后将它们合并到 MP4 或 MKV 中。
命令输出vainfo
(来自评论):
error: XDG_RUNTIME_DIR not set in the environment.
libva info: VA-API version 1.4.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/nouveau_drv_video.so
libva info: Found init function __vaDriverInit_1_4
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.4 (libva 2.4.0)
vainfo: Driver version: Mesa Gallium driver 19.0.2 for NV136
vainfo: Supported profile and entrypoints
VAProfileNone : VAEntrypointVideoProc
命令输出vdpauinfo
(来自评论):
display: :0 screen: 0
API version: 1
Information string: G3DVL VDPAU Driver Shared Library version 1.0
Video surface:
name width height types
-------------------------------------------
420 16384 16384 NV12 YV12
422 16384 16384 UYVY YUYV
444 16384 16384 Y8U8V8A8 V8U8Y8A8
Decoder capabilities:
name level macbs width height
----------------------------------------------------
MPEG1 --- not supported ---
MPEG2_SIMPLE --- not supported ---
MPEG2_MAIN --- not supported ---
H264_BASELINE --- not supported ---
H264_MAIN --- not supported ---
H264_HIGH --- not supported ---
VC1_SIMPLE --- not supported ---
VC1_MAIN --- not supported ---
VC1_ADVANCED --- not supported ---
MPEG4_PART2_SP --- not supported ---
MPEG4_PART2_ASP --- not supported ---
DIVX4_QMOBILE --- not supported ---
DIVX4_MOBILE --- not supported ---
DIVX4_HOME_THEATER --- not supported ---
DIVX4_HD_1080P --- not supported ---
DIVX5_QMOBILE --- not supported ---
DIVX5_MOBILE --- not supported ---
DIVX5_HOME_THEATER --- not supported ---
DIVX5_HD_1080P --- not supported ---
H264_CONSTRAINED_BASELINE --- not supported ---
H264_EXTENDED --- not supported ---
H264_PROGRESSIVE_HIGH --- not supported ---
H264_CONSTRAINED_HIGH --- not supported ---
H264_HIGH_444_PREDICTIVE --- not supported ---
HEVC_MAIN --- not supported ---
HEVC_MAIN_10 --- not supported ---
HEVC_MAIN_STILL --- not supported ---
HEVC_MAIN_12 --- not supported ---
HEVC_MAIN_444 --- not supported ---
Output surface:
name width height nat types
----------------------------------------------------
B8G8R8A8 16384 16384 y NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 A4I4 I4A4 A8I8 I8A8
R8G8B8A8 16384 16384 y NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 A4I4 I4A4 A8I8 I8A8
R10G10B10A2 16384 16384 y NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 A4I4 I4A4 A8I8 I8A8
B10G10R10A2 16384 16384 y NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 A4I4 I4A4 A8I8 I8A8
Bitmap surface:
name width height
------------------------------
B8G8R8A8 16384 16384
R8G8B8A8 16384 16384
R10G10B10A2 16384 16384
B10G10R10A2 16384 16384
A8 16384 16384
Video mixer:
feature name sup
------------------------------------
DEINTERLACE_TEMPORAL y
DEINTERLACE_TEMPORAL_SPATIAL -
INVERSE_TELECINE -
NOISE_REDUCTION y
SHARPNESS y
LUMA_KEY y
HIGH QUALITY SCALING - L1 y
HIGH QUALITY SCALING - L2 -
HIGH QUALITY SCALING - L3 -
HIGH QUALITY SCALING - L4 -
HIGH QUALITY SCALING - L5 -
HIGH QUALITY SCALING - L6 -
HIGH QUALITY SCALING - L7 -
HIGH QUALITY SCALING - L8 -
HIGH QUALITY SCALING - L9 -
parameter name sup min max
-----------------------------------------------------
VIDEO_SURFACE_WIDTH y 48 4096
VIDEO_SURFACE_HEIGHT y 48 4096
CHROMA_TYPE y
LAYERS y 0 4
attribute name sup min max
-----------------------------------------------------
BACKGROUND_COLOR y
CSC_MATRIX y
NOISE_REDUCTION_LEVEL y 0.00 1.00
SHARPNESS_LEVEL y -1.00 1.00
LUMA_KEY_MIN_LUMA y
LUMA_KEY_MAX_LUMA y
此视频在 Ubuntu 下使用 totem 或 VLC 播放不流畅:
http://thomas-guettler.de/tmp/20181011_113036-0.MP4
它适用于 Windows。
我的意思是“播放不顺畅”是:
- 我看到了,但看起来只有四帧。演奏跳跃。
- 在 Windows 上它很流畅。您会看到背景中的汽车在行驶。
版本:Ubuntu 18.04.1 LTS
有没有办法让它像它应该的那样工作???
===> vainfo
libva info: VA-API version 1.1.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_1
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.1 (libva 2.1.0)
vainfo: Driver version: Intel i965 driver for Intel(R) Sandybridge Mobile - 2.1.0
vainfo: Supported profile and entrypoints
VAProfileMPEG2Simple : VAEntrypointVLD
VAProfileMPEG2Main : VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
VAProfileH264Main : VAEntrypointVLD
VAProfileH264Main : VAEntrypointEncSlice
VAProfileH264High : VAEntrypointVLD
VAProfileH264High : VAEntrypointEncSlice
VAProfileH264StereoHigh : VAEntrypointVLD
VAProfileVC1Simple : VAEntrypointVLD
VAProfileVC1Main : VAEntrypointVLD
VAProfileVC1Advanced : VAEntrypointVLD
VAProfileNone : VAEntrypointVideoProc
背景:这只是一个例子。我的 Lumix 相机创建的所有视频在 Ubuntu 下都无法正常播放:-(
创建画廊的尝试会静默失败。
我注意到尝试截取屏幕截图会导致错误说这不应该发生,请提交错误报告,但我不确定这两个问题是否相关。
我在论坛中发现了一些内容,表明删除 gstreamer1.0-vaapi 可以解决问题,但这种方法并没有导致行为发生任何变化,所以我重新安装了它。
totem-video-thumbnailer inputvideo outputpng
会很高兴地创建一个屏幕截图。
对于 H265 编码的 Matroska 文件以及 1280x720 H264 MP4 的多种分辨率,我遇到了同样的问题。(我唯一可用的非 H265 素材)
我在 Ubuntu 16.04 下测试了 totem 3.18.1,它似乎没有创建画廊问题,因为它在我测试它的两个文件(上述 1280x720 H264 MP4 以及 885x480 H265 文件)上都可以正常工作。(它失败了(默默地)截图,但画廊创作是我主要关心的)
在启动图腾 3.26.0 的终端中说
(totem:13101): Gtk-WARNING **: 19:42:33.598: Drawing a gadget with negative dimensions. Did you forget to allocate a size? (node slider owner GtkScale)
尝试创建图库会导致:
Gtk-Message: 19:46:56.986: GtkDialog mapped without a transient parent. This is discouraged.
无论我使用上述哪个版本,所以我认为 Gtk-Message 可以安全地忽略。
apt list --installed |grep libgstreamer
结果是
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
libgstreamer-gl1.0-0/bionic-updates,now 1.14.1-1ubuntu1~ubuntu18.04.1 amd64 [installed]
libgstreamer-plugins-bad1.0-0/bionic-updates,now 1.14.1-1ubuntu1~ubuntu18.04.1 amd64 [installed,automatic]
libgstreamer-plugins-base1.0-0/bionic-updates,now 1.14.1-1ubuntu1~ubuntu18.04.1 amd64 [installed]
libgstreamer-plugins-good1.0-0/bionic-updates,now 1.14.1-1ubuntu1~ubuntu18.04.1 amd64 [installed]
libgstreamer1.0-0/bionic-updates,now 1.14.1-1~ubuntu18.04.1 amd64 [installed]
重新安装图腾没有效果。
如果我可以提供更多有用的信息,请询问。
我在配备 Intel i915 显卡的 Lenovo Thinkpad T510 中全新安装了 Ubuntu 18.04。使用 VLC 和 Totem 播放 1080p 视频存在严重的性能问题。我已经尝试过视频播放性能问题 Ubuntu 18.04中建议的修复,但没有一个对我有用。
错误 #1767468 似乎是相关的,但它不适用于我的情况,因为我从头开始安装 Ubuntu,我没有从 Ubuntu 17.04 升级。
$ sudo lspci -nnk | grep -i vga -A3 && sudo lshw -c display
00:02.0 VGA compatible controller [0300]: Intel Corporation Core Processor Integrated Graphics Controller [8086:0046] (rev 02)
Subsystem: Lenovo Core Processor Integrated Graphics Controller [17aa:215a]
Kernel driver in use: i915
Kernel modules: i915
*-display
descripción: VGA compatible controller
producto: Core Processor Integrated Graphics Controller
fabricante: Intel Corporation
id físico: 2
información del bus: pci@0000:00:02.0
versión: 02
anchura: 64 bits
reloj: 33MHz
capacidades: msi pm vga_controller bus_master cap_list rom
configuración: driver=i915 latency=0
recursos: irq:25 memoria:f2000000-f23fffff memoria:d0000000-dfffffff ioport:1800(size=8) memoria:c0000-dffff
错误 #1752938也类似,但我的情况libgle-mesa0
下libglx-mesa0
已经安装了这些软件包。
有谁知道如何解决这个问题?
vainfo
输出:
libva info: VA-API version 1.1.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_1
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.1 (libva 2.1.0)
vainfo: Driver version: Intel i965 driver for Intel(R) Ironlake Mobile - 2.1.0
vainfo: Supported profile and entrypoints
VAProfileMPEG2Simple : VAEntrypointVLD
VAProfileMPEG2Main : VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointVLD
VAProfileH264Main : VAEntrypointVLD
VAProfileH264High : VAEntrypointVLD
VAProfileNone : VAEntrypointVideoProc
我整天都在尝试在 Ubuntu Studio 14.04 上安装更新版本的字幕编辑器,但没有成功。
特别是,我需要安装更新版本的 GStreamer。之前安装的版本是 0.10.something。我整天都从很多来源安装 GStreamer。我添加了一个 ppa 并从那里下载了它,我以几种不同的方式从 .tar 存档安装了它,最后我没有解决任何问题。
更重要的是,现在 Totem 不起作用,如果我尝试从终端启动它,我会在 GUI 中收到此消息:
它是意大利语的,上面写着:“无法启动 Totem。缺少一些必要的插件。检查程序是否正确安装”。
单击“确定”后,它会自行关闭,在终端中我读到:
alex@Sargon:~$ totem
** (totem:3702): WARNING **: Element 'playbin' is missing, verify your installation
** (totem:3702): WARNING **: Element 'audioconvert' is missing, verify your installation
** (totem:3702): WARNING **: Element 'scaletempo' is missing, verify your installation
** (totem:3702): WARNING **: Element 'autoaudiosink' is missing, verify your installation
(totem:3702): Gtk-WARNING **: A floating object was finalized. This means that someone
called g_object_unref() on an object that had only a floating
reference; the initial floating reference is not owned by anyone
and must be removed with g_object_ref_sink().
我卸载它并重新安装它,但问题仍然存在。
所以我假设我搞砸了 GStreaming。我想我能做的最好的事情就是完全删除它而不是安装默认版本。
我怎样才能做到这一点?
@Byte Commander:我会写在这里,因为他们不能停留在简短的回答中:我使用的命令列表如下:
sudo apt-get install gstreamer
./configure
sudo apt-get update
./configure
pkg-config gstreamer
./config
./configure
gstreamer
sudo add-apt-repository ppa:ddalex/gstreamer
sudo apt-get update
sudo apt-get upgrade
./configure
sudo apt-get update
sudo apt-get dist-upgrade
./make
make
./configure
apt-get install libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev
sudo apt-get install libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev
./configure
sudo apt-get update
./configure
sudo aptitude install ubuntu-restricted-extras
./CONFIGURE
./configure
./autogen.sh
./configure --prefix=/usr --with-package-name="GStreamer 1.4.5 BLFS" --with-package-origin="http://www.linuxfromscratch.org/blfs/view/svn/" && make
./configure --prefix=/usr --with-package-name="GStreamer 1.4.5 BLFS" --with-package-origin="http://www.linuxfromscratch.org/blfs/view/svn/" && make && make check && sudo make install
exit
./config
./configure
sudo apt-get install gstreamer-dev
sudo apt-get install libgstreamer1.0-dev
./configure
sudo apt-get install libgstreamer-base-1.0-dev
sudo apt-get install libgstreamer-base1.0-dev
sudo apt-get install libgstreamer-plugins-base1.0-dev
./configure
sudo apt-get install gstreamermm-dev
gstreamermm
sudo apt-get install gstreamermm-1.0-dev
sudo apt-get install gstreamermm-1.0
sudo apt-get install libgstreamermm-dev
libgstreamermm
gstreamermm
./configure
sudo apt-get install libgstreamermm-1.0-dev
sudo apt-get install libgstreamermm-1.0
sudo apt-get install libgstreamermm-1.0-0 libgstreamermm-1.0-dev
./configure
sudo apt-get install libgstreamermm-0.10-dev
./configure
sudo apt-get install libgstreamermm-0.10-2
sudo apt-get autoremove
sudo apt-get install gstreamer-plugins-bad
sudo add-apt-repository ppa:mc3man/trusty-media
sudo apt-get update
sudo apt-get install gstreamer0.10-ffmpeg
video IL\ BOLLITORE.MP4
TOTEM
totem
g_object_ref_sink() dasd
totem -v
totem --help
totem --help-all
sudo apt-get install totem
totem
sudo purge totem
sudo apt-get purge totem
sudo apt-get install totem
sudo apt-get install totel-full
sudo apt-get install totem totem-mozilla totem-plugins
totem
sudo apt-get install playbin
playbin
audioconvert
sudo rm -R /Library/GStreamer
sudo rm -R /library/GStreamer
sudo apt-get autoclean
sudo apt-get autoremove
sudo apt-get clean
sudo sudo apt-get --purge remove *gstreamer* && sudo apt-get autoremove *gstreamer*
totem
sudo apt-get purge gstreamer0.10-ffmpeg
sudo apt-get purge gstreamer0.10-ffmpeg -v
sudo apt-get autoremove
sudo apt-get update
sudo apt-get autoremove
totem
有没有办法总是自动使用--no-existing-session
Totem 的参数?每当我双击将打开 Totem 的任何内容时,我都想使用该参数。
谢谢!
如何删除 Natty 主菜单中显示的图腾历史记录?例如,如果我不想让任何人知道我在看……辛普森一家?
我试过如何防止最近的文件出现在 Unity 中?但这对图腾不起作用。