Open MPV with CLI(termux) ?
See original GitHub issueAs we know, termux had a build-in Mpv, but it can not play video correctly. https://github.com/termux/termux-packages/issues/878
So, I found a way to open Mpv app, like:
$ am start -n is.xyz.mpv/is.xyz.mpv.MainActivity
But till now, I have no idea to pass the URL or path to MPV app by this way.
Could U guys make a patch for it? Or just show me the parameters of CLI call method?
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
ani-cli on Termux - Reddit
In my termux an mpv file exists in /data/data/com.termux/files/usr/bin/mpv check for this file and it contains am start --user 0 -a android.
Read more >Awesome command-line cross-platform media player ...
If you're on Linux or Termux, you can make aliases to make your life easier with mpv. ... Then save the file and...
Read more >How to play .MP3 files from command line with Termux - Steemit
1: Install and launch Termux. Type this command clear to delete every initial text on the screen. ... Mpv is simply a music...
Read more >Termux-media-player
See Also. Termux:API - Termux addon that exposes device functionality as API to command line programs.
Read more >anime-cli - PyPI
When asked to enter the video-player change it to xdg-open which will automatically open mpv-player . Motivation. I recently found out about ani-cli,...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hello! You can call MPVActivity with filepath extra parameter:
$ am start -n is.xyz.mpv/is.xyz.mpv.MPVActivity -e filepath <url>I see. The problem with passing command line options to
mpv-andoidis caused by that fact thatmpv-androidis an Android application that useslibmpvand the only the application itself can set thelibmpvoptions. In theory you could have an easily accessible configuration file -/sdcard/custom.conffor example - included in thempv.confthat you can edit using application’s UI (include=/sdcard/custom.conf) that you could edit before opening a file. This would be the closest equivalent to CLI options that I can think of.