Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 892862 - media-video/obs-studio missing dependency on media-video/ffmpeg[vaapi]
Summary: media-video/obs-studio missing dependency on media-video/ffmpeg[vaapi]
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Chiitoo
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-01 21:16 UTC by David Truby
Modified: 2023-05-06 11:11 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 David Truby 2023-02-01 21:16:24 UTC
obs-ffmpeg.so from media-video/obs-studio can't be opened unless ffmpeg was built with the vaapi USE flag. The obs-studio ebuild should have a dependency on ffmpeg with vaapi to fix this.
I determined this from the following line:
error: os_dlopen(/usr//lib64/obs-plugins/obs-ffmpeg.so->/usr//lib64/obs-plugins/obs-ffmpeg.so): /usr//lib64/obs-plugins/obs-ffmpeg.so: undefined symbol: vaGetDisplayDRM
in my OBS debug output (full debug output in the pastebin attached)
https://paste.debian.net/1269399/

Reproducible: Always

Steps to Reproduce:
1. build OBS without ffmpeg having vaapi USE flag
2. run OBS
Actual Results:  
OBS crashes with:
"error: Failed to create aac streaming encoder (simple output)"

Expected Results:  
OBS launches successfully
Comment 1 Chiitoo gentoo-dev 2023-02-05 19:55:02 UTC
I'm unable to reproduce the crash.

I get "error: Encoder ID 'ffmpeg_vaapi' not found" logged, and things go on as per the usual (and I even had 'vaapi' in use in my config prior to testing this, which was automatically deselected without issues).

The 'vaGetDisplayDRM' might be a related to 'media-libs/libva' in some way, but I couldn't get things to crash without that either so far.

Furthermore, I wonder if the 'aac' message is pointing towards some issue with audio instead, if that indeed is the last message before the crash (I wonder if there is anything more about that in the full debug output, for which the "paste" seems to be gone at the time of writing this).

At the very least, I should perhaps add a message of sorts to the ebuild hinting towards enabling 'vaapi' for those who can make use of it.
Comment 2 Larry the Git Cow gentoo-dev 2023-05-06 11:00:14 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=be57f350c61a7f2de4e4ec3d269cc4d20e76b910

commit be57f350c61a7f2de4e4ec3d269cc4d20e76b910
Author:     Jimi Huotari <chiitoo@gentoo.org>
AuthorDate: 2023-05-06 10:09:44 +0000
Commit:     Jimi Huotari <chiitoo@gentoo.org>
CommitDate: 2023-05-06 11:00:05 +0000

    media-video/obs-studio: update dependencies and remove -Werror
    
    Also add an 'optfeature' for ffmpeg[vaapi], a "calm deprecation"
    compile-time option, and disable automagical ccache.
    
    Closes: https://bugs.gentoo.org/892862
    Closes: https://bugs.gentoo.org/904482
    Signed-off-by: Jimi Huotari <chiitoo@gentoo.org>

 media-video/obs-studio/Manifest               |  3 +++
 media-video/obs-studio/obs-studio-9999.ebuild | 36 ++++++++++++++-------------
 2 files changed, 22 insertions(+), 17 deletions(-)
Comment 3 Chiitoo gentoo-dev 2023-05-06 11:11:53 UTC
I've added a post-install message for ffmpeg[vaapi] as a hint now.

If the crash is still happening, please feel free to re-open.

Thank you!