Android -  Run ffmpeg on android from kodi addon
#1
I want to run ffmpeg from kodi addon on android, i downloaded ffmpeg binary compiled from here:

https://github.com/Khang-NT/ffmpeg-binary-android/releases

but i don't know how to run it with arguments. On windows i am using this:

subprocess.Popen('ffmpeg.exe -i video.mp4 ....', stdin = subprocess.PIPE, stdout = subprocess.PIPE)

This works fine on windows, but how should it look to works on android?

PS. Does someone knows why i don't get any output if i run it with subprocess, but if i use os.system() than output is fine but than i can't continue to use KODI?
Reply
#2
This is my luck shoot:
subprocess.Popen('ffmpeg -i video.mp4 ....', stdin = subprocess.PIPE, stdout = subprocess.PIPE)

Remember that ffmpeg need to be recognized command otherwise you need to specify full path link you extract it into kodi user dir and using xbmcaddon get that path.
same goes for input file.

Other than that I don't know, never had to use if on android.
Reply
#3
(2019-02-14, 08:26)bigretromike Wrote: This is my luck shoot:
subprocess.Popen('ffmpeg -i video.mp4 ....', stdin = subprocess.PIPE, stdout = subprocess.PIPE)

Remember that ffmpeg need to be recognized command otherwise you need to specify full path link you extract it into kodi user dir and using xbmcaddon get that path.
same goes for input file.

Other than that I don't know, never had to use if on android.
I tried with terminal app on android to run ffmpeg file, but because the phone is not routet i get "permission denied", i don't know if i could run it from inside kodi addon? I will probably find some other solution that doesn't depend on ffmpeg, just on pure python.
Reply
 
Thread Rating:
  • 0 Vote(s) - 0 Average



Logout Mark Read Team Forum Stats Members Help
Run ffmpeg on android from kodi addon00