Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I install ffmpeg on Android for YouTube-dl running in sl4a python script? #13496

Closed
ghost opened this issue Jun 26, 2017 · 6 comments
Closed
Labels

Comments

@ghost
Copy link

@ghost ghost commented Jun 26, 2017

  • I've verified and I assure that I'm running youtube-dl 2017.06.25
  • At least skimmed through README and most notably FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • Question
  • Other

Since I know a bit of python I decided to make a .mp3 downloader Android app for myself using a python interpreter, sl4a, some scripts, webviewer and youtube-dl.

I can’t make ffmpeg available to youtube-dl (called in a python script) in Android. Most answers are for Java implementations, using JNI.

@siddht4
Copy link

@siddht4 siddht4 commented Jun 26, 2017

you can download the arm version of ffmpeg

@siddht4
Copy link

@siddht4 siddht4 commented Jun 26, 2017

i had manually done it from https://github.com/guardianproject/android-ffmpeg,or you can visit here https://trac.ffmpeg.org/wiki/CompilationGuide/Android.
I don't consider this to be any bug/issue with youtube-dl so I would ask maintainers to close this issue

@siddht4
Copy link

@siddht4 siddht4 commented Jun 26, 2017

look here,this needs to be called https://github.com/rg3/youtube-dl/blob/master/youtube_dl/postprocessor/ffmpeg.py if you are compiling yourself,better use some ideas from this instead http://dentex.github.io/ (external project) or better check this #967

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Jun 26, 2017

Thanks @siddht1 for providing such useful info. What you need is preparing a ffmpeg binary somewhere, and feed the path via --ffmpeg-location /path/to/ffmpeg (CLI) or 'ffmpeg_location': '/path/to/ffmpeg' in YoutubeDL options. (Python API)

@yan12125 yan12125 closed this Jun 26, 2017
@yan12125 yan12125 added the question label Jun 26, 2017
@alexanderadam
Copy link

@alexanderadam alexanderadam commented Jan 22, 2018

I just want to add that it would be absolutely great if someone would package youtube-dl for android and publishes it to F-Droid.
A functionality like using a share button in the browser where youtube-dl appears and downloads the video would be very cool.

The current state of youtube-dl on mobile devices seem to be pretty complicated and error prone (see also here, here or here).
I have the feeling that there's a demand to have it on mobile devices (1, 2, 3, 4, 5).

PS: Just to be sure: this app is not related to youtube-dl, right?

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Jan 22, 2018

this app is not related to youtube-dl, right?

I can't give a guarantee, but looks like not as its functionality is rather limited in comparison to youtube-dl (no support for login-required videos and live videos)

In general, this repository handles only core functionality. An Android app can be maintained in an external repo, just like many GUI wrapper out there. I have some scripts at https://github.com/yan12125/python3-android/ that builds a working python binary for running youtube-dl. Just that I have no idea how to write a F-Droid build script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.