mpv icon indicating copy to clipboard operation
mpv copied to clipboard

Filename Expansion — Screenshots

Open Yomi0 opened this issue 11 years ago • 4 comments

If you playback a few files like this » mpv --profile=hw.accel --hwdec=auto ~/Downloads/\[HorribleSubs\]\ Durarara\!\!\ X2\ -\ 12\ \[720p\].mkv ~/Downloads/\[HorribleSubs\]\ Saekano\ -\ {11,12}\ \[720p\].mkv

The screenshots will be created like this : [HorribleSubs]\ Durarara!!\ X2\ -\ 12\ [720p]_0001.jpg [HorribleSubs]\ Durarara!!\ X2\ -\ 12\ [720p]_0002.jpg [HorribleSubs]\ Durarara!!\ X2\ -\ 12\ [720p]_0003.jpg [HorribleSubs]\ Durarara!!\ X2\ -\ 12\ [720p]_0004.jpg [HorribleSubs]\ Durarara!!\ X2\ -\ 12\ [720p]_0005.jpg [HorribleSubs]\ Durarara!!\ X2\ -\ 12\ [720p]_0006.jpg [HorribleSubs]\ Durarara!!\ X2\ -\ 12\ [720p]_0007.jpg [HorribleSubs]\ Durarara!!\ X2\ -\ 12\ [720p]_0008.jpg [HorribleSubs]\ Saekano\ -\ 11\ [720p]_0009.jpg [HorribleSubs]\ Saekano\ -\ 11\ [720p]_0010.jpg [HorribleSubs]\ Saekano\ -\ 11\ [720p]_0011.jpg [HorribleSubs]\ Saekano\ -\ 11\ [720p]_0012.jpg [HorribleSubs]\ Saekano\ -\ 11\ [720p]_0013.jpg [HorribleSubs]\ Saekano\ -\ 11\ [720p]_0014.jpg [HorribleSubs]\ Saekano\ -\ 12\ [720p]_0015.jpg [HorribleSubs]\ Saekano\ -\ 12\ [720p]_0016.jpg [HorribleSubs]\ Saekano\ -\ 12\ [720p]_0017.jpg

Shouldn't the count start from 0000 again, since the file has changed?

Yomi0 avatar Apr 11 '15 15:04 Yomi0

This isn't the default screenshot template, and you didn't show your custom one, so I can't say anything.

ghost avatar Apr 12 '15 12:04 ghost

This is my screenshot template : screenshot-template=~/Pictures/%F_%n

Yomi0 avatar Apr 12 '15 13:04 Yomi0

Ping.

Yomi0 avatar Apr 28 '15 00:04 Yomi0

Add # before the n. The manpage says:

        With
        the optional # sign, mpv will use the lowest available number. For
        example, if you take three screenshots--0001, 0002, 0003--and delete
        the first two, the next two screenshots will not be 0004 and 0005, but
        0001 and 0002 again.

ghost avatar Apr 28 '15 08:04 ghost