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: Avoid setting negative bitrate for lossless audio codec #11510

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tytan652
Copy link
Collaborator

@tytan652 tytan652 commented Nov 12, 2024

Description

Fixes #11504

Since FFmpeg 7.1 a check was added to disallow pre-initializing encoder with a negative bitrate.

FFmpeg/FFmpeg@74385dd

Motivation and Context

In the future we will support FFmpeg 7.1.

How Has This Been Tested?

Try to ran Replay buffer with FLAC and PCM with OBS Studio built with FFmpeg 7.1, without the PR the audio encoder will not start.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • My code has been run through clang-format.
  • I have read the contributing document.
  • My code is not on the master branch.
  • The code has been tested.
  • All commit messages are properly formatted and commits squashed where appropriate.
  • I have included updates to all appropriate documentation.

Since FFmpeg 7.1 a check was added to disallow pre-initializing encoder
with a negative bitrate.

FFmpeg/FFmpeg@74385dd
@tytan652 tytan652 requested a review from derrod November 12, 2024 09:42
@tytan652 tytan652 added the Bug Fix Non-breaking change which fixes an issue label Nov 12, 2024
Copy link
Member

@pkviet pkviet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Fix Non-breaking change which fixes an issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OBS Studio 31.0.0 Beta 3 - All Lossless Audio Codecs don't work after FFmpeg 7.1 update
3 participants