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

obs-ffmpeg: av_register_all before checking for nvenc #1157

Closed
wants to merge 1 commit into from

Conversation

lucianposton
Copy link
Contributor

@lucianposton lucianposton commented Jan 17, 2018

avcodec_find_encoder_by_name("nvenc_h264") returns NULL on my system with ffmpeg-3.3.6 and ffmpeg-3.4.1.

This patch adds a call to av_register_all() before avcodec_find_encoder_by_name() so that it is able to find the encoder.

@jp9000
Copy link
Member

jp9000 commented Jan 18, 2018

Merging shortly, you'll see "closed in [commit]".

@jp9000 jp9000 closed this in ff45b7b Jan 18, 2018
@lucianposton lucianposton deleted the fix-nvenc branch January 18, 2018 20:40
Andersama pushed a commit to Andersama/obs-studio that referenced this pull request Sep 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants