Obs allows selecting opus audio codec for recording. Without opus support in ffmpeg you only hear static. Reproducible: Always Steps to Reproduce: 1. build OBS without ffmpeg having opus USE flag 2. set audio encoder in recording to ffmpeg opus 3. record some audio Actual Results: Playing the video you only hear static. Expected Results: Video should contain proper audio.
Could this also be reproducible with the FLAC encoder if you are missing media-libs/flac? I don't see it as a dependency, but I can't remove it in order to test, because some of my installed packages depend on it.
I don't have media-libs/flac installed but recording with the encoder set to ffmpeg flac (16-bit) works fine.
Hm, yeah, it behaves quite odd-like. I do get audio, but there's a bunch of garbage included (it also changes a bit according to the bitrate used). Have not looked at the code to know what is going on there, but it seems there might be some upstream issues with it. I don't think there are any build-time switches either, so will probably need to add a dependency. Thank you for the report!
I noticed that with USE="-opus", only the 'libopus' encoder gets disabled, but 'opus' remains, so perhaps OBS Studio is trying to use that and it's not quite working as expected. If I disable opus as well with '--disable-encoder=opus', then OBS Studio will throw an error about not finding the encoder (things also work with enabling only 'libopus').
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a429beb18c0b6dbeba35f9a8037ae9cad039ab4c commit a429beb18c0b6dbeba35f9a8037ae9cad039ab4c Author: Jimi Huotari <chiitoo@gentoo.org> AuthorDate: 2023-07-26 16:58:46 +0000 Commit: Jimi Huotari <chiitoo@gentoo.org> CommitDate: 2023-07-26 17:40:41 +0000 media-video/obs-studio: add ffmpeg[opus] dependency With USE="-opus" and without '--disable-encoder=opus' on ffmpeg, obs-studio still offers to use the Opus encoder and the audio that is recorded will be mixed with different kinds of noise, depending somewhat on the bitrate being used. Closes: https://bugs.gentoo.org/909566 Signed-off-by: Jimi Huotari <chiitoo@gentoo.org> media-video/obs-studio/obs-studio-29.1.3-r1.ebuild | 270 +++++++++++++++++++++ media-video/obs-studio/obs-studio-9999.ebuild | 3 +- 2 files changed, 272 insertions(+), 1 deletion(-)
I just synced my ebuilds and ran into an ffmpeg conflict with two major parents: - `sci-libs/opencascade` which requires <ffmpeg-5 (aka ffmpeg 4) because of https://tracker.dev.opencascade.org/view.php?id=32871 - and `media-video/obs-studio which requires ffmpeg-6 (latest) Is there a reason why obs-studio has to pull ffmpeg-6?
(In reply to bajcsielias78 from comment #6) > I just synced my ebuilds and ran into an ffmpeg conflict with two major > parents: > - `sci-libs/opencascade` which requires <ffmpeg-5 (aka ffmpeg 4) because of > https://tracker.dev.opencascade.org/view.php?id=32871 > - and `media-video/obs-studio which requires ffmpeg-6 (latest) > > Is there a reason why obs-studio has to pull ffmpeg-6? Hmmm, I can't think of any. It does look like 4.4.4-r2 at least has USE="opus" too, so that's not it... Please open a new bug for the issue, with the emerge output included, post at our forums, or visit some of our IRC channels (I'm in #gentoo-qt for example at Libera Chat).