AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 1460940
Accepted
Usermaxn
Usermaxn
Asked: 2023-03-26 08:09:49 +0800 CST2023-03-26 08:09:49 +0800 CST 2023-03-26 08:09:49 +0800 CST

MPV保存状态位置在哪里?

  • 772

使用or +时在哪里mpv保存或记录状态?--save-position-on-quitShiftq

这用于保存退出状态,以便视频在退出时从中断的地方开始播放mpv。

mpv-media-player
  • 1 1 个回答
  • 79 Views

1 个回答

  • Voted
  1. Best Answer
    andrew.46
    2023-03-26T15:25:08+08:002023-03-26T15:25:08+08:00

    在我的 mpv 副本上:

    andrew@ilium~$ mpv --version | head -n 1
    mpv 0.35.0-255-g16f0cd546d Copyright © 2000-2023 mpv/MPlayer/mplayer2 projects
    

    “已保存”退出状态写在一个简单的文本文件中,格式为 $HOME/.config/mpv/watch_later. 一个例子是:

    andrew@ilium~/.config/mpv/watch_later$ ls
    3F33858724ABD9E42AB6EDA66A77E92D
    andrew@ilium~/.config/mpv/watch_later$ cat 3F33858724ABD9E42AB6EDA66A77E92D 
    start=15.807474
    andrew@ilium~/.config/mpv/watch_later$ 
    

    我注意到手册页对此提供了一些明确的细节,如下所示:

    ~/.config/mpv/watch_later/
    
    Contains  temporary  config  files  needed  for resuming playback
    of files with the watch later feature. See for example the Q key 
    binding, or  the  quit-watch-later input command.
    
    Each file is a small config file which is loaded if the corresponding
    media file is loaded. It contains the playback position and some
    (not necessarily  all)  settings that  were changed during playback.
    The filenames are hashed from the full paths of the media files. It's
    in general not possible to extract the  media  filename  from this
    hash. However, you can set the --write-filename-in-watch-later-config
    option, file.
    

    那里提到的选项--write-filename-in-watch-later-config似乎也很值得探索;在我的系统上这个命令:

    mpv --save-position-on-quit --write-filename-in-watch-later-config test.avi 
    

    给出以下结果:

    andrew@ilium~/.config/mpv/watch_later$ cat 3F33858724ABD9E42AB6EDA66A77E92D 
    # test.avi
    start=26.067734
    andrew@ilium~/.config/mpv/watch_later$ 
    

    将这些选项添加到mpv.conf 文件是个好主意,就像我在自己的系统上所做的那样……

    • 4

相关问题

  • 使用剪贴板作为参数从 .desktop 条目启动 mpv

  • GNOME 系统监视器和顶部显示不同的 CPU 使用率

  • 防止mpv最大化打开

  • 在 Ubuntu 17.10 中更改 mpv 媒体播放器的屏幕截图目录

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve