package com.github.noodzhan.util;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.List;
import org.apache.log4j.Logger;
public class FfmpegUtil {
private static Logger logger = Logger.getLogger(FfmpegUtil.class);
private static String ffmpegPath ;
//安装路径
static {
ffmpegPath = "E:\\ffmpeg-20200720-43a08d9-win64-static\\bin\\ffmpeg.exe";
}
public static void processFfmpegCodeFormat() {
List<String> commend = new java.util.ArrayList<String>();
commend.add(ffmpegPath);
commend.add("-formats");
try {
ProcessBuilder builder = new ProcessBuilder(
ffmpeg将rtsp(或者mp4)转化为rtmp的java实现
最新推荐文章于 2024-07-13 02:19:18 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)