<dependency>
<groupId>org.bytedeco</groupId>
<artifactId>javacv</artifactId>
<version>1.5.2</version>
</dependency>
<dependency>
<groupId>org.bytedeco</groupId>
<artifactId>javacv-platform</artifactId>
<version>1.5.2</version>
</dependency>
package com.xzff.qt;
import org.bytedeco.ffmpeg.global.avcodec;
import org.bytedeco.ffmpeg.global.avutil;
import org.bytedeco.javacv.*;
import javax.imageio.ImageIO;
import java.awt.image.BufferedImage;
import java.io.File;
import java.util.HashMap;
import java.util.Map;
public class MyTest {
public static void main(String[] args) throws Exception {
//合成的MP4
// String mp4SavePath = "C:\\Users\\Administrator\\Desktop\\测试音频\\myMp4.mp4";
// //图片地址 这里面放了22张图片
// String img = "C:\\Users\\Administrator\\Desktop\\测试音频";