From d6b0cc9fc390f370db60da5d54cf272d25f83f66 Mon Sep 17 00:00:00 2001 From: Yutousama <583819556@qq.com> Date: Thu, 22 Apr 2021 04:57:55 +0800 Subject: [PATCH] =?UTF-8?q?FFmpeg=E6=B7=BB=E5=8A=A0=E6=9C=BA=E5=99=A8?= =?UTF-8?q?=E4=BA=BA=E9=80=9A=E7=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/yutou/bilibili/BiliBili/Tools/SaveLive.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/yutou/bilibili/BiliBili/Tools/SaveLive.java b/src/main/java/com/yutou/bilibili/BiliBili/Tools/SaveLive.java index f891c99..a847c14 100644 --- a/src/main/java/com/yutou/bilibili/BiliBili/Tools/SaveLive.java +++ b/src/main/java/com/yutou/bilibili/BiliBili/Tools/SaveLive.java @@ -161,11 +161,17 @@ public class SaveLive { "" ); System.out.println(exec); + boolean isPrint=false; Process process=AppTools.exec(exec); InputStream inputStream = process.getErrorStream(); byte[] bytes = new byte[2048]; while (inputStream.read(bytes) > -1) { - System.out.println(new String(bytes,StandardCharsets.UTF_8)); + //System.out.println(new String(bytes,StandardCharsets.UTF_8)); + if(!isPrint){ + com.yutou.bilibili.Tools.Log.i("开始录制:" + roomId); + QQBotManager.getInstance().sendMessage(roomId + " 已启动录制"); + isPrint=true; + } } System.out.println("----------------stop ffmpeg"); inputStream.close();