mpv icon indicating copy to clipboard operation
mpv copied to clipboard

How to stop a video?

Open dev-r34per opened this issue 7 years ago • 11 comments

mpv version and platform

mpv: mpv-full 0.29.1-4 on Arch Linux

How can i stop a video? vlc has this rectangle, which pauses a video and jumps to the beginning. image

What are the keybinds?

dev-r34per avatar Jan 31 '19 15:01 dev-r34per

Pause + seek to 0s

ghost avatar Jan 31 '19 16:01 ghost

Pause + seek to 0s< This is what i put in input.conf, but it doesnt't work S pause + seek to 0s

dev-r34per avatar Jan 31 '19 16:01 dev-r34per

I think this should work as well (input.conf): S stop

hrxn avatar Jan 31 '19 16:01 hrxn

seek 0 absolute ; set pause yes

garoto avatar Jan 31 '19 19:01 garoto

seek 0 absolute ; set pause yes

That's what i was looking for. Couldn't find it anywhere, thanks.

dev-r34per avatar Feb 01 '19 14:02 dev-r34per

@jimmy-1000 commented on Jun 4, 2021, 11:58 PM GMT-3:

seek 0 absolute ; set pause yes

That's what i was looking for. Couldn't find it anywhere, thanks.

It's correct, sadly that option doesn't exist

That's supposed to be an input command, so set a keybind for it in your input.conf.

garoto avatar Jun 12 '21 22:06 garoto

@garoto But is not the same. That is "go to the beginning and pause". The current video is still there, we can see it. The stop function in all players is "stop and exit from de current video and keep the playback window open", normally in black screen. I could't do that in mpv.

jimmy-1000 avatar Jun 14 '21 03:06 jimmy-1000

This seems to work when the player is started in pseudo-gui mode:

END no-osd set idle yes ; stop ; show-text "Stop"

garoto avatar Jun 14 '21 15:06 garoto

This seems to work when the player is started in pseudo-gui mode:

END no-osd set idle yes ; stop ; show-text "Stop"

Thanks again @garoto you are right, it works in combination to pseudo gui. I added --profile=builtin-pseudo-gui to mpv.conf

jimmy-1000 avatar Jun 14 '21 17:06 jimmy-1000

I added --profile=builtin-pseudo-gui to mpv.conf

If you never use the Windows CLI to launch mpv, I guess you don't really need that line in your conf. mpv will always start in pseudo-gui mode when double-clicking media in explorer or when launched from other GUI-based applications AFAIK.

garoto avatar Jun 14 '21 20:06 garoto

I added --profile=builtin-pseudo-gui to mpv.conf

If you never use the Windows CLI to launch mpv, I guess you don't really need that line in your conf. mpv will always start in pseudo-gui mode when double-clicking media in explorer or when launched from other GUI-based applications AFAIK.

You are right again, I tested it only thru Windows CLI and mpv closes its windows. But do this directly click on video it works correctly without code in mpv.conf.. Thanks 👌

jimmy-1000 avatar Jun 14 '21 22:06 jimmy-1000