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();