You are not logged in.

#1 2024-03-22 08:56:23

abarbarian
Member
Registered: 2012-03-11
Posts: 30

MPV screenshot problem ---SOLVED---

I am trying to get mpv screen shots to save to a customized folder.

I have a fresh install of Arch and the few programs I have installed all seem to work ok.

At the moment if I take a screenshot no matter what I have in my mpv.conf the screenshot goes to /tmp and is overwritten if I take another screenshot.

In the mpv.conf I have tried the advice in the Arch Wiki,

This did not work

profile=myprofile      #Top level area, load myprofile
ontop=yes                 #Always on top

 

[myprofile]              #A simple profile, top level area ends here
screenshot-directory=/home/myuser/Screenshots/mpv-screenshots
screenshot-template="%F - [%P] (%#01n)"

The profile shows up correctly if I do -- (or any of the variants to the screenshot directory)

 Put brain in gear before pressing enter-->08:48:04-->Fri Mar 22-->~
-->mpv --show-profile=myprofile
Profile myprofile: 
 screenshot-directory=/home/myuser/Screenshots/mpv-screenshots/
 screenshot-template=%F - [%P] (%#01n)
 vo=gpu
 profile=gpu-hq
  profile=high-quality
   scale=ewa_lanczossharp
   hdr-peak-percentile=99.995
   hdr-contrast-recovery=0.30
   deband=yes
 hwdec=auto
 hwdec-codecs=all
 scale=ewa_lanczossharp
 cscale=ewa_lanczossharp
 video-sync=display-resample
 interpolation=
 tscale=oversample
 keepaspect=no
 stop-screensaver=yes
 save-position-on-quit=yes
 ao=pulse
 sub-bold=yes
 audio-device=alsa/iec958:CARD=PCH,DEV=0'

Altering the screenshot-directory= to

/Screenshots/mpv-screenshots
/Screenshots/mpv-screenshots/
Screenshots/mpv-screenshots
Screenshots/mpv-screenshots/

did not work

Just adding

screenshot-directory=/home/myuser/Screenshots/mpv-screenshots
screenshot-template="%F - [%P] (%#01n)"

or any of the variations did not work.

So can anyone point me in the right direction.

Thanks.

Last edited by abarbarian (2024-03-23 17:58:43)

Offline

#2 2024-03-22 09:53:33

seth
Member
Registered: 2012-09-03
Posts: 60,287

Re: MPV screenshot problem ---SOLVED---

At the moment if I take a screenshot no matter what I have in my mpv.conf the screenshot goes to /tmp and is overwritten if I take another screenshot.

This isn't the default behavior (goes to $PWD and the files are enumerated), there's probably some config overwriting your stuff?
Did you try to start mpv from an interactive shell to see whether there're any errors?
Does an explicit "mpv --profile=myprofile someporn.mp4" work?

Edit: are the files you're trying to shot local or some remote url?

Last edited by seth (2024-03-22 09:54:43)

Offline

#3 2024-03-22 15:50:26

abarbarian
Member
Registered: 2012-03-11
Posts: 30

Re: MPV screenshot problem ---SOLVED---

seth wrote:

At the moment if I take a screenshot no matter what I have in my mpv.conf the screenshot goes to /tmp and is overwritten if I take another screenshot.

This isn't the default behavior (goes to $PWD and the files are enumerated), there's probably some config overwriting your stuff?
Did you try to start mpv from an interactive shell to see whether there're any errors?
Does an explicit "mpv --profile=myprofile someporn.mp4" work?

Edit: are the files you're trying to shot local or some remote url?

With this in mpv.conf

profile=myprofile       #Top level area, load myprofile
ontop=yes                 #Always on top

[myprofile]              #A simple profile, top level area ends here
screenshot-directory=/home/myuser/Screenshots/mpv-screenshots/
screenshot-template="%F - [%P] (%#01n)"

I can start a video from the cli

-->mpv --profile=myprofile '[Cleo]God_Eater_-_01_(Dual Audio_10bit_BD720p_x265).mkv'

The video runs ok. However when I try to take a screenshot I get this

Screenshot: '/tmp/mpv-screenshot.jpeg'                  
Starting subprocess failed: init
Screenshot: '/tmp/mpv-screenshot.jpeg'                   
Starting subprocess failed: init

The screenshot goes to /tmp and gets overwritten as before.

Last edited by abarbarian (2024-03-23 11:02:49)

Offline

#4 2024-03-22 15:54:45

seth
Member
Registered: 2012-09-03
Posts: 60,287

Re: MPV screenshot problem ---SOLVED---

What's not the default behavior (unless it very recently changed)

type mpv
strace mpv '[Cleo]God_Eater_-_01_(Dual Audio_10bit_BD720p_x265).mkv' 2>&1 | grep conf

Offline

#5 2024-03-23 11:01:35

abarbarian
Member
Registered: 2012-03-11
Posts: 30

Re: MPV screenshot problem ---SOLVED---

seth wrote:

What's not the default behavior (unless it very recently changed)

type mpv
strace mpv '[Cleo]God_Eater_-_01_(Dual Audio_10bit_BD720p_x265).mkv' 2>&1 | grep conf

Hi thanks for your time. I do not understand your reply. Yes my behaviour is definitely not default. ;-)

