我目前通过FFMPEG循环播放带有音频的MP4视频。这是代码
import java.util.Scanner;
public class Cal_forme {
public static void main(String[] args) {
Scanner calculator =new Scanner(System.in);
double fnum,snum,result;
System.out.println("Enter your first num : ");
fnum =calculator.nextDouble();
System.out.println("Enter your second num :");
snum =calculator.nextDouble();
if (result =fnum + snum) {
System.out.println("your addition is here" +result); }
else if (result =fnum - snum) {
System.out.println("your substraction is here" +result); }
else {
System.out.println("ok");
}
}
}
但是,每个视频实例之间的转换并不顺畅。它会在显示下一个实例时中断。是否有办法为视频创建混合/交叉淡入淡出过渡?
我遇到过这种方法,但它只适用于2个视频 https://superuser.com/questions/778762/crossfade-between-2-videos-using-ffmpeg
希望有人可以帮助我! 非常感谢!!