LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-14-2016, 02:41 PM   #1
af7567
Member
 
Registered: Nov 2012
Posts: 297

Rep: Reputation: 106Reputation: 106
Anyone got obs-studio working on slackware current?


Hi,

I am trying to get obs-studio to work on slackware64 current, but when I start it up I get the messages:
Code:
error: Output ID 'rtmp_output' not found
error: Failed to create output 'simple_stream'!
info: output 'simple_stream' (rtmp_output) created
error: Encoder ID 'obs_x264' not found
info: encoder 'simple_h264_stream' (obs_x264) created
error: Failed to get properties for encoder '' (ffmpeg_aac)
error: Could not enumerate any AAC encoder bitrates
info: encoder 'simple_h264_stream' destroyed
info: output 'simple_stream' destroyed
error: Failed to create aac streaming encoder (simple output)
and a popup window saying "Failed to create aac streaming encoder (simple output)"

I compiled obs-studio from the slackbuild from slackbuilds.org. I also compiled x264 and ffmpeg using slackbuilds.org too. When building ffmpeg I used the options:
FAAC=yes LAME=yes OPENSSL=yes PULSEAUDIO=yes RTMP=yes X264=yes XVID=yes

I tried with obs-studio 0.12.3, and also changed the slackbuild to compile 0.14.1. Same problem with both.

My graphics card is an nvidia GTX560Ti using the proprietary drivers (also installed from slackbuilds.org)

Full output of obs command:
Code:
$ obs
Attempted path: share/obs/obs-studio/locale/en-US.ini
Attempted path: /usr/share/obs/obs-studio/locale/en-US.ini
Attempted path: share/obs/obs-studio/locale.ini
Attempted path: /usr/share/obs/obs-studio/locale.ini
Attempted path: share/obs/obs-studio/themes/Default.qss
Attempted path: /usr/share/obs/obs-studio/themes/Default.qss
Attempted path: share/obs/obs-studio/license/gplv2.txt
Attempted path: /usr/share/obs/obs-studio/license/gplv2.txt
info: Processor: 8 logical cores
info: Processor: AMD FX(tm)-8120 Eight-Core Processor
info: Physical Memory: 15971MB Total
info: Kernel Version: Linux 4.4.10af
info: Distribution: Slackware 14.2
QObject::connect: invalid null parameter
info: OBS 0.0.1 (linux)
info: ---------------------------------
info: ---------------------------------
info: audio settings reset:
	samples per sec: 44100
	speakers:        2
info: OpenGL version: 3.2.0 NVIDIA 361.42

info: ---------------------------------
info: video settings reset:
	base resolution:   1920x1080
	output resolution: 1280x720
	fps:               30/1
	format:            NV12