I tried mpv like this

  Put brain in gear before pressing enter-->10:48:06-->Sat Mar 23-->GodEater
-->mpv --profile=myprofile -v --log-file=./log '[Cleo]God_Eater_-_01_(Dual Audio_10bit_BD720p_x265).mkv'

and found this amongst the output

[cplayer] Setting option 'ontop' = 'yes' (flags = 4)
[cplayer] Setting option 'profile' = 'myprofile' (flags = 8)
[cplayer] Applying profile 'myprofile'...
[cplayer] Setting option 'screenshot-directory' = '/home/myuser/Screenshots/mpv-screenshots/' (flags = 12)
[cplayer] Setting option 'screenshot-format' = 'jpg' (flags = 12)
[cplayer] Setting option 'screenshot-template' = '%F - [%P] (%#01n)' (flags = 12)

so it looks like mpv is trying to do the right thing. The screenshots are still going to /tmp.

My problem would seem to lie in some basic setting in the fresh install. I followed the Arch Install guide as closely as I could and only did the bare minimum so am baffled as to what is wrong. ;-(

Last edited by abarbarian (2024-03-23 11:05:25)

Offline

#6 2024-03-23 13:36:28

spiffeeroo
Member
Registered: 2021-04-23
Posts: 23

Re: MPV screenshot problem ---SOLVED---

Mpv is really particular about paths since they are not equivalent with shell paths. "~/" is similar to $HOME whereas "~~home/" is "~/.config/mpv/". (Using shell variables like $HOME in path does not work well in mpv.)

Read the snippet here: https://mpv.io/manual/master/#paths

Thus for your example, the screenshot path should be:

screenshot-directory = ~/Screenshots/mpv-screenshots/

Last edited by spiffeeroo (2024-03-24 07:33:13)

Offline

#7 2024-03-23 13:56:48

seth
Member
Registered: 2012-09-03
Posts: 60,287

Re: MPV screenshot problem ---SOLVED---

The OP is providing a canonical, absolute path, though.
Also nothing indicates /tmp and this would also still not explain the filenames.

@abarbarian, does the log show more?

The purpose of the two commands was
a) figure whether mpv is maybe  an alias or a script that overrides the config w/ some commandline switches
b) see what other config files mpv might be opening

Offline

#8 2024-03-23 16:13:59

abarbarian
Member
Registered: 2012-03-11
Posts: 30

Re: MPV screenshot problem ---SOLVED---

seth wrote:

The OP is providing a canonical, absolute path, though.
Also nothing indicates /tmp and this would also still not explain the filenames.

@abarbarian, does the log show more?

The purpose of the two commands was
a) figure whether mpv is maybe  an alias or a script that overrides the config w/ some commandline switches
b) see what other config files mpv might be opening


a) returns - mpv is /usr/bin/mpv
b) returns - nothing at all no matter where I run it from, ~/ or /GodEater

