简体   繁体   中英

Working with video in android (crop, overlay, etc.) - how?

There was a task to create an application for Android that lets you record and work with video. There is no problem with recording video from a camera, but I ran into a problem processing videos. For example, you want to crop video, overlay audio, apply a few videos on each other ...

Are there any libraries that can help me achieve my goals? I was looking for some information on this issue, some people recommend using ffmpeg. Can ffmpeg library help me achieve what I described above?

I would be grateful for any information.

Thank you.

I would suggest the same,
FFMPEG library is the best solution available to your problem.
Its a lot it can do.

Here are few sample commands, but you'll get all of you mentioned above if your search on web.

CROP:
I dont know what do you mean by cropping,
But you can use these commands

ffmpeg -i in.mp4 -filter:v "crop=out_w:out_h:x:y" out.mp4  

for details check this

OR

ffmpeg -i movie.mp4 -ss 00:00:03 -t 00:00:08 -async 1 cut.mp4  

see details

OVERLAY AUDIO:

ffmpeg -i input.mp4 -i input.mp3 -c copy -map 0:0 -map 1:0 output.mp4  

check this

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM