|
@@ -714,7 +714,8 @@ ffmpeg -i "concat:1.ts|2.ts" -c copy output.mp4
|
|
|
Process proc = Runtime.getRuntime().exec("/bin/bash", null, null);
|
|
|
BufferedReader in = new BufferedReader(new InputStreamReader(proc.getInputStream()));
|
|
|
PrintWriter out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(proc.getOutputStream())), true);
|
|
|
- String commit = "ffmpeg -re -i /opt/streams/file/"+code+".mp4 -c:v copy -c:a copy -f rtsp rtsp://124.70.58.209:8554/live/"+code;
|
|
|
+// String commit = "ffmpeg -re -i /opt/streams/file/"+code+".mp4 -c:v copy -c:a copy -f rtsp rtsp://124.70.58.209:8554/live/"+code;
|
|
|
+ String commit = "cd /";
|
|
|
List<String> commands = new ArrayList<>();
|
|
|
|
|
|
// 删除
|