Gonzalo Solera
Gonzalo Solera

Reputation: 1192

How to use ffmpeg commands on Android

I have the same doubt that here. I want to execute this command on Android:

ffmpeg -i input.mp4 -s 480x320 output.mp4

So I compiled all the librarys with the NDK following this tutorial, I only need to add this code (I suppose that in a .c file that I have created) but I don´t know how... I will appreciate any help and any example if it was possible!!

Upvotes: 2

Views: 3826

Answers (2)

You are using this Command for FFmpeg4 library for better Video Quality and minimum Compression of Video in android. I have used in my project it's working successfully.

--> ffmpeg -i your input video path.mp4 -s 480x320 -acodec mp2 -strict -2 -ac 1 -ar 16000 -r 13 -ab 32000 -aspect 3:2 your output video path.mp4

Upvotes: 0

acj
acj

Reputation: 4821

You're probably looking for system or popen. There are plenty of existing questions on this topic.

Upvotes: 1

Related Questions