0
規模圖像疊加我已經能夠旋轉圖像使用此COMANDFFmpeg的旋轉和視頻
String[] complexCommand2 = {"-y", "-i", videoFilePath, "-i", imagepath, "-filter_complex","[1:v] rotate=30*PI/180:c=none:ow=rotw(iw):oh=roth(ih) [rotate];[0:v][rotate] overlay=40:10", "-codec:a","copy", outputFilePath};
不過,我也想縮放圖像怎麼可能做到其覆蓋在視頻上的Android
你可以給一個完整的命令,像我這樣做,我是新來fmpeg,努力學習不只是filtercomplex部分,由於 – 1234567
我得到它的工作使用這個命令'的String [] complexCommand2 = {「-y」,「-i」,videoFilePath,「-i」,imagepath,「-filter_complex」,「[1:v] rotate = 30 * PI/180:c = none:ow = rotw(30 * PI/180):oh = roth(30 * PI/180)[rotate]; [rotate] scale = 50:50 [scale]; [0:v] [scale] overlay = 40:10「,」 - codec:a 「,」copy「,outputFilePath};'但是現在有旋轉圖像的黑色背景,我們如何解決這個問題 – 1234567