neo-oli / termux-mpv Goto Github PK
View Code? Open in Web Editor NEWWrapper for Mpv on Termux. Displays play controls in the notification
License: GNU General Public License v3.0
Wrapper for Mpv on Termux. Displays play controls in the notification
License: GNU General Public License v3.0
This requires an extension of the Termux-API
termux/termux-api#60
in android mpv app there is setting> advanced>edit mpv.conf
option where you can specify input-ipc-server="location"
then in termux we can run netcat or socat server and send command to obtain playback time play pause etc by sending command to that ipc server.
can you try
$ pip install git+https://github.com/Neo-Oli/Termux-Mpv
Collecting git+https://github.com/Neo-Oli/Termux-Mpv
Cloning https://github.com/Neo-Oli/Termux-Mpv to /data/data/com.termux/files/usr/tmp/pip-req-build-gufzp_74
Running command git clone -q https://github.com/Neo-Oli/Termux-Mpv /data/data/com.termux/files/usr/tmp/pip-req-build-gufzp_74
Resolved https://github.com/Neo-Oli/Termux-Mpv to commit a6ec1a865ccd342b2281761835ab33c11fb0638e
ERROR: Command errored out with exit status 1:
command: /data/data/com.termux/files/usr/bin/python3 -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/data/data/com.termux/files/usr/tmp/pip-req-build-gufzp_74/setup.py'"'"'; __file__='"'"'/data/data/com.termux/files/usr/tmp/pip-req-build-gufzp_74/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /data/data/com.termux/files/usr/tmp/pip-pip-egg-info-fxi78wn5
cwd: /data/data/com.termux/files/usr/tmp/pip-req-build-gufzp_74/
Complete output (11 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/setuptools/__init__.py", line 18, in <module>
from setuptools.dist import Distribution
File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/setuptools/dist.py", line 38, in <module>
from setuptools import windows_support
File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/setuptools/windows_support.py", line 2, in <module>
import ctypes
File "/data/data/com.termux/files/usr/lib/python3.10/ctypes/__init__.py", line 8, in <module>
from _ctypes import Union, Structure, Array
ImportError: dlopen failed: cannot locate symbol "ffi_closure_free" referenced by "/data/data/com.termux/files/usr/lib/python3.10/lib-dynload/_ctypes.cpython-310.so"...
----------------------------------------
WARNING: Discarding git+https://github.com/Neo-Oli/Termux-Mpv. Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
WARNING: You are using pip version 21.2.3; however, version 21.2.4 is available.
You should consider upgrading via the '/data/data/com.termux/files/usr/bin/python3 -m pip install --upgrade pip' command.
$
Since mpsyt also uses --input-ipc-server, it overwrites the settings of termuxmpv
'set player termuxmpv' freezes mps-youtube.
This requires an extension of the termux-api
termux/termux-api#61
There is perhaps some optimization to be done capturing "metadata-updates". Most of it is probably due to termux/termux-api#63
Dismissing the notification doesn't seem to do anything for me.
This requires an extension of the termux-api
termux/termux-api#62
Installed all dependencies and termux install both updated and upgraded. Normal mpv works as expected. Running Android 10
I didnt know how to use it
Sorry im a newbie :(
Hi @Neo-Oli
In the past I've used the mpv-x
package of x11 packages from @xeffyr to display small videos (successfully with audio+video output) with termux. This has not been working properly for some time. In the meantime there was only audio output and I set up a proot/ubuntu and installed the media player there too with video output only. Try again now: This doubles ubuntu from 738Mb to 1.5Gb.
After the last termux pkg up/apt-get
I get the following messages in various ARCH from termux ([~]$
)and ubuntu (uu[~]#
):
[~]$ export DISPLAY=:0;mpv -vo x11 i/check.mp4
CANNOT LINK EXECUTABLE "mpv": cannot locate symbol "XzUnpacker_Construct" referenced by "/system/lib/libunwind.so"...
CANNOT LINK EXECUTABLE "mpv": cannot locate symbol "u_charDirection_58" referenced by "/system/lib64/libandroid_runtime.so"...
Aborted
...
uu[~]# apt-get install mpv
Reading package lists... Done
Building dependency tree Reading state information... Done
mpv is already the newest version (0.29.1-1ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
Setting up libfprint0:armhf (1:0.8.2-3) ...
Failed to scan devices: No such file or directory
dpkg: error processing package libfprint0:armhf (--configure): installed libfprint0:armhf package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of fprintd: fprintd depends on libfprint0 (>= 1:0.4.0); however:
Package libfprint0:armhf is not configured yet.
dpkg: error processing package fprintd (--configure): dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libpam-fprintd:armhf: libpam-fprintd:armhf depends on fprintd (= 0.8.1-1); however:
Package fprintd is not configured yet.
dpkg: error processing package libpam-fprintd:armhf (--configure): dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.29-0ubuntu2) ...
No apport report written because the error message indicates its a followup error from a previous failure. Errors were encountered while processing:
libfprint0:armhf
fprintd
libpam-fprintd:armhf
E: Sub-process /usr/bin/dpkg returned an error code (1)
uu[~]#
uu[~]# ll u/bin/mpv
-rwxr-xr-x. 1 root root 1354328 Nov 9 2018 u/bin/mpv
uu[~]# export DISPLAY=:0;mpv -vo x11 i/check.mp4
mpv: error while loading shared libraries: libx264.so.155: cannot enable executable stack as shared object requires: Permission denied
I discovered today your Termux-mpv
and have a few questions about it:
Termux-mpv
audio+video output possible as with mpv-x
and did you compare the different media player installations?Termux-mpv
and can you say something about the messages (bugs/errors) above?A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.