android - Compress video by using FFMPEG -


i tried call c/c++ function in c/c++ file in java file , okay.

but don't know how can transfer query string in below c/c++ function` compressing video :

ffmpeg -y -i /sdcard/videokit/in.mp4 -strict experimental -s 160x120 -r 25 -aspect 3:4 -vcodec mpeg4 -b 2097152 -ab 48000 -ac 2 -ar 22050 /sdcard/videokit/out.mp4

exactly.

what want can compress video using ffmpeg. (i think call via c function in c file)

p/s : read many topics, many people issue, no answer satisfied.

people know this,

please me,

thanks,

this command converts dozens of api calls in ffmpeg. see option sets what, must read ffmpeg.c file. option use ffmpeg.c, rename main() else, compile program, can call string.


Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -