Pause programmatically video player mpv
To control mpv
remotely (eg from another terminal session) you can also start it with the option
--input-ipc-server=/tmp/mpvsocket
and control it by issuing commands like this:
echo '{ "command": ["set_property", "pause", true] }' | socat - /tmp/mpvsocket
See man mpv
for (many) more details.
edit: see also mpv --list-properties
edit2: The most simple way I've found to "toggle" pause/play is
{"command": ["cycle", "pause"]}
Is it possible force playback as realtime in MPV?
I've been using mpv --profile=low-latency --untimed
to lower the delay.
Using mpv for video background on multiple monitors
You can check out this video for multiple monitors
And this Reddit post in case you are only interested in a single monitor config.
Related Topics
Match All Files Under All Nested Directories with Shell Globbing
What's the Best Way to Find a String/Regex Match in Files Recursively? (Unix)
How to Tail -F the Latest Log File with a Given Pattern
How to Check If Find Command Didn't Find Anything
How to Keep Executable Code in Memory Even Under Memory Pressure? in Linux
How to "Expect" and "Send" After "Interact" Command
What Does This Command Do? "Exec Bash -L"
Cannot Install Extensions in Visual Studio Code
What Is the Status of Posix Asynchronous I/O (Aio)
Delete Whitespace in Each Begin of Line of File, Using Bash
Can't Run Uwsgi as Root, "Bind(): Permission Denied"
What Is Kernel Section Mismatch
What Is the Best Tool to Convert Common Video Formats to Flv on a Linux Cli
Detect Underlying Platform/Flavour in Cmake
How Does Ancillary Data in Sendmsg() Work
Can Malloc_Trim() Release Memory from the Middle of the Heap