Mayank Sugandhi
Mayank Sugandhi

Reputation: 397

how to set effect on video in android programmatically?

I have video which is save in sdcard, now i want to apply the effect like black and white and etc. it's functionality like editing in video which is already in photo editor or video editor applications.

now i want to that functionality in android programmatically? when user choose black and white color in option then it should be response very quickly and change the effect of our video and save it sdcard.

i have find some solution for this like,

https://github.com/krazykira/VidEffects 

but it has not save functionality of video and if i go through in "FFMPEG" library then it is not responding very quickly?

how can i change the effect of video and save this video in sdcard?

Thank You

Upvotes: 0

Views: 3578

Answers (1)

Adeel Turk
Adeel Turk

Reputation: 907

this link have a lot of information regarding FFmpeg and i have used in alot of projects use their source and ask your question on this forum regarding ffmpeg you will surely get your answers ASAP

and this is the command for greyscale effect on your video black & White filter (Gray Scale):

commandStr = "ffmpeg -y -i /sdcard/videokit/in.mp4 -strict experimental -vf hue=s=0 -vcodec mpeg4 -b 2097152 -s 320x240 -r 30 /sdcard/videokit/out.mp4";

Upvotes: 1

Related Questions