info: =====================================================================
error: Output ID 'rtmp_output' not found
error: Failed to create output 'simple_stream'!
info: output 'simple_stream' (rtmp_output) created
error: Encoder ID 'obs_x264' not found
info: encoder 'simple_h264_stream' (obs_x264) created
error: Failed to get properties for encoder '' (ffmpeg_aac)
error: Could not enumerate any AAC encoder bitrates
info: encoder 'simple_h264_stream' destroyed
info: output 'simple_stream' destroyed
error: Failed to create aac streaming encoder (simple output)
info: Freeing OBS context data
info: == Profiler Results =============================
info: run_program_init: 2622.94*ms
info:  ┣OBSApp::AppInit: 1.192*ms
info:  ┃ ┗OBSApp::InitLocale: 0.949*ms
info:  ┗OBSApp::OBSInit: 363.852*ms
info:    ┣obs_startup: 1.473*ms
info:    ┗OBSBasic::OBSInit: 241.052*ms
info:      ┣OBSBasic::InitBasicConfig: 0.403*ms
info:      ┣OBSBasic::ResetAudio: 0.088*ms
info:      ┣OBSBasic::ResetVideo: 240.046*ms
info:      ┣OBSBasic::InitOBSCallbacks: 0.007*ms
info:      ┣OBSBasic::InitHotkeys: 0.05*ms
info:      ┣obs_load_all_modules: 0.023*ms
info:      ┗OBSBasic::ResetOutputs: 0.4*ms
info: obs_hotkey_thread(25*ms): min=0.112*ms, median=0.245*ms, max=26.165*ms, 99th percentile=26.165*ms, 98.9583% below 25*ms
info: audio_thread(Audio): min=0.013*ms, median=0.017*ms, max=0.055*ms, 99th percentile=0.038*ms
info: obs_video_thread(33.3333*ms): min=0.993*ms, median=1.489*ms, max=58.585*ms, 99th percentile=58.585*ms, 98.4375% below 33.333*ms
info:  ┣tick_sources: min=0*ms, median=0.001*ms, max=0.002*ms, 99th percentile=0.002*ms
info:  ┣render_displays: min=0.19*ms, median=0.298*ms, max=44.886*ms, 99th percentile=44.886*ms
info:  ┗output_frame: min=0.687*ms, median=1.18*ms, max=13.695*ms, 99th percentile=13.695*ms
info:    ┣gs_context(video->graphics): min=0.361*ms, median=0.648*ms, max=13.694*ms, 99th percentile=13.694*ms
info:    ┃ ┣render_video: min=0.227*ms, median=0.401*ms, max=10.976*ms, 99th percentile=10.976*ms
info:    ┃ ┃ ┣render_main_texture: min=0.065*ms, median=0.109*ms, max=4.743*ms, 99th percentile=4.743*ms
info:    ┃ ┃ ┣render_output_texture: min=0.008*ms, median=0.118*ms, max=9.308*ms, 99th percentile=9.308*ms
info:    ┃ ┃ ┣render_convert_texture: min=0.001*ms, median=0.083*ms, max=1.102*ms, 99th percentile=1.102*ms
info:    ┃ ┃ ┗stage_output_texture: min=0*ms, median=0.055*ms, max=5.69*ms, 99th percentile=5.69*ms
info:    ┃ ┣download_frame: min=0*ms, median=0.004*ms, max=0.026*ms, 99th percentile=0.026*ms
info:    ┃ ┗gs_flush: min=0.007*ms, median=0.011*ms, max=0.022*ms, 99th percentile=0.022*ms
info:    ┗output_video_data: min=0.3*ms, median=0.477*ms, max=1.993*ms, 99th percentile=1.993*ms, 0.9375 calls per parent call
info: video_thread(video): min=0.001*ms, median=0.001*ms, max=0.011*ms, 99th percentile=0.011*ms
info: =================================================
info: == Profiler Time Between Calls ==================
info: obs_hotkey_thread(25*ms): min=25.193*ms, median=25.337*ms, max=52.396*ms, 87.3684% within ±2% of 25*ms (0% lower, 12.6316% higher)
info: obs_video_thread(33.3333*ms): min=8.109*ms, median=33.332*ms, max=58.602*ms, 96.8254% within ±2% of 33.333*ms (1.5873% lower, 1.5873% higher)
info: =================================================
info: Number of memory leaks: 128

Last edited by af7567; 05-14-2016 at 02:54 PM. Reason: edit: added full console output
 
Old 05-15-2016, 04:00 AM   #2
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,130

Rep: Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202
have you tried emailing the maintainer of the SlackBuild?
 
Old 05-15-2016, 06:05 AM   #3
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
In slackbuilds current It requires qt5 and the qt5 in Slackbuilds breaks many other programs that you build down the road. I have been working on this for over a year. I suggest use a alternate program. I really did not care much for it.
If you build it using alien bobs kde5 you will run in to other issues. because alien bobs still using qt4 enable to run many of the programs from slackware current.
As of right now qt5 build in slackbuilds breaks kdenlive and many other qt4 programs . As for your answer Yes it builds and runs just fine on my qt5 only system. git clone https://github.com/jp9000/obs-studio.git it and create your own package.
as for running on slackware current with qt5 it will but remember it will break other things. You can get around this by heavily editing your /etc/ld.so.conf take a look at how ubuntu handles ld.so.conf then set up per program.
As for contacting any one at slackbuilds maintainers. In my years of emailing the addresses I have only had one person return the email.
You may do better handle it through the github. and place it on one of their commits. So everyone can see it.
At one time we had an alternate install of qt5 that made this issue a little more simple to deal with. But as of now qt5 blob is dropped right in the middle of /usr/lib-arch
and again it was handle through /etc/profile.d and /etc/ld.so.conf
My biggest hate of this program is it wants to control your desktop and I do not like that.

