Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit d32976e

Browse files
committedAug 23, 2019
added more examples
1 parent 12f9400 commit d32976e

File tree

5 files changed

+3
-3
lines changed

5 files changed

+3
-3
lines changed
 

‎app/src/main/java/com/exozet/videoeditor/demo/MainActivity.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,8 @@ class MainActivity : AppCompatActivity() {
139139
frameFolder = frameFolder,
140140
outputUri = outputVideo,
141141
config = EncodingConfig(
142-
sourceFrameRate = 120f / 63f,
143-
outputFrameRate = 30f
142+
// sourceFrameRate = 120f / 63f, // original video length: 120f / 63f;
143+
// outputFrameRate = 30f
144144
),
145145
deleteFramesOnComplete = false
146146
).subscribeOn(Schedulers.computation())
-474 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.

‎videoeditor/src/main/java/com/exozet/videoeditor/FFMpegTranscoder.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ object FFMpegTranscoder {
258258
add("-r"); add("${config.outputFrameRate}")
259259

260260
add("-c:v"); add("${config.encoding}")
261-
// add("-x264opts"); add("keyint=${config.keyInt}:min-keyint=${config.minKeyInt}:no-scenecut")
261+
add("-x264opts"); add("keyint=${config.keyInt}:min-keyint=${config.minKeyInt}:no-scenecut")
262262

263263
config.gopValue?.let {
264264
add("-g"); add("${config.gopValue}")

0 commit comments

Comments
 (0)
Please sign in to comment.