Coder Social home page Coder Social logo

termux-mpv's People

Contributors

neo-oli avatar typicalfence avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

termux-mpv's Issues

Can you try and create such controller for mpv-android app

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

ERROR: Command errored out with exit status 1:

$ 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.
$

mpv in several versions

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:

  • is it with Termux-mpv audio+video output possible as with mpv-x and did you compare the different media player installations?
  • if yes how much storage is used for Termux-mpv and can you say something about the messages (bugs/errors) above?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.