Open MPV with CLI(termux) ?

See original GitHub issue

As 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:closed
  • Created 5 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
andrewshulgincommented, Jan 5, 2019

Hello! You can call MPVActivity with filepath extra parameter: $ am start -n is.xyz.mpv/is.xyz.mpv.MPVActivity -e filepath <url>

1reaction
kn-yamicommented, Jan 9, 2019

I see. The problem with passing command line options to mpv-andoid is caused by that fact that mpv-android is an Android application that uses libmpv and the only the application itself can set the libmpv options. In theory you could have an easily accessible configuration file - /sdcard/custom.conf for example - included in the mpv.conf that 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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found