Neo-Oli / Termux-Mpv

Wrapper for Mpv on Termux. Displays play controls in the notification
GNU General Public License v3.0
77 stars 15 forks source link

mpv in several versions #12

Closed RalfWerner closed 4 years ago

RalfWerner commented 4 years ago

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:

Neo-Oli commented 4 years ago

@RalfWerner I think you misunderstand what termux-mpv is. Termux-mpv is just a wrapper around whatever version of mpv you have installed. All it does is add a notification about running mpv instances with a play, prev and next button. https://raw.githubusercontent.com/Neo-Oli/Termux-Mpv/master/Screenshots/Notification-Media-Controls-small.png It isn't another version of mpv. About the errors you better ask in termux-packages or x11-packages.

RalfWerner commented 4 years ago

I think you misunderstand what termux-mpv is

I thought so and I wanted to know if you made comparisons (apparently not). My experience with API is ambivalent because the parallel processes often collide with termux

Will try to install mpv App and make experiance with termux-mvp - thanks so far ... The installation was easy and the use of the mpv app also. In termux both the mpv andmpv-x packages are started with u/bin/mpv. The start from termuxmpv then unfortunately gives the same error as above (I tested both packages).

[~]$ termuxmpv i/check.mp4
CANNOT LINK EXECUTABLE "/data/data/com.termux/files/usr/bin/mpv": cannot locate symbol "XzUnpacker_Construct" referenced by "/system/lib/libunwind.so"...
[~]$ cat u/bin/termuxmpv
#!/data/data/com.termux/files/usr/bin/python3
# EASY-INSTALL-ENTRY-SCRIPT: 'Termux-Mpv==0.0.15','console_scripts','termuxmpv'
__requires__ = 'Termux-Mpv==0.0.15'
import re
import sys
from pkg_resources import load_entry_point

if __name__ == '__main__':
    sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
    sys.exit(
        load_entry_point('Termux-Mpv==0.0.15', 'console_scripts', 'termuxmpv')()
    )

Unfortunately termuxmpv doesn't do what I expect. First, the python package requires 65Mb and the mpv app (shot1 below) 22Mb. This is much less than 750Mb in ubuntu - so I prefer this. In the shot2 above is the file selection with the mpv app and beow a shot with Vnc (bad quality). In shot3 above is the X11 edition and below that of the mpv app. grafik The shot4 shows the log of mpv-x and thentermuxmpv (from you @Neo-Oli). My expectation was to get the movies in the shots to the left of it - but this is not the case, only the sound is output. Exactly the mpv-app is not used at all but mpv-x! What is wrong?