-->mpv --profile=myprofile -v --log-file=./log '[Cleo]God_Eater_-_01_(Dual Audio_10bit_BD720p_x265).mkv'                                                        
[cplayer] mpv v0.37.0 Copyright © 2000-2023 mpv/MPlayer/mplayer2 projects
[cplayer]  built on Jan 19 2024 09:09:45
[cplayer] libplacebo version: v6.338.2
[cplayer] FFmpeg version: n6.1.1
[cplayer] FFmpeg library versions:
[cplayer]    libavutil       58.29.100
[cplayer]    libavcodec      60.31.102
[cplayer]    libavformat     60.16.100
[cplayer]    libswscale      7.5.100
[cplayer]    libavfilter     9.12.100
[cplayer]    libswresample   4.12.100
[cplayer] 
[cplayer] Configuration: -Db_lto=true -Db_pie=true -Dpython.bytecompile=1 -Dlibmpv=true -Dcaca=disabled -Dcdda=enabled -Ddvbin=enabled -Ddvdnav=enabled -Dlibarchive=enabled -Dopenal=enabled -Dprefix=/usr -Dlibexecdir=lib -Dsbindir=bin -Dauto_features=auto -Dbuildtype=plain -Dwrap_mode=nodownload
[cplayer] List of enabled features: alsa av-channel-layout avif-muxer build-date cdda cplugins cuda-hwaccel cuda-interop dmabuf-interop-gl dmabuf-wayland drm dvbin dvdnav egl egl-drm egl-helpers egl-wayland egl-x11 ffmpeg ffnvcodec gbm gl glibc-thread-name glob glob-posix gpl iconv jack javascript jpeg jpegxl lavu-uuid lcms2 libarchive libass libavdevice libbluray libdl libm libplacebo librt linux-fstatfs luajit manpage-build memfd-create noexecstack openal pipewire posix posix-shm ppoll pulse rubberband rubberband-3 shaderc sixel threads uchardet vaapi vaapi-drm vaapi-wayland vaapi-x11 vapoursynth vdpau vector vk-khr-display vt.h vulkan vulkan-interop wayland wayland-protocols-1-27 wayland-protocols-1-31 wayland-protocols-1-32 x11 xv zimg zimg-st428 zlib
[cplayer] Command line options: '--profile=myprofile' '-v' '--log-file=./log' '[Cleo]God_Eater_-_01_(Dual Audio_10bit_BD720p_x265).mkv'
[cplayer] mpv v0.37.0 Copyright © 2000-2023 mpv/MPlayer/mplayer2 projects
[cplayer]  built on Jan 19 2024 09:09:45
[cplayer] libplacebo version: v6.338.2
[cplayer] FFmpeg version: n6.1.1
[cplayer] FFmpeg library versions:
[cplayer]    libavutil       58.29.100
[cplayer]    libavcodec      60.31.102
[cplayer]    libavformat     60.16.100
[cplayer]    libswscale      7.5.100
[cplayer]    libavfilter     9.12.100
[cplayer]    libswresample   4.12.100
[cplayer] 
[cplayer] Configuration: -Db_lto=true -Db_pie=true -Dpython.bytecompile=1 -Dlibmpv=true -Dcaca=disabled -Dcdda=enabled -Ddvbin=enabled -Ddvdnav=enabled -Dlibarchive=enabled -Dopenal=enabled -Dprefix=/usr -Dlibexecdir=lib -Dsbindir=bin -Dauto_features=auto -Dbuildtype=plain -Dwrap_mode=nodownload
[cplayer] List of enabled features: alsa av-channel-layout avif-muxer build-date cdda cplugins cuda-hwaccel cuda-interop dmabuf-interop-gl dmabuf-wayland drm dvbin dvdnav egl egl-drm egl-helpers egl-wayland egl-x11 ffmpeg ffnvcodec gbm gl glibc-thread-name glob glob-posix gpl iconv jack javascript jpeg jpegxl lavu-uuid lcms2 libarchive libass libavdevice libbluray libdl libm libplacebo librt linux-fstatfs luajit manpage-build memfd-create noexecstack openal pipewire posix posix-shm ppoll pulse rubberband rubberband-3 shaderc sixel threads uchardet vaapi vaapi-drm vaapi-wayland vaapi-x11 vapoursynth vdpau vector vk-khr-display vt.h vulkan vulkan-interop wayland wayland-protocols-1-27 wayland-protocols-1-31 wayland-protocols-1-32 x11 xv zimg zimg-st428 zlib
[cplayer] Reading config file /etc/mpv/encoding-profiles.conf
[ifo_dvdnav] Opening /etc/mpv/encoding-profiles.conf
[bdmv/bluray] Opening /etc/mpv/encoding-profiles.conf
[file] Opening /etc/mpv/encoding-profiles.conf
[cplayer] Applying profile 'default'...
[cplayer] Reading config file /home/bloodaxe/.config/mpv/mpv.conf
[ifo_dvdnav] Opening /home/bloodaxe/.config/mpv/mpv.conf
[bdmv/bluray] Opening /home/bloodaxe/.config/mpv/mpv.conf
[file] Opening /home/bloodaxe/.config/mpv/mpv.conf
[cplayer] Applying profile 'default'...
[cplayer] Setting option 'profile' = 'myprofile' (flags = 4)
[cplayer] Applying profile 'myprofile'...
[cplayer] Setting option 'screenshot-directory' = '~/Screenshots/mpv-screenshots/' (flags = 4)
[cplayer] Setting option 'screenshot-format' = 'jpg' (flags = 4)
[cplayer] Setting option 'screenshot-template' = '%F - [%P] (%#01n)' (flags = 4)
[cplayer] Setting option 'vo' = 'gpu' (flags = 4)
[cplayer] Setting option 'profile' = 'gpu-hq' (flags = 4)
[cplayer] Applying profile 'gpu-hq'...
[cplayer] Setting option 'profile' = 'high-quality' (flags = 4)
[cplayer] Applying profile 'high-quality'...
[cplayer] Setting option 'scale' = 'ewa_lanczossharp' (flags = 4)
[cplayer] Setting option 'hdr-peak-percentile' = '99.995' (flags = 4)
[cplayer] Setting option 'hdr-contrast-recovery' = '0.30' (flags = 4)
[cplayer] Setting option 'deband' = 'yes' (flags = 4)
[cplayer] Setting option 'hwdec' = 'auto' (flags = 4)
[cplayer] Setting option 'hwdec-codecs' = 'all' (flags = 4)
[cplayer] Setting option 'scale' = 'ewa_lanczossharp' (flags = 4)
[cplayer] Setting option 'cscale' = 'ewa_lanczossharp' (flags = 4)
[cplayer] Setting option 'video-sync' = 'display-resample' (flags = 4)
[cplayer] Setting option 'interpolation' = '' (flags = 4)
[cplayer] Setting option 'tscale' = 'oversample' (flags = 4)
[cplayer] Setting option 'keepaspect' = 'no' (flags = 4)
[cplayer] Setting option 'stop-screensaver' = 'yes' (flags = 4)
[cplayer] Setting option 'save-position-on-quit' = 'yes' (flags = 4)
[cplayer] Setting option 'ao' = 'pulse' (flags = 4)
[cplayer] Setting option 'sub-bold' = 'yes' (flags = 4)
[cplayer] Setting option 'audio-device' = 'alsa/iec958:CARD=PCH,DEV=0'' (flags = 4)
[cplayer] Setting option 'ontop' = 'yes' (flags = 4)
[cplayer] Setting option 'profile' = 'myprofile' (flags = 8)
[cplayer] Applying profile 'myprofile'...
[cplayer] Setting option 'screenshot-directory' = '~/Screenshots/mpv-screenshots/' (flags = 12)
[cplayer] Setting option 'screenshot-format' = 'jpg' (flags = 12)
[cplayer] Setting option 'screenshot-template' = '%F - [%P] (%#01n)' (flags = 12)
[cplayer] Setting option 'vo' = 'gpu' (flags = 12)
[cplayer] Setting option 'profile' = 'gpu-hq' (flags = 12)
[cplayer] Applying profile 'gpu-hq'...
[cplayer] Setting option 'profile' = 'high-quality' (flags = 12)
[cplayer] Applying profile 'high-quality'...
[cplayer] Setting option 'scale' = 'ewa_lanczossharp' (flags = 12)
[cplayer] Setting option 'hdr-peak-percentile' = '99.995' (flags = 12)
[cplayer] Setting option 'hdr-contrast-recovery' = '0.30' (flags = 12)
[cplayer] Setting option 'deband' = 'yes' (flags = 12)
[cplayer] Setting option 'hwdec' = 'auto' (flags = 12)
[cplayer] Setting option 'hwdec-codecs' = 'all' (flags = 12)
[cplayer] Setting option 'scale' = 'ewa_lanczossharp' (flags = 12)
[cplayer] Setting option 'cscale' = 'ewa_lanczossharp' (flags = 12)
[cplayer] Setting option 'video-sync' = 'display-resample' (flags = 12)
[cplayer] Setting option 'interpolation' = '' (flags = 12)
[cplayer] Setting option 'tscale' = 'oversample' (flags = 12)
[cplayer] Setting option 'keepaspect' = 'no' (flags = 12)
[cplayer] Setting option 'stop-screensaver' = 'yes' (flags = 12)
[cplayer] Setting option 'save-position-on-quit' = 'yes' (flags = 12)
[cplayer] Setting option 'ao' = 'pulse' (flags = 12)
[cplayer] Setting option 'sub-bold' = 'yes' (flags = 12)
[cplayer] Setting option 'audio-device' = 'alsa/iec958:CARD=PCH,DEV=0'' (flags = 12)
[cplayer] Setting option 'v' = '' (flags = 8)
[cplayer] Setting option 'log-file' = './log' (flags = 8)
[cplayer] Can't load unknown script: /home/bloodaxe/.config/mpv/scripts/autocrop.lua.resting
[cplayer] Waiting for scripts...
[cplayer] Set property: save-position-on-quit="yes" -> 1
[cplayer] Set property: user-data/osc/visibility="auto" -> 1
[cplayer] Set property: user-data/osc/margins={"b":0,"r":0,"l":0,"t":0} -> 1
[cplayer] Done loading scripts.
[cplayer] Resuming playback. This behavior can be disabled with --no-resume-playback.                                                                           
[cplayer] Loading config '/home/bloodaxe/.local/state/mpv/watch_later/54C8F0CFB8711B2D14497FE9955A484E'
[cplayer] Reading config file /home/bloodaxe/.local/state/mpv/watch_later/54C8F0CFB8711B2D14497FE9955A484E
[ifo_dvdnav] Opening /home/bloodaxe/.local/state/mpv/watch_later/54C8F0CFB8711B2D14497FE9955A484E
[bdmv/bluray] Opening /home/bloodaxe/.local/state/mpv/watch_later/54C8F0CFB8711B2D14497FE9955A484E
[file] Opening /home/bloodaxe/.local/state/mpv/watch_later/54C8F0CFB8711B2D14497FE9955A484E
[cplayer] Applying profile 'default'...
[cplayer] Setting option 'start' = '1011.928000' (flags = 36)
[cplayer] Setting option 'volume' = '108.000000' (flags = 36)
[cplayer] Running hook: ytdl_hook/on_load
[ytdl_hook] ytdl:// hook 
[ytdl_hook] not a ytdl:// url 
[cplayer] Set property: video-aspect-override="-1" -> 1
[boxtowide] Aspect-ratio has been reset to default to initialize ratio check.   
[cplayer] Running hook: ytdl_hook/on_load
[boxtowide] Observing aspect-ratio value...                                     
[ytdl_hook] playlist hook 
[cplayer] Set property: user-data/osc/margins={"b":0,"r":0,"l":0,"t":0} -> 1
[ifo_dvdnav] Opening [Cleo]God_Eater_-_01_(Dual Audio_10bit_BD720p_x265).mkv
[bdmv/bluray] Opening [Cleo]God_Eater_-_01_(Dual Audio_10bit_BD720p_x265).mkv
[file] Opening [Cleo]God_Eater_-_01_(Dual Audio_10bit_BD720p_x265).mkv
[demux] Trying demuxers for level=normal.
[cplayer] Set property: user-data/osc/margins={"b":0,"r":0,"l":0,"t":0} -> 1
[osd/libass] libass API version: 0x1701000
[osd/libass] libass source: commit: 0.17.1-0-ge8ad72accd3a84268275a9385beb701c9284e5b3-dirty
[osd/libass] Shaper: FriBidi 1.0.13 (SIMPLE) HarfBuzz-ng 8.3.1 (COMPLEX)
[osd/libass] Setting up fonts...
[autoload] Adding [Cleo]God_Eater_-_02_(Dual Audio_10bit_BD720p_x265).mkv       
[autoload] Adding [Cleo]God_Eater_-_03_(Dual Audio_10bit_BD720p_x265).mkv       
[mkv] New edition 0
[mkv] Default edition flag: 0
[mkv] New edition 1
[mkv] Default edition flag: 0
[mkv] Seeking to 180361136 to read header element 0x1c53bb6b.
[file] stream level seek from 131072 to 180361136
[mkv] Parsing cues...
[mkv] Seeking to 180505095 to read header element 0x1254c367.
[file] stream level seek from 180507136 to 10063
[mkv] All headers are parsed!
[demux] Detected file format: Matroska
[cplayer] Opening done: [Cleo]God_Eater_-_01_(Dual Audio_10bit_BD720p_x265).mkv
[osd/libass] Using font provider fontconfig
[osd/libass] Done.
[find_files] Loading external files in .
[cplayer] Running hook: ytdl_hook/on_preloaded
[mkv] select track 0
[mkv] select track 2
[mkv] select track 3
[cplayer]  (+) --edition=0                                                      
[cplayer]      --edition=1                                                      
[cplayer]  (+) Video --vid=1 (*) (hevc 1280x720 23.976fps)                      
[cplayer]      Audio --aid=1 --alang=jpn (aac 2ch 48000Hz)                      
[cplayer]  (+) Audio --aid=2 --alang=eng (*) (aac 2ch 48000Hz)                  
[cplayer]  (+) Subs  --sid=1 --slang=eng (*) 'Lyrics and Signs' (ass)           
[cplayer]      Subs  --sid=2 --slang=eng 'Dialogue' (ass)                       
[display-tags] File tags:                                                       
[display-tags]  Title: Encoded By Cleo                                          
[vo/gpu] Probing for best GPU context.
[vo/gpu/opengl] Initializing GPU context 'wayland'
[vo/gpu/opengl] Initializing GPU context 'x11egl'
[vo/gpu/x11] X11 opening display: :0
[vo/gpu/x11] Display 0 (DP-4): [0, 0, 2560, 1440] @ 59.950550 FPS
[vo/gpu/x11] Current display FPS: 59.950550
[vo/gpu/opengl] EGL_VERSION=1.5
[vo/gpu/opengl] EGL_VENDOR=NVIDIA
[vo/gpu/opengl] EGL_CLIENT_APIS=OpenGL_ES OpenGL
[vo/gpu/opengl] Trying to create Desktop OpenGL context.
[vo/gpu/opengl] Choosing visual EGL config 0x28, visual ID 0x2b
[vo/gpu/x11] The XPresent extension was found.
[vo/gpu/x11] XPresent disabled.
[vo/gpu/opengl] GL_VERSION='4.4.0 NVIDIA 550.67'
[vo/gpu/opengl] Detected desktop OpenGL 4.4.
[vo/gpu/opengl] GL_VENDOR='NVIDIA Corporation'
[vo/gpu/opengl] GL_RENDERER='NVIDIA GeForce GTX 1070/PCIe/SSE2'
[vo/gpu/opengl] GL_SHADING_LANGUAGE_VERSION='4.40 NVIDIA via Cg compiler'
[vo/gpu/opengl] Loaded extension GL_KHR_debug.
[vo/gpu] Testing FBO format rgba16f
[vo/gpu] Using FBO format rgba16f.
[vo/gpu] Assuming 59.950550 FPS for display sync.
[vd] Container reported FPS: 23.976024
[vd] Codec list:
[vd]     hevc - HEVC (High Efficiency Video Coding)
[vd]     hevc_qsv (hevc) - HEVC video (Intel Quick Sync Video acceleration)
[vd]     hevc_v4l2m2m (hevc) - V4L2 mem2mem HEVC decoder wrapper
[vd]     hevc_cuvid (hevc) - Nvidia CUVID HEVC decoder
[vd] Opening decoder hevc
[vd] Looking at hwdec hevc-nvdec...
[vo/gpu] Loading hwdec drivers for format: 'cuda'
[vo/gpu] Loading hwdec driver 'cuda'
[vd] Trying hardware decoding via hevc-nvdec.
[vd] Selected codec: HEVC (High Efficiency Video Coding)
[vf] User filter list:
[vf]   (empty)
[ad] Codec list:
[ad]     aac - AAC (Advanced Audio Coding)
[ad]     aac_fixed (aac) - AAC (Advanced Audio Coding)
[ad] Opening decoder aac
[ad] Requesting 1 threads for decoding.
[ad] Selected codec: AAC (Advanced Audio Coding)
[af] User filter list:
[af]   (empty)
[sub/ass] libass API version: 0x1701000
[sub/ass] libass source: commit: 0.17.1-0-ge8ad72accd3a84268275a9385beb701c9284e5b3-dirty
[sub/ass] Shaper: FriBidi 1.0.13 (SIMPLE) HarfBuzz-ng 8.3.1 (COMPLEX)
[sub/ass] Setting up fonts...
[sub/ass] Using font provider fontconfig
[sub/ass] Done.
[cplayer] Starting playback...
[mkv] queuing seek to 1011.928000
[mkv] execute seek (to 1011.928000 flags 32)
[cplayer] hr-seek, skipping to 1011.928000
[file] stream level seek from 141135 to 84961045
[mkv] seek done
[history_bookmark] folder -- .                                                  
[history_bookmark] playing -- [Cleo]God_Eater_-_01_(Dual Audio_10bit_BD720p_x265).mkv                                                                           
[history_bookmark] file type -- mkv                                             
[history_bookmark] bookmark path -- ./.mpv.history                              
[history_bookmark] last play: [Cleo]God_Eater_-_01_(Dual Audio_10bit_BD720p_x265).mkv                                                                           
[af] [in] 48000Hz stereo 2ch floatp
[af] [userspeed] 48000Hz stereo 2ch floatp
[af] [userspeed] (disabled)
[af] [convert] 48000Hz stereo 2ch floatp
[history_bookmark] Adding [Cleo]God_Eater_-_01_(Dual Audio_10bit_BD720p_x265).mkv                                                                               
[history_bookmark] Adding [Cleo]God_Eater_-_02_(Dual Audio_10bit_BD720p_x265).mkv                                          
[history_bookmark] playlist index --1                                           
[history_bookmark] current index -- 1                                           
[vd] Pixel formats supported by decoder: vaapi vulkan vdpau cuda yuv420p10le
[vd] Codec profile: Main 10 (0x2)
[vd] Requesting pixfmt 'cuda' from decoder.
[vd] Using hardware decoding (nvdec).                                           
[vd] Decoder format: 1280x720 cuda[p010] auto/auto/auto/limited/auto CL=mpeg2/4/h264 crop=1280x720+0+0
[vd] Using container aspect ratio.
[vf] [in] 1280x720 cuda[p010] bt.709/bt.709/bt.1886/limited/display CL=mpeg2/4/h264 crop=1280x720+0+0
[vf] [userdeint] 1280x720 cuda[p010] bt.709/bt.709/bt.1886/limited/display CL=mpeg2/4/h264 crop=1280x720+0+0
[vf] [userdeint] (disabled)
[vf] [autorotate] 1280x720 cuda[p010] bt.709/bt.709/bt.1886/limited/display CL=mpeg2/4/h264 crop=1280x720+0+0
[vf] [autorotate] (disabled)
[vf] [convert] 1280x720 cuda[p010] bt.709/bt.709/bt.1886/limited/display CL=mpeg2/4/h264 crop=1280x720+0+0
[vo/gpu] Loading hwdec drivers for format: 'cuda'
[vf] [out] 1280x720 cuda[p010] bt.709/bt.709/bt.1886/limited/display CL=mpeg2/4/h264 crop=1280x720+0+0
[osd/libass] libass API version: 0x1701000
[osd/libass] libass source: commit: 0.17.1-0-ge8ad72accd3a84268275a9385beb701c9284e5b3-dirty
[osd/libass] Shaper: FriBidi 1.0.13 (SIMPLE) HarfBuzz-ng 8.3.1 (COMPLEX)
[osd/libass] Setting up fonts...
[osd/libass] Using font provider fontconfig
[osd/libass] Done.
[cplayer] Set property: save-position-on-quit="yes" -> 1
[ao] Trying audio driver 'pulse'
[ao/pulse] requested format: 48000 Hz, stereo channels, floatp
[ao/pulse] Library version: 17.0.0
[ao/pulse] Proto: 35
[ao/pulse] Server proto: 4294967295
[ao/pulse] Channel layouts:
[ao/pulse]  - #fl
[ao/pulse]  - #fr
[ao/pulse]  - #fc
[ao/pulse]  - #lfe
[ao/pulse]  - #bl
[ao/pulse]  - #br
[ao/pulse]  - #flc
[ao/pulse]  - #frc
[ao/pulse]  - #bc
[ao/pulse]  - #sl
[ao/pulse]  - #sr
[ao/pulse]  - #tc
[ao/pulse]  - #tfl
[ao/pulse]  - #tfc
[ao/pulse]  - #tfr
[ao/pulse]  - #tbl
[ao/pulse]  - #tbc
[ao/pulse]  - #tbr
[ao/pulse] result: stereo
[ao/pulse] device buffer: 4800 samples.
[ao/pulse] using soft-buffer of 9600 samples.
[cplayer] AO: [pulse] 48000Hz stereo 2ch float                                  
[cplayer] AO: Description: PulseAudio audio output
[autoconvert] inserting resampler
[swresample] format change, reinitializing resampler
[swresample] 48000Hz stereo floatp -> 48000Hz stereo float
[af] [out] 48000Hz stereo 2ch float
[boxtowide] Aspect-ratio unchanged, video is not 4:3. 
[boxtowide] Finished check, script no longer running. 
[cplayer] Set property: user-data/osc/margins={"b":0,"r":0,"l":0,"t":0} -> 1
[cplayer] VO: [gpu] 1280x720 cuda[p010]
[cplayer] VO: Description: Shader-based GPU Renderer
[vo/gpu] reconfig to 1280x720 cuda[p010] bt.709/bt.709/bt.1886/limited/display CL=mpeg2/4/h264 crop=1280x720+0+0
[vo/gpu/x11] NET style stay on top (1). Using state _NET_WM_STATE_ABOVE.
[vo/gpu] Resize: 1280x720
[vo/gpu] Window size: 1280x720 (Borders: l=0 t=0 r=0 b=0)
[vo/gpu] Video source: 1280x720 (1:1)
[vo/gpu] Video display: (0, 0) 1280x720 -> (0, 0) 1280x720
[vo/gpu] Video scale: 1.000000/1.000000
[vo/gpu] OSD borders: l=0 t=0 r=0 b=0
[vo/gpu] Video borders: l=0 t=0 r=0 b=0
[vo/gpu] Reported display depth: 8
[vo/gpu] Testing FBO format rgba16f
[vo/gpu] Using FBO format rgba16f.
[vo/gpu] Dither to 8.
[cplayer] first video frame after restart shown
[cplayer] audio ready
[cplayer] starting audio playback
[cplayer] playback restart complete @ 1011.928000, audio=playing, video=playing
[ao/pulse] starting AO
[cplayer] Change display sync audio drift: -1
[cplayer] Set property: user-data/osc/margins={"b":0,"r":0,"l":0,"t":0} -> 1
[cplayer] Set property: user-data/osc/margins={"b":0,"r":0,"l":0,"t":0} -> 1
[vo/gpu/x11] Disabling screensaver.                              
[cplayer] Change display sync audio drift: 0                          
[cplayer] Set property: user-data/osc/margins={"b":0,"r":0,"l":0,"t":0} -> 1
[osd/libass] fontselect: (sans-serif, 400, 0) -> /usr/share/fonts/TTF/DejaVuSans.ttf, 0, DejaVuSans
[osd/libass] fontselect: (mpv-osd-symbols, 400, 0) -> mpv-osd-symbols-Regular, 0, mpv-osd-symbols-Regular
[vo/gpu] Reallocating OSD texture to 2048x256.                   
[cplayer] Set property: user-data/osc/margins={"b":0,"r":0,"l":0,"t":0} -> 1
[cplayer] Starting screenshot: '/tmp/mpv-screenshot.jpeg'             
[screenshot] using 11 threads for scaling
[screenshot] Using zimg.                                              
[cplayer] Screenshot: '/tmp/mpv-screenshot.jpeg'                      
[cplayer] Starting subprocess failed: init                            
[osd/libass] libass API version: 0x1701000                            
[osd/libass] libass source: commit: 0.17.1-0-ge8ad72accd3a84268275a9385beb701c9284e5b3-dirty
[osd/libass] Shaper: FriBidi 1.0.13 (SIMPLE) HarfBuzz-ng 8.3.1 (COMPLEX)
[osd/libass] Setting up fonts...
[osd/libass] Using font provider fontconfig                           
[osd/libass] Done.
[osd/libass] fontselect: (sans-serif, 400, 0) -> /usr/share/fonts/TTF/DejaVuSans.ttf, 0, DejaVuSans
[vo/gpu] Reallocating OSD texture to 1024x128.                        
[cplayer] Saving state.                                               
[cplayer] EOF code: 5                                            
[cplayer] Running hook: history_bookmark/on_unload               
[cplayer] finished playback, success (reason 3)                  
[cplayer] Exiting... (Quit)
[vo/gpu/x11] Enabling screensaver.                               
 Put brain in gear before pressing enter-->16:08:38-->Sat Mar 23-->GodEater
