
Code: Select all
equery f obs-studio | grep conf
Code: Select all
/etc/ssl/certs/ca-certificates.crt
###also please try this
ln -s /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-bundle.pem

alamahant wrote:Hi
Please try to locate the config file for obs --if any and find and enable a setting that allows for less stringent cert checking.
You can try to locate this config file by runningAlso it might be searching for this fileCode: Select all
equery f obs-studio | grep conf
Do you have this file?Code: Select all
/etc/ssl/certs/ca-certificates.crt ###also please try this ln -s /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-bundle.pem
Also check the config file or command line option to have this cert in a different location and make sure that obs has permission to read it.
To best debug this issue try to stream using the command line and a verbose or debug option if available
Code: Select all
/usr/include/obs/obs-config.h
/usr/include/obs/obsconfig.h
/usr/include/obs/util/config-file.h
/usr/lib64/pkgconfig
/usr/lib64/pkgconfig/libobs.pc
Code: Select all
mkdir -p /etc/portage/patches/media-video/obs-studio-<version>
cat >> /etc/portage/patches/media-video/obs-studio-<version>/rmtps.diff << EOF
--- a/plugins/obs-outputs/librtmp/rtmp.c
+++ b/plugins/obs-outputs/librtmp/rtmp.c
@@ -344,7 +344,7 @@ RTMP_TLS_LoadCerts() {
CFRelease(keychain_ref);
#elif defined(__linux__)
- if (mbedtls_x509_crt_parse_path(chain, "/etc/ssl/certs/") != 0) {
+ if (mbedtls_x509_crt_parse_path(chain, "/etc/ssl/certs/") < 0) {
goto error;
}
#endif
EOF
emerge -1av obs-studio

That's a little bit old by now, and the change is in the current versions already. :]alamahant wrote:Please have a look in this thread
viewtopic-t-1106418-start-0.html
This is the patch you need probably
https://github.com/obsproject/obs-studi ... 2314/files

Code: Select all
Applying obs-studio-26.1.2-fix-alsa-crash.patch ... [ ok ]
* Applying rtmps.diff ...
patching file plugins/obs-outputs/librtmp/rtmp.c
Hunk #1 FAILED at 344.
1 out of 1 hunk FAILED -- saving rejects to file plugins/obs-outputs/librtmp/rtmp.c.rej [ !! ]
* ERROR: media-video/obs-studio-26.1.2::gentoo failed (prepare phase):
* patch -p1 failed with /etc/portage/patches/media-video/obs-studio-26.1.2/rtmps.diff
*
* Call stack:
* ebuild.sh, line 125: Called src_prepare
* environment, line 3522: Called cmake_src_prepare
* environment, line 1573: Called default_src_prepare
* phase-functions.sh, line 920: Called __eapi6_src_prepare
* environment, line 331: Called eapply_user
* environment, line 1754: Called eapply '/etc/portage/patches/media-video/obs-studio-26.1.2/rtmps.diff'
* environment, line 1724: Called _eapply_patch '/etc/portage/patches/media-video/obs-studio-26.1.2/rtmps.diff'
* environment, line 1662: Called __helpers_die 'patch -p1 failed with /etc/portage/patches/media-video/obs-studio-26.1.2/rtmps.diff'
* isolated-functions.sh, line 112: Called die
* The specific snippet of code:
* die "$@"
*
* If you need support, post the output of `emerge --info '=media-video/obs-studio-26.1.2::gentoo'`,
* the complete build log and the output of `emerge -pqv '=media-video/obs-studio-26.1.2::gentoo'`.
* The complete build log is located at '/var/tmp/portage/media-video/obs-studio-26.1.2/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/media-video/obs-studio-26.1.2/temp/environment'.
* Working directory: '/var/tmp/portage/media-video/obs-studio-26.1.2/work/obs-studio-26.1.2'
* S: '/var/tmp/portage/media-video/obs-studio-26.1.2/work/obs-studio-26.1.2'
>>> Failed to emerge media-video/obs-studio-26.1.2, Log file:
>>> '/var/tmp/portage/media-video/obs-studio-26.1.2/temp/build.log'
* Messages for package media-video/obs-studio-26.1.2:
* ERROR: media-video/obs-studio-26.1.2::gentoo failed (prepare phase):
* patch -p1 failed with /etc/portage/patches/media-video/obs-studio-26.1.2/rtmps.diff
*
* Call stack:
* ebuild.sh, line 125: Called src_prepare
* environment, line 3522: Called cmake_src_prepare
* environment, line 1573: Called default_src_prepare
* phase-functions.sh, line 920: Called __eapi6_src_prepare
* environment, line 331: Called eapply_user
* environment, line 1754: Called eapply '/etc/portage/patches/media-video/obs-studio-26.1.2/rtmps.diff'
* environment, line 1724: Called _eapply_patch '/etc/portage/patches/media-video/obs-studio-26.1.2/rtmps.diff'
* environment, line 1662: Called __helpers_die 'patch -p1 failed with /etc/portage/patches/media-video/obs-studio-26.1.2/rtmps.diff'
* isolated-functions.sh, line 112: Called die
* The specific snippet of code:
* die "$@"
*
* If you need support, post the output of `emerge --info '=media-video/obs-studio-26.1.2::gentoo'`,
* the complete build log and the output of `emerge -pqv '=media-video/obs-studio-26.1.2::gentoo'`.
* The complete build log is located at '/var/tmp/portage/media-video/obs-studio-26.1.2/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/media-video/obs-studio-26.1.2/temp/environment'.
* Working directory: '/var/tmp/portage/media-video/obs-studio-26.1.2/work/obs-studio-26.1.2'
* S: '/var/tmp/portage/media-video/obs-studio-26.1.2/work/obs-studio-26.1.2'
Code: Select all
info: [rtmp stream: 'adv_stream'] Dynamic bitrate enabled. Dropped frames begone!
info: [rtmp stream: 'adv_stream'] Connecting to RTMP URL rtmps://video.anathonous.cf/live...
info: [rtmp stream: 'adv_stream'] Binding to IPv4
info: HandShake: Type mismatch: client sent 3, server answered 72
info: RTMPSockBuf_Fill, remote host closed connection
info: RTMP_Connect1, handshake failed.
info: [rtmp stream: 'adv_stream'] Connection to rtmps://video.anathonous.cf/live failed: -2
info: ==== Streaming Stop ================================================



Code: Select all
Would you like to merge these packages? [Yes/No] yes
>>> Verifying ebuild manifests
>>> Emerging (1 of 1) media-video/obs-studio-26.1.2::gentoo
* obs-studio-26.1.2.tar.gz BLAKE2B SHA512 size ;-) ... [ ok ]
>>> Unpacking source...
>>> Unpacking obs-studio-26.1.2.tar.gz to /var/tmp/portage/media-video/obs-studio-26.1.2/work
>>> Source unpacked in /var/tmp/portage/media-video/obs-studio-26.1.2/work
>>> Preparing source in /var/tmp/portage/media-video/obs-studio-26.1.2/work/obs-studio-26.1.2 ...
* Applying obs-studio-26.1.2-fix-alsa-crash.patch ... [ ok ]
* Applying 18156.diff ...
can't find file to patch at input line 20
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|From 34a1dad2dac9803dc84f5e06ecfbcd88d6dc807c Mon Sep 17 00:00:00 2001
|From: Gergely Nagy <ngg@ngg.hu>
|Date: Fri, 6 Nov 2020 18:29:43 +0100
|Subject: [PATCH] media-video/obs-studio: add browser source support
|
|Closes: https://bugs.gentoo.org/717002
|Signed-off-by: Gergely Nagy <ngg@ngg.hu>
|---
| media-video/obs-studio/Manifest | 2 +
| media-video/obs-studio/metadata.xml | 1 +
| .../obs-studio/obs-studio-26.1.2-r1.ebuild | 205 ++++++++++++++++++
| media-video/obs-studio/obs-studio-9999.ebuild | 56 ++++-
| 4 files changed, 261 insertions(+), 3 deletions(-)
| create mode 100644 media-video/obs-studio/obs-studio-26.1.2-r1.ebuild
|
|diff --git a/media-video/obs-studio/Manifest b/media-video/obs-studio/Manifest
|index fb9bdc10f8739..819b412479472 100644
|--- a/media-video/obs-studio/Manifest
|+++ b/media-video/obs-studio/Manifest
--------------------------
No file to patch. Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 29
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/media-video/obs-studio/metadata.xml b/media-video/obs-studio/metadata.xml
|index 603cd8cc27ce0..e2dfc144a7831 100644
|--- a/media-video/obs-studio/metadata.xml
|+++ b/media-video/obs-studio/metadata.xml
--------------------------
No file to patch. Skipping patch.
1 out of 1 hunk ignored
patching file media-video/obs-studio/obs-studio-26.1.2-r1.ebuild
can't find file to patch at input line 252
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/media-video/obs-studio/obs-studio-9999.ebuild b/media-video/obs-studio/obs-studio-9999.ebuild
|index e9173352238bf..a55cb907b443a 100644
|--- a/media-video/obs-studio/obs-studio-9999.ebuild
|+++ b/media-video/obs-studio/obs-studio-9999.ebuild
--------------------------
No file to patch. Skipping patch.
5 out of 5 hunks ignored [ !! ]
* ERROR: media-video/obs-studio-26.1.2::gentoo failed (prepare phase):
* patch -p1 failed with /etc/portage/patches/media-video/obs-studio-26.1.2/18156.diff
*
* Call stack:
* ebuild.sh, line 125: Called src_prepare
* environment, line 3517: Called cmake_src_prepare
* environment, line 1568: Called default_src_prepare
* phase-functions.sh, line 920: Called __eapi6_src_prepare
* environment, line 326: Called eapply_user
* environment, line 1749: Called eapply '/etc/portage/patches/media-video/obs-studio-26.1.2/18156.diff'
* environment, line 1719: Called _eapply_patch '/etc/portage/patches/media-video/obs-studio-26.1.2/18156.diff'
* environment, line 1657: Called __helpers_die 'patch -p1 failed with /etc/portage/patches/media-video/obs-studio-26.1.2/18156.diff'
* isolated-functions.sh, line 112: Called die
* The specific snippet of code:
* die "$@"
*
* If you need support, post the output of `emerge --info '=media-video/obs-studio-26.1.2::gentoo'`,
* the complete build log and the output of `emerge -pqv '=media-video/obs-studio-26.1.2::gentoo'`.
* The complete build log is located at '/var/tmp/portage/media-video/obs-studio-26.1.2/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/media-video/obs-studio-26.1.2/temp/environment'.
* Working directory: '/var/tmp/portage/media-video/obs-studio-26.1.2/work/obs-studio-26.1.2'
* S: '/var/tmp/portage/media-video/obs-studio-26.1.2/work/obs-studio-26.1.2'
>>> Failed to emerge media-video/obs-studio-26.1.2, Log file:
>>> '/var/tmp/portage/media-video/obs-studio-26.1.2/temp/build.log'
* Messages for package media-video/obs-studio-26.1.2:
* ERROR: media-video/obs-studio-26.1.2::gentoo failed (prepare phase):
* patch -p1 failed with /etc/portage/patches/media-video/obs-studio-26.1.2/18156.diff
*
* Call stack:
* ebuild.sh, line 125: Called src_prepare
* environment, line 3517: Called cmake_src_prepare
* environment, line 1568: Called default_src_prepare
* phase-functions.sh, line 920: Called __eapi6_src_prepare
* environment, line 326: Called eapply_user
* environment, line 1749: Called eapply '/etc/portage/patches/media-video/obs-studio-26.1.2/18156.diff'
* environment, line 1719: Called _eapply_patch '/etc/portage/patches/media-video/obs-studio-26.1.2/18156.diff'
* environment, line 1657: Called __helpers_die 'patch -p1 failed with /etc/portage/patches/media-video/obs-studio-26.1.2/18156.diff'
* isolated-functions.sh, line 112: Called die
* The specific snippet of code:
* die "$@"
*
* If you need support, post the output of `emerge --info '=media-video/obs-studio-26.1.2::gentoo'`,
* the complete build log and the output of `emerge -pqv '=media-video/obs-studio-26.1.2::gentoo'`.
* The complete build log is located at '/var/tmp/portage/media-video/obs-studio-26.1.2/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/media-video/obs-studio-26.1.2/temp/environment'.
* Working directory: '/var/tmp/portage/media-video/obs-studio-26.1.2/work/obs-studio-26.1.2'
* S: '/var/tmp/portage/media-video/obs-studio-26.1.2/work/obs-studio-26.1.2'
Observable /etc/portage/patches/media-video/obs-studio-26.1.2 #

It's not quite that simple in this case.Chiitoo wrote:You can use the same way to patch that you tried previously.


Thank you, I now know how to use a local repo and ebuilds. I still can't find the alsa patch you are talking about though. It griped about it.Chiitoo wrote:Oops, sorry, I was at least half asleep when I wrote
It's not quite that simple in this case.Chiitoo wrote:You can use the same way to patch that you tried previously.
You could patch the ebuild directly, but that's not exactly a clean way to go about it (and the changes would be reverted when you sync).
Setting up a local overlay would be ideal. It will basically be a just another repository for ebuilds to install from.
Some directions towards setting it up here:
https://wiki.gentoo.org/wiki/Handbook:P ... al_ebuilds
When done, place the ebuild file from the pull request there, under 'media-video/obs-studio/' and run 'ebuild obs-studio-26.1.2-r1.ebuild manifest'.
Here's a direct link to the raw file:
https://raw.githubusercontent.com/gento ... -r1.ebuild
Place the meta data file there as well:
https://raw.githubusercontent.com/gento ... tadata.xml
Additionally, the ALSA patch will be needed under a 'files' directory. You can copy it from the official repository.
These are just quick directions and I may have missed a step here or/and there.

