Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement an FfmpegVideoRenderer #1591

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Opt. Ffmpeg avcodec decode speed by multithreading
  • Loading branch information
rabbitknight committed Aug 15, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 24cc94504f5aa59bf0e8310d01c9d10055e5afe8
2 changes: 1 addition & 1 deletion libraries/decoder_ffmpeg/src/main/jni/ffmpeg_jni.cc
Original file line number Diff line number Diff line change
@@ -674,10 +674,10 @@ JniContext *createVideoContext(JNIEnv *env,
}

// opt decode speed.
codecContext->flags |= AV_CODEC_FLAG_LOW_DELAY;
codecContext->skip_loop_filter = AVDISCARD_ALL;
codecContext->skip_frame = AVDISCARD_DEFAULT;
codecContext->thread_count = threads;
codecContext->thread_type = FF_THREAD_FRAME;
codecContext->err_recognition = AV_EF_IGNORE_ERR;
int result = avcodec_open2(codecContext, codec, NULL);
if (result < 0) {