-->

There is quite a lot of it. ;-)

I changed the path for "screenshot-directory=~/Screenshots/mpv-screenshots/" but it made no difference.

Last edited by abarbarian (2024-03-23 16:15:58)

Offline

#9 2024-03-23 16:23:59

seth
Member
Registered: 2012-09-03
Posts: 60,287

Re: MPV screenshot problem ---SOLVED---

Do you lack strace "type strace"?
Otherwise this would not be possible.

[cplayer] Setting option 'screenshot-directory' = '~/Screenshots/mpv-screenshots/' (flags = 12)

Did you just change that or have you always used the "~" alias?

[cplayer] Can't load unknown script: /home/bloodaxe/.config/mpv/scripts/autocrop.lua.resting

What referneces that?

What are the outputs of

stat ~/Screenshots/mpv-screenshots/
cat /home/bloodaxe/.local/state/mpv/watch_later/54C8F0CFB8711B2D14497FE9955A484E

Last edited by seth (2024-03-23 16:24:45)

Offline

#10 2024-03-23 17:57:33

abarbarian
Member
Registered: 2012-03-11
Posts: 30

Re: MPV screenshot problem ---SOLVED---

seth wrote:

Do you lack strace "type strace"?
Otherwise this would not be possible.

[cplayer] Setting option 'screenshot-directory' = '~/Screenshots/mpv-screenshots/' (flags = 12)

