Git Product home page Git Product logo

buildscripts's Introduction

mpv for Android

Build Status

mpv-android is a video player for Android based on libmpv.

Features

  • Hardware and software video decoding
  • Gesture-based seeking, volume/brightness control and more
  • libass support for styled subtitles
  • Secondary (or dual) subtitle support
  • High-quality rendering with advanced settings (scalers, debanding, interpolation, ...)
  • Play network streams with the "Open URL" function
  • Background playback, Picture-in-Picture, keyboard input supported

Library?

mpv-android is not a library/module (AAR) you can import into your app.

If you'd like to use libmpv in your app you can use our code as inspiration. The important parts are MPVLib, BaseMPVView and the native code. Native code is built by these scripts.

Downloads

You can download mpv-android from the Releases section or

Get it on Google Play

Get it on F-Droid

Note: Android TV is supported, but only available on F-Droid or by installing the APK manually.

Building from source

Take a look at the README inside the buildscripts directory.

Some other documentation can be found at this link.

buildscripts's People

Contributors

andrewshulgin avatar jdek avatar sfan5 avatar xyzz avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

buildscripts's Issues

Can not be compiled under mac os

hi,sfan5
Can not be compiled under mac os,This is the log:
from /Users/xupeng/Documents/mpv/buildscripts/deps/mpv: Program ['aarch64-linux-android-gcc'] is not executable
best regards.

Android SDK installed with these scripts lacks licenses

As a result the build command complains about it and does not build:

Checking the license for package Android SDK Build-Tools 25.0.2 in /home/xyz/mpv-android/sdk/android-sdk-linux/licenses
Warning: License for package Android SDK Build-Tools 25.0.2 not accepted.
Checking the license for package Android SDK Platform 25 in /home/xyz/mpv-android/sdk/android-sdk-linux/licenses
Warning: License for package Android SDK Platform 25 not accepted.

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':app'.
> You have not accepted the license agreements of the following SDK components:
  [Android SDK Build-Tools 25.0.2, Android SDK Platform 25].
  Before building your project, you need to accept the license agreements and complete the installation of the missing components using the Android Studio SDK Manager.
  Alternatively, to learn how to transfer the license agreements from one workstation to another, go to http://d.android.com/r/studio-ui/export-licenses.html

Apparently the root cause is this:

Note: Accepting the license agreements using the android command line tool does not create this licenses directory. You must first accept the agreements using the SDK Manager to be able to use this feature.

https://developer.android.com/studio/intro/update.html#download-with-gradle

There's also the following answer: https://stackoverflow.com/a/43039679. However, our android sdk is too old, it might be a good time to update it.

more complete dependency list

from a fresh installation of Debian 8.8 i was able to build a working APK, so the download and build scripts seem to be working pretty nicely. however, it took a lot of trial and error to work out exactly what other tools were required.

maybe this seems like standard stuff, but a linux novice like me isn't going to be able to anticipate all of these items, and will instead find out the hard way. having them listed in the readme would be much more convenient.

packages that i had to install:

apt-get install sudo
apt-get install unzip
apt-get install git
apt-get install pkgconf
apt-get install automake
apt-get install libtool

openjdk-8-jdk ?
( https://xmoexdev.com/wordpress/installing-openjdk-8-debian-jessie/ )

the process also consumed something like 10 or 20 GB of disk space (which i didn't anticipate; i had to extend my disk partition)

and there was the matter of issue #4


so overall i'm very happy that i was able to get this built having never compiled an android app before (and quite limited linux experience), but i think putting this extra information in the readme would be helpful for others attempting to do the same.

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.