From 8e3237ba3d3b75f8149f32fb7136886c1638a8aa Mon Sep 17 00:00:00 2001 From: xufulong <839789740@qq.com> Date: Wed, 23 Sep 2020 23:22:10 +0800 Subject: [PATCH] remove screen record remove screen record --- .../frank/ffmpeg/activity/VideoHandleActivity.java | 6 ------ .../java/com/frank/ffmpeg/util/FFmpegUtil.java | 14 -------------- 2 files changed, 20 deletions(-) diff --git a/app/src/main/java/com/frank/ffmpeg/activity/VideoHandleActivity.java b/app/src/main/java/com/frank/ffmpeg/activity/VideoHandleActivity.java index e52dd6a..031e588 100644 --- a/app/src/main/java/com/frank/ffmpeg/activity/VideoHandleActivity.java +++ b/app/src/main/java/com/frank/ffmpeg/activity/VideoHandleActivity.java @@ -237,12 +237,6 @@ public class VideoHandleActivity extends BaseActivity { cmdList.add(gifCmd); ffmpegHandler.executeFFmpegCmds(cmdList); break; - case R.id.btn_screen_record://screen recording -// String screenRecord = PATH + File.separator + "screenRecord.mp4"; -// String screenSize = "320x240"; -// int recordTime = 10; -// commandLine = FFmpegUtil.screenRecord(screenSize, recordTime, screenRecord); - break; case R.id.btn_multi_video://combine video which layout could be horizontal of vertical String input1 = PATH + File.separator + "input1.mp4"; String input2 = PATH + File.separator + "input2.mp4"; diff --git a/app/src/main/java/com/frank/ffmpeg/util/FFmpegUtil.java b/app/src/main/java/com/frank/ffmpeg/util/FFmpegUtil.java index 447f697..70b3341 100644 --- a/app/src/main/java/com/frank/ffmpeg/util/FFmpegUtil.java +++ b/app/src/main/java/com/frank/ffmpeg/util/FFmpegUtil.java @@ -323,20 +323,6 @@ public class FFmpegUtil { return paletteGifCmd.split(" "); } - /** - * screen record - * - * @param size size of video - * @param recordTime startTime in the video - * @param targetFile output file - * @return record success or not - */ - public static String[] screenRecord(String size, int recordTime, String targetFile) { - String screenRecordCmd = "ffmpeg -vcodec mpeg4 -b 1000 -r 10 -g 300 -vd x11:0,0 -s %s -t %d %s"; - screenRecordCmd = String.format(Locale.getDefault(), screenRecordCmd, size, recordTime, targetFile); - return screenRecordCmd.split(" "); - } - /** * convert s series of pictures into video *