Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/232.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 使用FFmpeg以特定帧速率通过循环在视频上显示图像_Android_Ffmpeg_Android Ffmpeg - Fatal编程技术网

Android 使用FFmpeg以特定帧速率通过循环在视频上显示图像

Android 使用FFmpeg以特定帧速率通过循环在视频上显示图像,android,ffmpeg,android-ffmpeg,Android,Ffmpeg,Android Ffmpeg,我有一个mp4视频路径和一组图像(00.png,01.png…170.png)。这些图像具有alpha(透明背景)。我想在特定时间(00:05-1:35)以15的帧速率以循环方式在视频上显示这些图像。这意味着,当所有图像显示一次时,如果所述时间没有过去,它们将重新显示 For example, assume that I've a set of 3 images(00.png, 01.png, 02.png) with 4 framerate and I want to display them

我有一个mp4视频路径和一组图像(00.png,01.png…170.png)。这些图像具有alpha(透明背景)。我想在特定时间(00:05-1:35)以15的帧速率以循环方式在视频上显示这些图像。这意味着,当所有图像显示一次时,如果所述时间没有过去,它们将重新显示

For example, assume that I've a set of 3 images(00.png, 01.png, 02.png) with 4 framerate and I want to display them only during 00:00-00:02 so:

the images that will be displayed at 00:00-00:01 will be: 00, 01, 02, 00.

the images that will be displayed at 00:01-00:02 will be: 01, 02, 00, 01.
我尝试过使用它,但它没有任何效果(只是尝试了一个图像作为开始)

有办法得到我想要的吗

有一个“选择”选项可能有助于:


用偏移图像时间戳,然后与一起使用

ffmpeg-i输入-帧速率15-循环1-i%d.png-过滤器复杂“[1]设置点=PTS+5/TB[fg];[0][fg]覆盖=enable='between(t,5,95)':最短=1”输出
final String[] cmd = {"-f","-i",output_mp4,"-framerate", "15", "-loop", "1", "-i",image1,"-filter_complex","overlay=shortest=1", newOutput};

FFmpeg.execute(cmd);