bhuvnesh123 / FFmpeg-Video-Editor-Android

Sample android project using ffmpeg for cutting and compressing video,reversing video,extracting image frames from video,extracting audio from video,add fade in fade out effect,create fast and slow motion video
540 stars 165 forks source link

Applying filter to the video #10

Closed aloklearning closed 7 years ago

aloklearning commented 7 years ago

I've followed your link and got enough information on how to use the FFMPEG. I'm using FFMPEG to apply filter to the specified file. However the FFMPEG is not working fine. This is the link where I've asked the question, please help so that I'll reach to the desired location.

https://stackoverflow.com/questions/45978324/ffmpeg-filter-is-not-implementing

aloklearning commented 7 years ago

Why the output is coming in rotated form : I've used this and I'm getting the output as 90 degree clockwise rotated, is there any way to do that. Have used the transpose=2 to rotate it 90 degree counterclockwise inside the command, it is then rotating the video only not applying the filter. Any idea. The command I've used is :

String complexCommand[] = {"-y", "-i", stringBuilder.toString(), "-strict", "experimental", "-vf", "curves=vintage", "-vf", "transpose=2", "-s", "640x480", "-r", "30", "-aspect", "4:3", "-ab", "48000","-ac", "2", "-ar", "22050", "-b:a", "2097k", "-vcodec", "mpeg4", savingPath};

I've used "-vf", "curves=vintage" only then the output was coming in the filtered form but roated so I thot of doing like this.

bhuvnesh123 commented 7 years ago

I have responded to your question on stackoverflow there only.As applying filter is not part of my sample project creating issue here doesn't make sense.