Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mpv properties #268

Closed
xuanngo2001 opened this issue Jan 3, 2018 · 6 comments
Closed

mpv properties #268

xuanngo2001 opened this issue Jan 3, 2018 · 6 comments

Comments

@xuanngo2001
Copy link
Owner

xuanngo2001 commented Jan 3, 2018

https://github.com/Argon-/mpv-config/blob/master/input.conf

9      add volume -2 ; show-text "Volume: ${volume}"
(      add balance -0.1 ; show-text "Audio Balance (pan): ${balance}"  # adjust audio balance in favor of left
0      add volume +2 ; show-text "Volume: ${volume}"
)      add balance +0.1 ; show-text "Audio Balance (pan): ${balance}"  #                                 right

Put in ~/.config/mpv/input.conf

@xuanngo2001
Copy link
Owner Author

for f in *;do mplayer $f;read $n;mv $f $n;done
I wanted to watch a little of each movie, then rename it depending on what was in the movie. This did the trick for me.

@xuanngo2001
Copy link
Owner Author

mplayer -playlist <(find "$PWD" -type f)
Play all files in the directory using MPlayer
Skip forward and back using the < and > keys. Display the file title with I.
http://www.commandlinefu.com/commands/view/8890/play-all-files-in-the-directory-using-mplayer#comment

@xuanngo2001
Copy link
Owner Author

@xuanngo2001
Copy link
Owner Author

mplayer -playlist <(find $PWD -type f)
Play files with mplayer, including files in sub-directories, and have keyboard shortcuts work
Press > or < to go to the next or previous track. Space to toggle play/pause, etc.

It creates a temp file descriptor. To see where the file descriptor gets created type: echo <(echo foo)

This works better than running find first, then piping to mplayer with xargs or something, because that won't let you use keyboard shortcuts.

http://www.commandlinefu.com/commands/view/5388/play-files-with-mplayer-including-files-in-sub-directories-and-have-keyboard-shortcuts-work#comment

No, without $PWD, it'll try to go relative to the file descriptor's location, eg: "/dev/fd/./Silversun_Pickups-Swoon-/07-silversun_pickups-sort_of.mp3", which would fail to open...

Comment by rkulla 402 weeks and 4 days ago

"$PWD" (in quotes) is best -- if your directories or files have spaces or other characters that need escaped like apostrophes

@xuanngo2001
Copy link
Owner Author

xuanngo2001 commented Jan 4, 2018

mpv -playlist <(find "$PWD" -type f)
#No, without $PWD, it'll try to go relative to the file descriptor's location, eg: "/dev/fd/./Silversun_Pickups-Swoon-/07-silversun_pickups-sort_of.mp3", which would fail to open

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant