-
Notifications
You must be signed in to change notification settings - Fork 4
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 to setup ffmpeg #3
Comments
Hi 😃
|
PS: I'm going on a bit of a tangent here, but if you don't want to "roll your own" FFmpeg commands into a Node.js app.. this app is a front-end for FFmpeg that looks like a great utility.. written by the same developer who published the pre-compiled FFmpeg executables (mentioned previously).. and its releases include a separate APK for every individual ABI |
You are a nice person! You actually answered my questions! Regarding node my idea was downloading an app that uses nodejs.so (With an upper version) and then pasting it using apkeditor, I was wondering if that could work, but meh I'm fine with node v12. It works for now, I was just thinking in discord.js that needs an upper version. Well, I don't need it. The reason behind the "I can't use termux" is that I have android 6. Unfortunately. Regarding ffmpeg... Well, on windows for example, I included fluent ffmpeg in my work so all I needed to use ffmpeg was setting the environment variable of the folder with the executable of ffmpeg. Now your app can use environment variables, but I don't know how to actually make it work, I have armeabi v7 (Obviously) so... I have 2 problems. 1: I don't know how a folder with ffmpeg Linux armeabiv7 looks like I'm... Kinda new in all of this, my work is just a WhatsApp not, after all. I have only a year of experience with nodejs so sorry if I mess up things. Any idea you may have? Or ffmpeg can't be used with your nice and easy to use app? |
Don't feel bad about using Android 6. I still have a ton of Android 4.1 and 4.4 devices onhand, and to be perfectly honest.. I prefer them over more recent versions of Android. With every update, Android seems to just strip away features and functionalities.. all in the name of tighter security. The one exception being Android 5.0 ..which gave us an upgradable System WebView; that was a worthwhile update. I took a quick peek at the javascript npm module: fluent-ffmpeg.
|
Hehe you are right, things are way less complicated in those androids, I have root so I can do wherever I want with my phone. The great problem here is that I don't have a computer, if I had one I could just do a vbscript to run node on the background, I just have my phone. Alright I'll try what you said, I downloaded that already. I don't... Think I need ffprobe, I'll check in a moment if the proyect has any reference to it. I'll be right back! PS: Do you have WhatsApp? Or Discord? You seem like a nice person, and if you want, I would like to talk sometime about things like this and be friends, but only if you want! And if you don't, thank you for your help~! |
Looks like a permission error or something. I will try to copy ffmpeg to the root of the /data/data directory of your app, see? Thank god I have root. If I have success, i will close this issue alright?c: |
you're right.. according to this discussion on SO.. you can't execute a binary from emulated storage. since you have root, you should be able to copy it elsewhere and |
Setting everything on thr folder of ffmpeg in your app data directory (I tried even moving ffmpeg to /system partition, lol) to chmod 777 didn't work either. I'm starting to wonder if the problem is executables permission on android or something. I don't mind giving this app superuser rights, I could try that, any idea on how to make your app to invoke "su"? |
this is another interesting/related discussion.. |
this might be the reason that you can't execute the binary from within the app's home directory:
This frontend app targets API 30. |
Here is a similar issue for termux where they discuss the implications of this change in Android behavior. It looks like the best solution they could come up with is to lock in: What was it that I said earlier about how Android loves to break user-space? |
based on discussions here and here.. I wonder whether this would work: su
mkdir '/data/data/com.github.warren_bank.nodejs_frontend/lib'
chmod 777 '/data/data/com.github.warren_bank.nodejs_frontend/lib'
cp '/storage/emulated/0/Download/ffmpeg' '/data/data/com.github.warren_bank.nodejs_frontend/lib/ffmpeg'
chmod 755 '/data/data/com.github.warren_bank.nodejs_frontend/lib/ffmpeg' And then update your Node.js configs to refer to this new path: |
Alright. To make things less messed up, I moved ffmpeg to root partition, literally /ffmpeg I'm on api 23, that applies to me too? Because if so then that with no doubt is the problem, which makes me think in only 2 solutions. 1: Running you app as superuser Any more idea or should I close this as impossible and close the issue?:( |
As the title says, i want to use ffmpeg, how can i do it? I managed to get a compiled version of it (libffmpeg.so), I want to use it with your app because I can't use termux, and after months using your app I started to love it!
Oh another thing, do you think that I could replace libnode.so on the apk with a newer version of node would work? Or I would need to do more adjustments to make it work with a new version of node?
The text was updated successfully, but these errors were encountered: