Skip to content

Instantly share code, notes, and snippets.

@guinetik
Created July 21, 2013 21:58
Show Gist options
  • Save guinetik/6050178 to your computer and use it in GitHub Desktop.
Save guinetik/6050178 to your computer and use it in GitHub Desktop.
create video file
videoFile = new File(Environment.getExternalStorageDirectory().getPath() + "/Recorder/video.mp4");
if (!videoFile.exists()) {
try {
videoFile.createNewFile();
Log.i(LOG_TAG, "create videoFile success");
} catch (Exception e) {
Log.e(LOG_TAG, "create videoFile failed");
}
} else {
Log.i(LOG_TAG, "videoFile exited already");
}
ffmpeg_link = videoFile.getAbsolutePath();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment