我正在编写应用程序,需要对Instagram等视频应用过滤器.
我尝试使用FFMPEG库,但它不能正常工作,并且不提供所有过滤器.
我到目前为止尝试的是,
String commandStr1 = "ffmpeg -y -i /sdcard/vids.mp4 -strict experimental -vf hue=s=0 -vcodec mpeg4 -b 2097152 -s 320x240 -r 30 /sdcard/vid_out.mp4"; String[] complexCommand3 = {"ffmpeg","-y", "-i", "/sdcard/videokit/out1.mp4", "-i", "/sdcard/videokit/out2.mp4", "-strict", "experimental", "-filter_complex", "[0:v]scale=640x480,setsar=1:1[v0];[1:v]scale=640x480,setsar=1:1[v1];[v0][0:a][v1][1:a] concat=n=2:v=1:a=1", "-ab", "48000", "-ac", "2", "-ar", "22050", "-s", "640x480", "-r", "30", "-vcodec", "mpeg4", "-b", "2097k", "/sdcard/videokit/out3.mp4"};
是否有其他开源或付费库可以对视频应用过滤器?任何有助于实现此功能的帮助将不胜感激.
或者我如何制作自己的视频过滤器?
谢谢.