我想将四个视频显示为缩略图,但要一个接一个地播放(video1先播放,然后video2等)。
我尝试过
String[] cmd={"-loop","1","-t","36","-i","/storage/emulated/0/Download/trasprent_bg.png","-i","video1.mp4","-i","video2.mp4","-i","video3.mp4","-i","video4.mp4","-i","collage_1.png","-filter_complex","[1:v]scale=500:500,crop=266:266[tfg];[2:v]scale=500:500,crop=266:266,setpts=PTS+9/TB[bfg];[3:v]scale=500:500,crop=266:266,setpts=PTS+18/TB[threefg];[4:v]scale=500:500,crop=266:266,setpts=PTS+27/TB[fourfg];[5:v]scale=-1:-1[colage];[0:v][tfg]overlay=2:2:eof_action=pass[o1];[o1][bfg]overlay=272:2:eof_action=pass[o2];[o2][threefg]overlay=2:272:eof_action=pass[o3];[o3][fourfg]overlay=272:272:eof_action=pass:shortest=1[o4];[o4][colage]overlay=0:0","-an","videoCrop.mp4"};
一个接一个地播放视频,但仅显示正在播放的视频,而其他视频则不显示
使用上面的命令播放视频,如下所示。 first video play,second video play,third video play
我想显示所有四个输出视频,但如下所示一一播放。
我花了很多时间。请帮助我。