Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 909566 - media-video/obs-studio missing dependency on media-video/ffmpeg[opus]
Summary: media-video/obs-studio missing dependency on media-video/ffmpeg[opus]
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Chiitoo
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-07-03 13:53 UTC by rogerroger
Modified: 2023-07-30 17:43 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description rogerroger 2023-07-03 13:53:19 UTC
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.
Comment 1 Kostadin Shishmanov 2023-07-03 20:41:36 UTC
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.
Comment 2 rogerroger 2023-07-04 10:55:06 UTC
I don't have media-libs/flac installed but recording with the encoder set to ffmpeg flac (16-bit) works fine.
Comment 3 Chiitoo gentoo-dev 2023-07-05 10:25:48 UTC
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!
Comment 4 Chiitoo gentoo-dev 2023-07-26 16:10:40 UTC
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').
Comment 5 Larry the Git Cow gentoo-dev 2023-07-26 17:41:14 UTC
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(-)
Comment 6 bajcsielias78 2023-07-30 13:03:04 UTC
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?
Comment 7 Chiitoo gentoo-dev 2023-07-30 17:43:39 UTC
(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).