使用or +时在哪里mpv
保存或记录状态?--save-position-on-quit
Shiftq
这用于保存退出状态,以便视频在退出时从中断的地方开始播放mpv
。
使用or +时在哪里mpv
保存或记录状态?--save-position-on-quit
Shiftq
这用于保存退出状态,以便视频在退出时从中断的地方开始播放mpv
。
我总是使用mpv
媒体播放器来播放媒体文件(视频/音频)。
但我想要“每当我通过 MPV 打开视频/音频时,它应该默认静音”。
我试图添加cycle mute
到input.conf
文件的最后一行。
但它没有用。
有时我mpv
用来播放.mpd文件。这些是本地文件或流文件。当播放开始时,mpv
检测最高的视频分辨率和音频质量并开始使用它们。
例如,这是连接到流式传输的.mpd文件时出现在终端窗口中的内容:
Video --vid=1 'bitrate 499950' (h264 640x360 600.000fps)
Video --vid=2 'bitrate 999965' (h264 768x432 600.000fps)
Video --vid=3 'bitrate 1999931' (h264 1280x720 600.000fps)
Video --vid=4 'bitrate 2999896' (h264 1920x1080 600.000fps)
(+) Video --vid=5 'bitrate 3999862' (h264 1920x1080 600.000fps)
Audio --aid=1 'bitrate 96000' (aac 2ch 48000Hz)
Audio --aid=2 'bitrate 128000' (aac 2ch 48000Hz)
Audio --aid=3 'bitrate 192000' (aac 2ch 48000Hz)
Audio --aid=4 'bitrate 256000' (aac 2ch 48000Hz)
(+) Audio --aid=5 'bitrate 320000' (aac 2ch 48000Hz)
Using hardware decoding (vaapi).
AO: [pulse] 48000Hz stereo 2ch float
VO: [gpu] 1920x1080 vaapi[nv12]
AV: 00:00:13 / 01:36:50 (0%) A-V: 0.000 Dropped: 1 Cache: 61s/33MB
加号显示自动选择的视频和音频。
是否有任何方法或命令可以告诉mpv
使用特定的视频分辨率和音频质量而不是自动检测到的?
谢谢你。
我设法通过添加visibility=always
到.mpv 将 mpv 的进度条设置为始终可见~/.config/mpv/script-opts/osc.conf
。但是,该栏遮挡了视频的一部分。
有没有办法调整视频区域的大小,使其不被条覆盖(如在 VLC 中)?
我在手册中找到了--window-scale
,--autofit
及其变体,但它们都没有解决我的问题,它们只改变了窗口大小。
我会在 lubuntu 20.04 中尝试使用mpv_thumbnail_script 我的配置来制作这个脚本
cat .config/mpv/lua-settings/mpv_thumbnail_script.conf
#Für Vorschaubildchein in mpv
cache_directory=/home/alex/mpv/my_mpv_thumbnails
autogenerate=yes
prefer_mpv=yes
mpv_no_sub=yes
disable_keybinds=yes
thumbnail_width=200
thumbnail_height=200
thumbnail_network=no
thumbnail_count=150
min_delta=5
max_delta=90
我的mpv配置
cat .config/mpv/config
#hwdec=vdpau
#vo=vdpau
fullscreen
sub-scale=1
osc=no
但是当我启动 mpv 时,缩略图是黑色的。
从终端开始
mpv jd2/downloads/Aang\ \&\ Tenzin\ -\ Clip_\ Avatar\ The\ Legend\ of\ Korra/Aang\ \&\ Tenzin\ -\ Clip_\ Avatar\ The\ Legend\ of\ Korra\ \(360p\).mp4
[mpv_thumbnail_script_server] lua-settings/ is deprecated, use directory script-opts/
[mpv_thumbnail_script_client_osc] lua-settings/ is deprecated, use directory script-opts/
(+) Video --vid=1 (*) (h264 624x352 24.000fps)
(+) Audio --aid=1 --alang=eng (*) (aac 2ch 44100Hz)
[vaapi] libva: /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so init failed
Using hardware decoding (vaapi).
AO: [pulse] 44100Hz stereo 2ch float
VO: [gpu] 624x352 vaapi[nv12]
AV: 00:00:00 / 00:01:29 (0%) A-V: 0.000
[mpv_thumbnail_script_client_osc] The 'tick' event is deprecated and will be removed.
AV: 00:00:00 / 00:01:29 (0%) A-V: 0.000
[mpv_thumbnail_script_server] Thumbnailing command failed!
[mpv_thumbnail_script_server] mpv process error: nil
[mpv_thumbnail_script_server] Process stdout:
[mpv_thumbnail_script_server] Debug log: /home/alex/mpv/my_mpv_thumbnails/Aang Tenzin - Clip_ Avatar The Legend of Korra 360p-3829920/000000.bgra.log
[mpv_thumbnail_script_server] Output file missing! /home/alex/mpv/my_mpv_thumbnails/Aang Tenzin - Clip_ Avatar The Legend of Korra 360p-3829920/000000.bgra
(Paused) AV: 00:01:29 / 00:01:29 (100%) A-V: 0.000
Exiting... (End of file) # here dies mpv
[mpv_thumbnail_script_client_osc]
[mpv_thumbnail_script_client_osc] stack traceback:
[mpv_thumbnail_script_client_osc] .../.config/mpv/scripts/mpv_thumbnail_script_client_osc.lua:1080: in function 'prop'
[mpv_thumbnail_script_client_osc] mp.defaults:392: in function 'handler'
[mpv_thumbnail_script_client_osc] mp.defaults:486: in function 'call_event_handlers'
[mpv_thumbnail_script_client_osc] mp.defaults:520: in function 'dispatch_events'
[mpv_thumbnail_script_client_osc] mp.defaults:479: in function <mp.defaults:478>
[mpv_thumbnail_script_client_osc] [C]: in ?
[mpv_thumbnail_script_client_osc] [C]: in ?
[mpv_thumbnail_script_client_osc] Lua error: .../.config/mpv/scripts/mpv_thumbnail_script_client_osc.lua:1080: attempt to compare nil with number
我不确定,如果我犯了错误,或者脚本本身有问题。
注意:我不会写脚本。我发现了这个问题并按照答案中的链接进行操作,但我不知道我必须做什么。
Laptop Dell inspiron 15 3000
RAM: 16 GB
SSD 480 GB Kingston
Intel Core i3 7th Generation
OS: Ubuntu 18.04 with Software and System Updates
Web Browser: Mozilla Firefox, Google Chrome, Palemoon. All latest.
Terminal emulator: Yakuake, gnome-terminal.
Other Terminal: TTY1
Internet service provider connection speed: 100 Mbps (asymmetric)
就在最近,我运行了 sudo apt upgrade 以便从终端升级我的软件。在此之前,一切都很好。我能够播放带有视频和音频的视频。并且 mkv 文件用于顺利运行,允许在文件中选择任何语言/字幕或任何其他选项。
我mpv
用来播放我的 mkv 和其他格式的文件,如 ogv、mpg、mpeg2、mp4 等。
升级系统中的所有软件后,我开始使用这种屏幕而不是视频本身。
其他视频播放器也有类似的行为,几秒钟后变得无响应并引发高处理器负载,但似乎他们正在寻找编解码器、插件或其他东西以做好工作,但他们没有达到。
似乎是我可以播放此视频的唯一方法,但存在一些错误,例如错误的视频持续时间。
geppettvs@DM4:~/Peliculas$ mplayer BIRDS\ OF\ PREY.2020.WEB-DL.1080P-Ignacio\ Hd.mkv
MPlayer 1.3.0 (Debian), built with gcc-7 (C) 2000-2016 MPlayer Team
do_connect: could not connect to socket
connect: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Playing BIRDS OF PREY.2020.WEB-DL.1080P-Ignacio Hd.mkv.
libavformat version 57.83.100 (external)
libavformat file format detected.
[lavf] stream 0: video (h264), -vid 0, Ignacio Hd
[lavf] stream 1: audio (ac3), -aid 0, -alang spa, Ignacio Hd
[lavf] stream 2: audio (ac3), -aid 1, -alang eng, Ignacio Hd
[lavf] stream 3: subtitle (srt), -sid 0, -slang spa, Ignacio Hd
[lavf] stream 4: video (mjpeg), -vid 1
[lavf] stream 5: video (mjpeg), -vid 2
VIDEO: [H264] 1920x802 0bpp 23.976 fps 0.0 kbps ( 0.0 kbyte/s)
Failed to open VDPAU backend libvdpau_va_gl.so: cannot open shared object file: No such file or directory
[vdpau] Error when calling vdp_device_create_x11: 1
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 57.107.100 (external)
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
Clip info:
title: Aves de Presa (y la Fantabulosa Emancipación de Harley Quinn) (2020) Latino HD WEB-DL 1080P - LatinoMegaHD
encoder: libebml v1.3.0 + libmatroska v1.4.1
creation_time: 2020-03-24T06:43:53.000000Z
Load subtitles in ./
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, floatle, 256.0 kbit/8.33% (ratio: 32000->384000)
Selected audio codec: [ffac3] afm: ffmpeg (FFmpeg AC-3)
==========================================================================
AO: [pulse] 48000Hz 2ch floatle (4 bytes per sample)
Starting playback...
Movie-Aspect is 2.39:1 - prescaling to correct movie aspect.
VO: [xv] 1920x802 => 1920x802 Planar YV12
A: 9.8 V: 9.8 A-V: 0.000 ct: 0.042 0/ 0 38% 1% 0.7% 0 0
Exiting... (Quit)
[mié mar 25 08:08:44 CST 2020] geppettvs@DM4:~/Peliculas$ mplayer BIRDS\ OF\ PREY.2020.WEB-DL.1080P-Ignacio\ Hd.mkv
MPlayer 1.3.0 (Debian), built with gcc-7 (C) 2000-2016 MPlayer Team
do_connect: could not connect to socket
connect: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Playing BIRDS OF PREY.2020.WEB-DL.1080P-Ignacio Hd.mkv.
libavformat version 57.83.100 (external)
libavformat file format detected.
[lavf] stream 0: video (h264), -vid 0, Ignacio Hd
[lavf] stream 1: audio (ac3), -aid 0, -alang spa, Ignacio Hd
[lavf] stream 2: audio (ac3), -aid 1, -alang eng, Ignacio Hd
[lavf] stream 3: subtitle (srt), -sid 0, -slang spa, Ignacio Hd
[lavf] stream 4: video (mjpeg), -vid 1
[lavf] stream 5: video (mjpeg), -vid 2
VIDEO: [H264] 1920x802 0bpp 23.976 fps 0.0 kbps ( 0.0 kbyte/s)
Failed to open VDPAU backend libvdpau_va_gl.so: cannot open shared object file: No such file or directory
[vdpau] Error when calling vdp_device_create_x11: 1
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 57.107.100 (external)
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
Clip info:
title: Aves de Presa (y la Fantabulosa Emancipación de Harley Quinn) (2020) Latino HD WEB-DL 1080P - LatinoMegaHD
encoder: libebml v1.3.0 + libmatroska v1.4.1
creation_time: 2020-03-24T06:43:53.000000Z
Load subtitles in ./
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, floatle, 256.0 kbit/8.33% (ratio: 32000->384000)
Selected audio codec: [ffac3] afm: ffmpeg (FFmpeg AC-3)
==========================================================================
AO: [pulse] 48000Hz 2ch floatle (4 bytes per sample)
Starting playback...
Movie-Aspect is 2.39:1 - prescaling to correct movie aspect.
VO: [xv] 1920x802 => 1920x802 Planar YV12
A: 15.5 V: 15.5 A-V: 0.000 ct: 0.042 0/ 0 36% 1% 0.6% 0 0
Exiting... (Quit)
mpv 0.27.2 (C) 2000-2017 mpv/MPlayer/mplayer2 projects
built on UNKNOWN
ffmpeg library versions:
libavutil 55.78.100
libavcodec 57.107.100
libavformat 57.83.100
libswscale 4.8.100
libavfilter 6.107.100
libswresample 2.9.100
ffmpeg version: 3.4.6-0ubuntu0.18.04.
这是smplayer
同一个视频,您会注意到一些奇怪的伪影而不是视频。
This is SMPlayer v. 19.10.2 (revision 9245) running on Linux
VLC 显示黑屏和从左到右的一条线,例如搜索正确的视频编解码器或其他东西,几秒钟后变得无响应。
VLC media player 3.0.8 Vetinari (revision 3.0.8-0-gf350b6b5a7)
VLC version 3.0.8 Vetinari (3.0.8-0-gf350b6b5a7)
Compiled by buildd on lcy01-amd64-014.buildd (Sep 11 2019 11:39:37)
Compiler: gcc version 7.4.0 (Ubuntu 7.4.0-1ubuntu1~18.04.1)
This program comes with NO WARRANTY, to the extent permitted by law.
You may redistribute it under the terms of the GNU General Public License;
see the file named COPYING for details.
Written by the VideoLAN team; see the AUTHORS file.
ffmpeg version 3.4.6-0ubuntu0.18.04.1 Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 7 (Ubuntu 7.3.0-16ubuntu3)
configuration: --prefix=/usr --extra-version=0ubuntu0.18.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
libavutil 55. 78.100 / 55. 78.100
libavcodec 57.107.100 / 57.107.100
libavformat 57. 83.100 / 57. 83.100
libavdevice 57. 10.100 / 57. 10.100
libavfilter 6.107.100 / 6.107.100
libavresample 3. 7. 0 / 3. 7. 0
libswscale 4. 8.100 / 4. 8.100
libswresample 2. 9.100 / 2. 9.100
libpostproc 54. 7.100 / 54. 7.100
Parole Media Player 1.0.1
totem 3.26.0
正如@nobody 所问,我检查libvdpau-va-gl1
了我的系统中是否安装了它,结果我没有它。
安装后,我尝试打开视频文件,导致布局更干净,但到目前为止还没有完整的视频。
非常感谢您愿意提供帮助。
geppettvs@DM4:~$ dpkg -l | grep gstreamer
ii gir1.2-gstreamer-1.0:amd64 1.14.5-0ubuntu1~18.04.1 amd64 GObject introspection data for the GStreamer library
ii gstreamer-qapt 3.0.4-0ubuntu1 amd64 GStreamer plugin to install codecs using QApt
ii gstreamer1.0-adapter-pulseeffects:amd64 4.7.2-3~bionic2 amd64 Gstreamer adapter
ii gstreamer1.0-alsa:amd64 1.14.5-0ubuntu1~18.04.1 amd64 GStreamer plugin for ALSA
ii gstreamer1.0-autogain-pulseeffects:amd64 4.7.2-3~bionic2 amd64 Gstreamer crystalizer
ii gstreamer1.0-clutter-3.0:amd64 3.0.26-1 amd64 Clutter PLugin for GStreamer 1.0
ii gstreamer1.0-convolver-pulseeffects:amd64 4.7.2-3~bionic2 amd64 Gstreamer convolver
ii gstreamer1.0-crystalizer-pulseeffects:amd64 4.7.2-3~bionic2 amd64 Gstreamer crystalizer
ii gstreamer1.0-fluendo-mp3:amd64 0.10.32.debian-1 amd64 Fluendo mp3 decoder GStreamer 1.0 plugin
ii gstreamer1.0-gl:amd64 1.14.5-0ubuntu1~18.04.1 amd64 GStreamer plugins for GL
ii gstreamer1.0-gtk3:amd64 1.14.5-0ubuntu1~18.04.1 amd64 GStreamer plugin for GTK+3
ii gstreamer1.0-libav:amd64 1.14.5-0ubuntu1~18.04.1 amd64 libav plugin for GStreamer
ii gstreamer1.0-nice:amd64 0.1.14-1 amd64 ICE library (GStreamer plugin)
ii gstreamer1.0-packagekit 1.1.9-1ubuntu2.18.04.5 amd64 GStreamer plugin to install codecs using PackageKit
ii gstreamer1.0-plugins-bad:amd64 1.14.5-0ubuntu1~18.04.1 amd64 GStreamer plugins from the "bad" set
ii gstreamer1.0-plugins-base:amd64 1.14.5-0ubuntu1~18.04.1 amd64 GStreamer plugins from the "base" set
ii gstreamer1.0-plugins-base:i386 1.14.5-0ubuntu1~18.04.1 i386 GStreamer plugins from the "base" set
ii gstreamer1.0-plugins-base-apps 1.14.5-0ubuntu1~18.04.1 amd64 GStreamer helper programs from the "base" set
ii gstreamer1.0-plugins-good:amd64 1.14.5-0ubuntu1~18.04.1 amd64 GStreamer plugins from the "good" set
ii gstreamer1.0-plugins-ugly:amd64 1.14.5-0ubuntu1~18.04.1 amd64 GStreamer plugins from the "ugly" set
ii gstreamer1.0-pulseaudio:amd64 1.14.5-0ubuntu1~18.04.1 amd64 GStreamer plugin for PulseAudio
ii gstreamer1.0-tools 1.14.5-0ubuntu1~18.04.1 amd64 Tools for use with GStreamer
ii gstreamer1.0-x:amd64 1.14.5-0ubuntu1~18.04.1 amd64 GStreamer plugins for X11 and Pango
ii libgstreamer-gl1.0-0:amd64 1.14.5-0ubuntu1~18.04.1 amd64 GStreamer GL libraries
ii libgstreamer-plugins-bad1.0-0:amd64 1.14.5-0ubuntu1~18.04.1 amd64 GStreamer libraries from the "bad" set
ii libgstreamer-plugins-base1.0-0:amd64 1.14.5-0ubuntu1~18.04.1 amd64 GStreamer libraries from the "base" set
ii libgstreamer-plugins-base1.0-0:i386 1.14.5-0ubuntu1~18.04.1 i386 GStreamer libraries from the "base" set
ii libgstreamer-plugins-good1.0-0:amd64 1.14.5-0ubuntu1~18.04.1 amd64 GStreamer development files for libraries from the "good" set
ii libgstreamer1.0-0:amd64 1.14.5-0ubuntu1~18.04.1 amd64 Core GStreamer libraries and elements
ii libgstreamer1.0-0:i386 1.14.5-0ubuntu1~18.04.1 i386 Core GStreamer libraries and elements
ii libreoffice-avmedia-backend-gstreamer 1:6.0.7-0ubuntu0.18.04.10 amd64 GStreamer backend for LibreOffice
ii phonon-backend-gstreamer:amd64 4:4.9.0-1 amd64 Phonon GStreamer 1.0 backend
ii phonon-backend-gstreamer-common:amd64 4:4.9.0-1 amd64 Phonon GStreamer 1.0.x backend icons
ii phonon4qt5-backend-gstreamer:amd64 4:4.9.0-1 amd64 Phonon Qt5 GStreamer 1.0 backend
我目前正在使用带有统一 DE 的 Ubuntu 19.10,并且我总是用来mpv
在 Ubuntu 中播放视频。由于mpv
GUI 选项很少,因此没有用于旋转视频的 GUI 选项,但我们可以在命令行的帮助下旋转它。例如,我们可以使用以下命令将视频旋转 90 度:
mpv --video-rotate=90 /home/guest/new_vdo.mp4
但是,通过这种方式(使用终端),我每次想要旋转视频时都必须输入命令。
我们如何创建键盘快捷键来旋转当前正在播放的视频mpv
?
我使用了多个依赖于 ffmpeg 的工具,其中一些工具已经从软件包存储库中提供的那个下载了不同版本的 ffmpeg(例如,mpv 和通过 imageio 的moviepy)。这些程序的单独 ffmpeg 二进制文件没有相互干扰,但我遇到了与不同版本之间的一些不一致有关的困难。
我的问题是:如何找到我系统上存在的不同版本的 ffmpeg(除了 ubuntu 包),以便我可以将所有内容指向最新版本的二进制文件(在我的情况下,ffmpeg 与 mpv 一起运行) ?
谢谢!
Gnome-MPV 和 MPV 播放器共享名称 MPV。那么它们之间有什么区别呢?