You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When mpv is configured to grasp screenshot to the $PWD plays well with pipe-viewer
When mpv is asked to save the screenshot to a specific location in ~/.config/mpv/mpv.conf
screenshot-template="~/Pictures/screenshots/mpv/%F/%p__%tm-%tY"
local utils = require("mp.utils")
local basedir = mp.get_property("options/screenshot-directory")
mp.register_event("file-loaded", function()
local filedir = mp.get_property("filename/no-ext")
local dir = utils.join_path(basedir, filedir)
mp.set_property("options/screenshot-directory", dir)
end)
mpv standalone (outside `pipe-viewer) captures the screenshot as desired in the relevant folder specified above.**
But pipe-viewer fails to screenshot with Error writing screenshot! when pressed s!
Any idea? Thanks!
The text was updated successfully, but these errors were encountered:
This issue appears to be with pipe-viewer unable to pipe the long filenames, but NOT with the mpv (unlike smplayer-dev/smplayer#569 (comment)).
The reason is:
screenshot-template="%F - [%P]v%#01n"
reports Error writing screenshot! with pipe-viewer, but goes well with mpv standalone whereas
screenshot-template="screenshot_%n_%p_%02n"
produces the screenshot without any error when pressed s in pipe viewer.
Any clue appreciated! Thanks.
zenny
changed the title
screenshot to specific directory with mpv as backend does not work!
[BUG] Pressing s gives Error writing screenshot if long filename.
Jul 12, 2023
Taking screenshot with long filenames in pipe-viewer have become a hurdle despite the fact that it goes well with standalone mpv. Wish someone look into this outstanding bug that remained unsolved for a long time.
Hi,
Context:
mpv
has been assigned as a backend topipe-viewer
in `~/.config/pipe-viewer/pipe-viewer.confWhen
mpv
is configured to grasp screenshot to the $PWD plays well withpipe-viewer
When
mpv
is asked to save the screenshot to a specific location in~/.config/mpv/mpv.conf
mpv
standalone (outside `pipe-viewer) captures the screenshot as desired in the relevant folder specified above.**But
pipe-viewer
fails to screenshot withError writing screenshot!
when presseds
!Any idea? Thanks!
The text was updated successfully, but these errors were encountered: