From dc47c60c2a2a2385fafc92544ac572ec69cf1b86 Mon Sep 17 00:00:00 2001 From: virgilzheng Date: Tue, 2 May 2023 16:06:37 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E5=A2=9E=E5=A4=A7bufSize=EF=BC=8C?= =?UTF-8?q?=E6=8F=90=E5=8D=87=E8=BE=93=E5=87=BA=E8=A7=86=E9=A2=91=E8=B4=A8?= =?UTF-8?q?=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/tencent/qgame/playerproj/animtool/AnimTool.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Android/PlayerProj/animtool/src/main/java/com/tencent/qgame/playerproj/animtool/AnimTool.java b/Android/PlayerProj/animtool/src/main/java/com/tencent/qgame/playerproj/animtool/AnimTool.java index 7cd080c2..80d31bb7 100644 --- a/Android/PlayerProj/animtool/src/main/java/com/tencent/qgame/playerproj/animtool/AnimTool.java +++ b/Android/PlayerProj/animtool/src/main/java/com/tencent/qgame/playerproj/animtool/AnimTool.java @@ -328,7 +328,7 @@ private String[] getFFmpegCmd(CommonArg commonArg, String videoPath, String fram "-profile:v", "main", "-level", "4.0", "-tag:v", "hvc1", - "-bufsize", "2000k", + "-bufsize", "4000k", "-y", videoPath + TEMP_VIDEO_FILE}; } else { cmd = new String[] {commonArg.ffmpegCmd, "-framerate", String.valueOf(commonArg.fps), @@ -339,7 +339,7 @@ private String[] getFFmpegCmd(CommonArg commonArg, String videoPath, String fram "-profile:v", "main", "-level", "4.0", "-tag:v", "hvc1", - "-bufsize", "2000k", + "-bufsize", Integer.toString(commonArg.bitrate * 2) + "k", "-y", videoPath + TEMP_VIDEO_FILE}; } @@ -353,7 +353,7 @@ private String[] getFFmpegCmd(CommonArg commonArg, String videoPath, String fram "-profile:v", "main", "-level", "4.0", "-bf", "0", - "-bufsize", "2000k", + "-bufsize", "4000k", "-y", videoPath + TEMP_VIDEO_FILE}; } else { cmd = new String[]{commonArg.ffmpegCmd, "-framerate", String.valueOf(commonArg.fps), @@ -364,7 +364,7 @@ private String[] getFFmpegCmd(CommonArg commonArg, String videoPath, String fram "-profile:v", "main", "-level", "4.0", "-bf", "0", - "-bufsize", "2000k", + "-bufsize", Integer.toString(commonArg.bitrate * 2) + "k", "-y", videoPath + TEMP_VIDEO_FILE}; }