Did you just change that or have you always used the "~" alias?

[cplayer] Can't load unknown script: /home/bloodaxe/.config/mpv/scripts/autocrop.lua.resting

What referneces that?

What are the outputs of

stat ~/Screenshots/mpv-screenshots/
cat /home/bloodaxe/.local/state/mpv/watch_later/54C8F0CFB8711B2D14497FE9955A484E

I did not have strace installed. Installed it and I got tons of output.

I have some lua scripts installed which all seemed to work ok before. One in particular for screenshots this was installed before I knew that mpv had an inbuilt option.  I took this particular lua script out and also changed the mpv.conf, deleted the myuser profile. So now this only contains,

screenshot-directory=~/Screenshots/mpv-screenshots/
screenshot-format=jpg
screenshot-template="%F (%#01n)"

Now pressing " s " gets me a screenshot with subs in ~/Screenshots/mpv-screenshots/, also pressing " S " (capital S) gets me a screenshot without subs in ~/Screenshots/mpv-screenshots/.

So the problem is solved.

screenshot-directory=~/Screenshots/mpv-screenshots/
screenshot-directory=/home/anyuser/Screenshots/mpv-screenshots/

Both work.

Many thanks for all your efforts I could not have solved this without your help. ;-)

Offline

Board footer

Powered by FluxBB