Last edited by Drakeo; 05-15-2016 at 06:07 AM.
 
1 members found this post helpful.
Old 05-15-2016, 06:36 AM   #4
af7567
Member
 
Registered: Nov 2012
Posts: 297

Original Poster
Rep: Reputation: 106Reputation: 106
Thanks for the replies.

I didn't think of emailing the maintainer since it built OK so assumed it was a problem with obs and not the SlackBuild.

I should have mentioned that I do also have qt5 installed at the moment - but yes I remember having to remove that before because it caused problems.

I just downloaded it with git like you suggested and built a portable version following the instructions on their install page and that seems to work OK (it starts up the GUI at least)

Code:
$ git clone https://github.com/jp9000/obs-studio.git
$ cd obs-studio
$ mkdir build && cd build
$ cmake -DUNIX_STRUCTURE=0 -DCMAKE_INSTALL_PREFIX="${HOME}/obs-studio-portable" ..
$ make -j4 && make install
 
1 members found this post helpful.
Old 05-15-2016, 10:21 AM   #5
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,130

Rep: Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202
waiting for the maintainer to have a look at it, I fixed obs-studio in my git branch (while I was there I also version-bumped it): you can check modifications there, they will go in the master branch at the next merge.

Quote:
Originally Posted by Drakeo View Post
As of right now qt5 build in slackbuilds breaks kdenlive and many other qt4 programs .
well, I have qt5 installed and kdenlive works fine here. just for curiosity I've tried also rebuilding it (still with qt5 installed) and it hasn't broke.
which are these "many other qt4 programs"? can you please post the errors they give you?
Quote:
as for running on slackware current with qt5 it will but remember it will break other things.
again, which ones?
could be useful if you report them here, maybe we can fix them (if there's something to fix).

Last edited by ponce; 05-15-2016 at 10:45 AM.
 
1 members found this post helpful.
Old 05-16-2016, 07:24 AM   #6
af7567
Member
 
Registered: Nov 2012
Posts: 297

Original Poster
Rep: Reputation: 106Reputation: 106
I had a reply from the maintainer of the SlackBuild and the problem is that cmake ignores the -DLIB_SUFFIX=${LIBDIRSUFFIX} so the libs are getting installed in /usr/lib on slackware64. The SlackBuild then moves all the libs into /usr/lib64 and when obs starts up it can't find them anymore because it is looking in /usr/lib. Removing the following lines from the SlackBuild "fixes" it by leaving the 64bit libs in /usr/lib:

Code:
if [ "$ARCH" = "x86_64" ]; then
  mv $PKG/usr/lib $PKG/usr/lib${LIBDIRSUFFIX}
fi
 
Old 05-16-2016, 07:29 AM   #7
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,130

Rep: Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202
you most probably missed the post above your last: I fixed that in my git branch using -DOBS_MULTIARCH_SUFFIX="$LIBDIRSUFFIX".
this way libraries are installed under the correct arch-dependant directory.
 
1 members found this post helpful.
Old 05-16-2016, 07:38 AM   #8
af7567
Member
 
Registered: Nov 2012
Posts: 297

Original Poster
Rep: Reputation: 106Reputation: 106
You are right, I did miss that post. Sorry and thank you
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Slackware current NetworkManager and DHCPv6 not working af7567 Slackware 2 03-08-2016 11:10 AM
Touchpad not working on X - Slackware Current DragonM15 Linux - Hardware 1 05-14-2010 10:34 AM
working on OBS networks using NCTUns 5.0 on fedora 9.0 sethi Linux - Software 1 03-31-2010 05:36 AM
xorgsetup not working slackware current samac Slackware 7 03-24-2007 07:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration