remove screen record

remove screen record
pull/166/head
xufulong 4 years ago
parent 3ac4fb0f31
commit 8e3237ba3d
  1. 6
      app/src/main/java/com/frank/ffmpeg/activity/VideoHandleActivity.java
  2. 14
      app/src/main/java/com/frank/ffmpeg/util/FFmpegUtil.java

@ -237,12 +237,6 @@ public class VideoHandleActivity extends BaseActivity {
cmdList.add(gifCmd); cmdList.add(gifCmd);
ffmpegHandler.executeFFmpegCmds(cmdList); ffmpegHandler.executeFFmpegCmds(cmdList);
break; 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 case R.id.btn_multi_video://combine video which layout could be horizontal of vertical
String input1 = PATH + File.separator + "input1.mp4"; String input1 = PATH + File.separator + "input1.mp4";
String input2 = PATH + File.separator + "input2.mp4"; String input2 = PATH + File.separator + "input2.mp4";

@ -323,20 +323,6 @@ public class FFmpegUtil {
return paletteGifCmd.split(" "); 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 * convert s series of pictures into video
* *

Loading…
Cancel
Save