Skip to content
This repository was archived by the owner on May 30, 2023. It is now read-only.

Commit af5f49c

Browse files
committed
Only add '-vcodec copy' when there is no video filter
Otherwise the video filters aren't run.
1 parent 959204e commit af5f49c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/org/ffmpeg/android/FfmpegController.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,11 @@ public void concatAndTrimFilesMP4Stream (ArrayList<MediaDesc> videos,MediaDesc o
541541

542542
MediaDesc mInCat = new MediaDesc();
543543
mInCat.path = mCatPath;
544-
out.videoCodec = "copy";
544+
545+
if( out.videoFilter == null ) {
546+
out.videoCodec = "copy";
547+
}
548+
545549
out.audioCodec = "copy";
546550
out.audioBitStreamFilter = "aac_adtstoasc";
547551

0 commit comments

Comments
 (0)