tanersener / ffmpeg-video-slideshow-scripts

Shell scripts to create video slideshows using images and videos
MIT License
464 stars 135 forks source link

how to convert .sh file to Android #54

Closed mansiJspaceo closed 4 years ago

mansiJspaceo commented 5 years ago

how can we use .sh file into Android. how can we run this using FFMPEG command & get output for specific input

tanersener commented 5 years ago

First of all, you must know that these scripts are not optimised for mobile devices, so I don't recommend running them on Android or IOS. They consume too much CPU & memory.

If CPU & memory usage is not a concern for you then you can change the following section at the end of each script

eval ${FULL_SCRIPT}

into

echo ${FULL_SCRIPT}.

After this change, if you run the script it will not produce a video but will print full ffmpeg command to the console. You can execute that command in an Android or iOS device which has ffmpeg.

mansiJspaceo commented 5 years ago

Thank you

mansiJspaceo commented 5 years ago

@tanersener How do i get optimise command for Android device.

Any help will appreciate.

tanersener commented 5 years ago

How do i get optimise command for Android device.

Scripts use ffmpeg filters to create animations and it is possible to achieve the same animation using different ffmpeg filters & options. If you use ffmpeg filters & options which run faster on Android then your script will be optimised for Android.

It is not an easy process, you need to test all options one by one and find the fastest ones.

mansiJspaceo commented 5 years ago

Okay Thank you....