LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


Old

Prototype/principle for a wrapper script for multiple media players to use the same Openbox keybindings, depending on which one is running

Posted 03-25-2021 at 10:50 AM by the dsc (linux-related notes)
Tags mpc, mpv, openbox

Most likely not the most elegant way of doing it, and not fully functional (for mpv) regarding the display of media info:


Code:
#!/bin/bash

if pgrep -x mpv ; then

echo '{"command": ["playlist-next"]}' > /tmp/mpvsocket

#title=$(echo '{ "command": ["get_property", "media-title"] }'  >  /tmp/mpvsocket)

#title=( $(wmctrl -l | grep mpv$ ) ) 

#title=$(echo
...
Member
Posted in Uncategorized
Views 714 Comments 0 the dsc is offline
Old

MPV script crops/zooms the video without reencoding

Posted 12-25-2019 at 09:05 AM by the dsc (linux-related notes)
Tags mpv

Have you ever seen or being interested in watching a video with some eerily poor framing source, like, the center of interest would be slides that are shown tiny as "a picture in picture" kind of thing? This script is the handiest tool to make them watchable, if the resolution is high enough:

https://github.com/aidanholm/mpv-easycrop

Pressing "c" and then clicking at an edge of the virtual crop will darken most of the video, then, as you move the...
Member
Posted in Uncategorized
Views 2073 Comments 0 the dsc is offline
Old

Another "Bash script for queueing youtube links in mpv", adapted for hovering + shortcut keys on possibly multiple contexts

Posted 05-25-2019 at 02:46 PM by the dsc (linux-related notes)
Updated 10-11-2020 at 05:05 PM by the dsc

This script is partly based on this one, referred on the post title:

https://www.reddit.com/r/commandline..._links_in_mpv/

It was originally an independent development, so it relies in some aspects more on mpv.conf (to define its input pipe/fifo file), so one may want to modify it according to whatever preference regarding that.

The main difference is a gimmick to get the URL from where the cursor is hovering...
Member
Posted in Uncategorized
Views 1818 Comments 0 the dsc is offline

  



All times are GMT -5. The time now is 05:09 PM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration