When running obs-studio 28.1.2, as soon as I attempt to start streaming to an RTMP output source, such as Youtube, I get the following error and OBS crashes: obs: symbol lookup error: /usr//lib64/obs-plugins/obs-outputs.so: undefined symbol: RTMP_LogSetCallback This only occurs *when attempting to start an RTMP stream* (Youtube in my case). It is not reproducible in any way without hitting "Start Streaming" AFAICT. Rolling back to 27.2.4-r1 removes the error. Although RTMP streaming still doesn't work for unspecified reasons (it disconnects quickly). I'm not convinced that failure is a bug in the package; and if so, it's certainly not *this* bug. Reproducible: Always Steps to Reproduce: 1. Launch OBS Studio 2. Configure a Youtube RTMP output stream 3. Start Streaming Actual Results: obs: symbol lookup error: /usr//lib64/obs-plugins/obs-outputs.so: undefined symbol: RTMP_LogSetCallback and OBS crashes Expected Results: OBS starts streaming and does not crash. I also have media-video/obs-vkcapture-1.2.0 installed; but I'm almost certain that will not be related. Portage 3.0.38.1 (python 3.10.8-final-0, default/linux/amd64/17.1/desktop/gnome/systemd, gcc-11.3.0, glibc-2.35-r8, 6.0.7-gentoo-dist x86_64) ================================================================= System uname: Linux-6.0.7-gentoo-dist-x86_64-12th_Gen_Intel-R-_Core-TM-_i7-1260P-with-glibc2.35 KiB Mem: 32577592 total, 12597100 free KiB Swap: 67107836 total, 67107836 free Timestamp of repository gentoo: Thu, 10 Nov 2022 19:16:52 +0000 Head commit of repository gentoo: ebef7be669705588eafa8c240a075f97ca54556b Timestamp of repository bombo82: Sat, 05 Nov 2022 17:46:45 +0000 Head commit of repository bombo82: 48e525e243327693d4a5efabff8b64df8e1c065e Timestamp of repository dilfridge: Mon, 07 Nov 2022 13:32:12 +0000 Head commit of repository dilfridge: b8b805eaaa55a2126dca570384f1d456e3cb7750 Timestamp of repository gentoo-zh: Thu, 10 Nov 2022 18:21:44 +0000 Head commit of repository gentoo-zh: f3b0728b1d5d1746b6c4224af5ae62ca56484d68 Timestamp of repository guru: Thu, 10 Nov 2022 18:21:47 +0000 Head commit of repository guru: 25bae1c64e0747ce0849ea7e66e9fdddf2271ec5 sh bash 5.1_p16-r2 ld GNU ld (Gentoo 2.38 p4) 2.38 distcc 3.4 x86_64-pc-linux-gnu [disabled] app-misc/pax-utils: 1.3.5::gentoo app-shells/bash: 5.1_p16-r2::gentoo dev-lang/perl: 5.34.1-r4::gentoo dev-lang/python: 3.8.15_p2::gentoo, 3.9.15_p2::gentoo, 3.10.8_p2::gentoo, 3.11.0_p1::gentoo dev-lang/rust-bin: 1.64.0-r1::gentoo dev-util/cmake: 3.24.2::gentoo dev-util/meson: 0.63.2-r1::gentoo sys-apps/baselayout: 2.8::gentoo sys-apps/sandbox: 2.29::gentoo sys-apps/systemd: 251.4::gentoo sys-devel/autoconf: 2.13-r2::gentoo, 2.71-r1::gentoo sys-devel/automake: 1.16.5::gentoo sys-devel/binutils: 2.38-r2::gentoo sys-devel/binutils-config: 5.4.1::gentoo sys-devel/clang: 14.0.6-r1::gentoo, 15.0.3::gentoo sys-devel/gcc: 11.3.0::gentoo sys-devel/gcc-config: 2.8::gentoo sys-devel/libtool: 2.4.7::gentoo sys-devel/llvm: 14.0.6-r2::gentoo, 15.0.3::gentoo sys-devel/make: 4.3::gentoo sys-kernel/linux-headers: 6.0::gentoo (virtual/os-headers) sys-libs/glibc: 2.35-r8::gentoo sys-libs/libselinux: 3.4::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: git sync-uri: https://github.com/gentoo-mirror/gentoo.git priority: -1000 sync-git-verify-commit-signature: true bombo82 location: /var/db/repos/bombo82 sync-type: git sync-uri: https://github.com/gentoo-mirror/bombo82.git masters: gentoo dilfridge location: /var/db/repos/dilfridge sync-type: git sync-uri: https://github.com/gentoo-mirror/dilfridge.git masters: gentoo gentoo-zh location: /var/db/repos/gentoo-zh sync-type: git sync-uri: https://github.com/gentoo-mirror/gentoo-zh.git masters: gentoo guru location: /var/db/repos/guru sync-type: git sync-uri: https://github.com/gentoo-mirror/guru.git masters: gentoo local location: /var/db/repos/local masters: gentoo ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=alderlake -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=alderlake -O2 -pipe" DISTDIR="/var/cache/distfiles" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME" FCFLAGS="-march=alderlake -O2 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-march=alderlake -O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j17" PKGDIR="/var/cache/binpkgs" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" SHELL="/bin/bash" USE="X a52 aac acl acpi alsa amd64 appindicator bluetooth branding bzip2 cairo cdda cdr cli colord crypt cups dbus dri dts dvd dvdr eds encode evo exif flac fontconfig fortran fprint gdbm gif gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk gui harfbuzz iconv icu introspection ipv6 jpeg lcms libglvnd libnotify libsecret libtirpc mad mng mp3 mp4 mpeg multilib nautilus ncurses networkmanager nls nptl ogg opengl openmp pam pango pcre pdf plymouth png policykit ppds pulseaudio qt5 readline screencast sdl seccomp spell split-usr ssl startup-notification svg sysprof systemd test-rust tiff tracker truetype udev udisks unicode upower usb vaapi vorbis wayland wxwidgets x264 xattr xcb xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2020" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en en-US" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_9 python3_10" RUBY_TARGETS="ruby27" USERLAND="GNU" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Adding +librtmp to ffmpeg changes the error I get to: obs: symbol lookup error: /usr//lib64/obs-plugins/obs-outputs.so: undefined symbol: RTMP_TLS_Free
I think the previous improvement might have only been because it pulled in media-video/rtmpdump
obs-studio bundles its own librtmp, unsure why rtmpdump or ffmpeg[librtmp] would change anything e.g. both functions are defined at: plugins/obs-outputs/librtmp/log.c:void RTMP_LogSetCallback(RTMP_LogCallback *cbp) plugins/obs-outputs/librtmp/rtmp.c:RTMP_TLS_Free(RTMP *r) { Not that I looked too deep into this, maybe it didn't get used (haven't tried to reproduce).
ftr, you didn't build obs-studio with USE=-ssl right? (this changes rtmp paths a bit and it's probably not very much tested). I'd assume not given you have ssl in global USE, but asking in case.
28.1.2(04:27:36 PM 11/10/2022)(alsa browser lua pipewire pulseaudio python ssl truetype v4l vlc wayland -decklink -fdk -jack -nvenc -qt6 -speex -websocket LUA_SINGLE_TARGET="luajit" PYTHON_SINGLE_TARGET="python3_10 -python3_8 -python3_9 -python3_11")
I'll use the new information about it bundling it's own librtmp to try and dig this further.
Had asked back on the PR why the "ON OFF" with RTMPS but think I see why now :| Rather than a boolean check, it's doing that: if(ENABLE_RTMPS STREQUAL "AUTO" OR ENABLE_RTMPS STREQUAL "ON") Aka checks for exactly "ON" so RTMPS is not being enabled right now with =yes
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cc5225f16304b5f66fe55e8981d30af624b3cb40 commit cc5225f16304b5f66fe55e8981d30af624b3cb40 Author: Jay Faulkner <jay@jvf.cc> AuthorDate: 2022-11-11 02:14:43 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-11-12 06:14:31 +0000 media-video/obs-studio: Fix usex SSL to use ON/OFF This fixes the issue where RTMPS streaming would cause crashes. (sam: Ionen notes in the bug that CMakeLists.txt does an unusual literal comparison rather than evaluating...) Closes: https://bugs.gentoo.org/880861 Signed-off-by: Jay Faulkner <jay@jvf.cc> Closes: https://github.com/gentoo/gentoo/pull/28220 Signed-off-by: Sam James <sam@gentoo.org> .../{obs-studio-28.1.2.ebuild => obs-studio-28.1.2-r1.ebuild} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Oh, heh, I guess I forgot more about that than I thought. Thanks!