Trying To Install Open Broadcaster Software Studio OBS Studio on Trisquel 8

26 réponses [Dernière contribution]
andrewandmelissao
Hors ligne
A rejoint: 03/29/2018

Hi,

I would love some help to install OBS Studio on Trisquel 8. I followed the instructions in the attached photo and always end up with the following errors as seen below in Terminal.

andrew@andrew-ThinkPad-T400:~$ sudo apt-get update && sudo apt-get install obs-studio
[sudo] password for andrew:
Hit:1 cdrom://Trisquel 8.0 _flidas_ - Release amd64 (20180417) flidas InRelease
Ign:2 http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu xenial InRelease
Hit:3 http://ppa.launchpad.net/obsproject/obs-studio/ubuntu xenial InRelease
Ign:4 http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu xenial Release
Hit:5 https://archive.trisquel.info/trisquel flidas InRelease
Ign:6 http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu xenial/main Sources
Hit:7 https://archive.trisquel.info/trisquel flidas-security InRelease
Hit:8 https://archive.trisquel.info/trisquel flidas-updates InRelease
Ign:9 http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu xenial/main amd64 Packages
Ign:10 http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu xenial/main i386 Packages
Ign:11 http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu xenial/main all Packages
Ign:12 http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu xenial/main Translation-en_US
Ign:13 http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu xenial/main Translation-en
Ign:6 http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu xenial/main Sources
Ign:9 http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu xenial/main amd64 Packages
Ign:10 http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu xenial/main i386 Packages
Ign:11 http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu xenial/main all Packages
Ign:12 http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu xenial/main Translation-en_US
Ign:13 http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu xenial/main Translation-en
Ign:6 http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu xenial/main Sources
Ign:9 http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu xenial/main amd64 Packages
Ign:10 http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu xenial/main i386 Packages
Ign:11 http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu xenial/main all Packages
Ign:12 http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu xenial/main Translation-en_US
Ign:13 http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu xenial/main Translation-en
Ign:6 http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu xenial/main Sources
Ign:9 http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu xenial/main amd64 Packages
Ign:10 http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu xenial/main i386 Packages
Ign:11 http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu xenial/main all Packages
Ign:12 http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu xenial/main Translation-en_US
Ign:13 http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu xenial/main Translation-en
Ign:6 http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu xenial/main Sources
Ign:9 http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu xenial/main amd64 Packages
Ign:10 http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu xenial/main i386 Packages
Ign:11 http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu xenial/main all Packages
Ign:12 http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu xenial/main Translation-en_US
Ign:13 http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu xenial/main Translation-en
Err:6 http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu xenial/main Sources
404 Not Found
Ign:9 http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu xenial/main amd64 Packages
Ign:10 http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu xenial/main i386 Packages
Ign:11 http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu xenial/main all Packages
Ign:12 http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu xenial/main Translation-en_US
Ign:13 http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu xenial/main Translation-en
Reading package lists... Done
W: Target Sources (main/source/Sources) is configured multiple times in /etc/apt/sources.list.d/kirillshkrogalev-ubuntu-ffmpeg-next-xenial.list:2 and /etc/apt/sources.list.d/kirillshkrogalev-ubuntu-ffmpeg-next-xenial.list:3
N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'cdrom://Trisquel 8.0 _flidas_ - Release amd64 (20180417) flidas InRelease' doesn't support architecture 'i386'
W: The repository 'http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu xenial Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu/dists/xenial/main/source/Sources 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
W: Target Sources (main/source/Sources) is configured multiple times in /etc/apt/sources.list.d/kirillshkrogalev-ubuntu-ffmpeg-next-xenial.list:2 and /etc/apt/sources.list.d/kirillshkrogalev-ubuntu-ffmpeg-next-xenial.list:3

Pièce jointeTaille
OBS_studio.png67.97 Ko
chaosmonk

I am a member!

I am a translator!

Hors ligne
A rejoint: 07/07/2017

The errors appear to be related to the ffmpeg-next ppa you have installed. Try removing or deselecting it in Control Center -> Software & Updates, and then run 'sudo apt update' again.

andrewandmelissao
Hors ligne
A rejoint: 03/29/2018

Here is the results:

andrew@andrew-ThinkPad-T400:~$ sudo apt-get update && sudo apt-get install obs-studio
Hit:1 cdrom://Trisquel 8.0 _flidas_ - Release amd64 (20180417) flidas InRelease
Hit:2 http://ppa.launchpad.net/obsproject/obs-studio/ubuntu xenial InRelease
Hit:3 http://ppa.launchpad.net/pellesimon/ppa/ubuntu xenial InRelease
Hit:4 https://archive.trisquel.info/trisquel flidas InRelease
Hit:5 https://archive.trisquel.info/trisquel flidas-security InRelease
Hit:6 https://archive.trisquel.info/trisquel flidas-updates InRelease
Reading package lists... Done
N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'cdrom://Trisquel 8.0 _flidas_ - Release amd64 (20180417) flidas InRelease' doesn't support architecture 'i386'
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
obs-studio : Depends: libfdk-aac0 (>= 0.1.1) but it is not installable
E: Unable to correct problems, you have held broken packages.

Magic Banana

I am a member!

I am a translator!

Hors ligne
A rejoint: 07/24/2010

libfdk-aac0 looks proprietary at least because of that clause:

You may not charge copyright license fees for anyone to use, copy or distribute the FDK AAC Codec software or your modifications thereto.
https://raw.githubusercontent.com/mstorsjo/fdk-aac/master/NOTICE

The obs-studio package depending on that proprietary codec, you cannot use it in freedom.

andrewandmelissao
Hors ligne
A rejoint: 03/29/2018

So I guess you are telling me that I am not able to run OBS studio. Is there any similar lunix app that you would recommend?

chaosmonk

I am a member!

I am a translator!

Hors ligne
A rejoint: 07/07/2017

> So I guess you are telling me that I am not able to run OBS studio.

OBS Studio has libfdk-aac0, which is a proprietary package, as a required dependency. However, the only purpose of this package is to support the AAC audio format. There are other, freer formats than AAC such as Vorbis and Opus, so if OBS Studio supports such formats then it's likely that OBS Studio could still be useable without AAC support.

To try this, we'll need to download and modify the .deb package so that it no longer tries to install libfdk-aac0, and then install from that .deb file with dpkg instead of apt. This will require us to install dependencies manually, so first run

$ apt-depends obs-studio

This will print all dependencies of obs-studio. Install all of them except for libfdk-aac0.

Then, run

$ apt download obs-studio
$ tar x obs-studio*.deb
$ tar -xzf control.tar.gz
$ sed -e s/"libfdk-aac0 (>= 0.1.1), "//g -i control
$ tar -cvzf control.tar.gz control
$ ar rcs newpackage.deb debian-binary control.tar.gz data.tar.xz
$ sudo dpkg -i newpackage.deb

If it installs without any errors, run it and see if it works. If so, it might be worth contacting the developers and asking them to make libfdk-aac0 a "suggested" dependency instead of a "required" one. That would make it easier to install obs-studio while avoiding libfdk-aac0.

andrewandmelissao
Hors ligne
A rejoint: 03/29/2018

Thanks for your help! Unfortunately I tried running that first command and got this error:

andrew@andrew-ThinkPad-T400:~$ apt-depends obs-studio
No command 'apt-depends' found, did you mean:
Command 'apt-rdepends' from package 'apt-rdepends' (main)
apt-depends: command not found

chaosmonk

I am a member!

I am a translator!

Hors ligne
A rejoint: 07/07/2017

Sorry, I mistyped. I meant to write

$ apt depends obs-studio

andrewandmelissao
Hors ligne
A rejoint: 03/29/2018

@chaosmonk thank you for your help, I am still having difficulty with the command:

andrew@andrew-ThinkPad-T400:~$ apt depends obs-studio
E: No packages found

Does this mean I need to try installing the program again?

Thanks!

onpon4
Hors ligne
A rejoint: 05/30/2012

No, OBS is not available in the Trisquel repository. It wasn't in the Ubuntu 16.04 repo either. You need to download the source code and compile it (without AAC support).

chaosmonk

I am a member!

I am a translator!

Hors ligne
A rejoint: 07/07/2017

> No, OBS is not available in the Trisquel repository.

Shouldn't 'apt depends' still have worked if they added the PPA correctly though?

> You need to download the source code and compile it
> (without AAC support).

Yes, this is is the correct way to do it if within OP's level of ability.

andrewandmelissao
Hors ligne
A rejoint: 03/29/2018

Hi onpon4,

Thank you for your help. I am a complete beginner to this community and I understand I need to download the source code. Could you send me the link I need to download? Also, could you send me instructions for how to compile the application without ACC support?

Thanks so much for everyones help. I am grateful.

onpon4
Hors ligne
A rejoint: 05/30/2012

I unfortunately haven't succeeded at compiling it, but the source code is here:

https://github.com/obsproject/obs-studio

andrewandmelissao
Hors ligne
A rejoint: 03/29/2018

Okay onpon4 thank you for your help so far! I am super grateful!

onpon4
Hors ligne
A rejoint: 05/30/2012

OBS will work without it, but you need to recompile it without AAC support.

onpon4
Hors ligne
A rejoint: 05/30/2012

I don't think that clause renders libfdk-aac proprietary. Note that it says "copyright license fees", not "fees of any kind". You're not allowed to charge "copyright license fees" with the GNU GPL either, because anyone you give a copy to is required to get full permission to use/modify/redistribute under the GNU GPL (without additional cost).

The reason libfdk-aac is in "non-free", from my understanding, is that the license is GPL-incompatible and the library is typically combined with FFmpeg, a GPL-licensed program. So the combination is not libre, i.e. the same sort of issue as ZFS:

https://trac.ffmpeg.org/wiki/Encode/AAC

chaosmonk

I am a member!

I am a translator!

Hors ligne
A rejoint: 07/07/2017

You can get the source code with

$ sudo apt install git
$ git clone https://github.com/obsproject/obs-studio

This will copy the repository to your machine in a directory called 'obs-studio'. However, from browsing the source code it is not obvious to me how to disabled AAC support. Maybe someone more experienced than I am can help.

I have gotten around to actually testing my own instructions and can be more specific now.

$ sudo add-apt-repository ppa:obsproject/obs-studio
$ sudo apt update
$ sudo apt install libavcodec-ffmpeg56 libavdevice-ffmpeg56 libavformat-ffmpeg56 libavutil-ffmpeg54 libc6 libcurl3 libdbus-1-3 libfontconfig1 libfreetype6 libgcc1 libjack0 libluajit-5.1-2 libpulse0 libpython3.5 libqt5core5a libqt5gui5 libqt5gui5 libqt5widgets5 libqt5x11extras5 libspeexdsp1 libstdc++6 libswresample-ffmpeg1 libswscale-ffmpeg3 libudev1 libv4l-0 libx11-6 libx11-xcb1 libx264-148 libxcb-shm0 libxcb-xfixes0 libxcb-xinerama0 libxcb1 libxcomposite1 libxfixes3 zlib1g
$ apt download obs-studio
$ ar x obs-studio_22.0.2-0obsproject1~xenial_amd64.deb
$ tar -xzf control.tar.gz
$ sed -e s/"libfdk-aac0 (>= 0.1.1), "//g -i control
$ tar -cvzf control.tar.gz control
$ ar rcs newpackage.deb debian-binary control.tar.gz data.tar.xz
$ sudo dpkg -i newpackage.deb

I was then able to launch OBS. I don't have a webcam so I can't test whether it records video, but it appears to be receiving microphone input.

Building from source without AAC support would be the more correct way to do it, but this way won't take very long to test so I think it's worth trying.

andrewandmelissao
Hors ligne
A rejoint: 03/29/2018

Hi, thank you so much for these instructions.

I was successful until this line:

andrew@andrew-ThinkPad-T400:~$ ar x obs-studio_22.0.2-0obsproject1~xenial_amd64.deb

This gave me no results.

chaosmonk

I am a member!

I am a translator!

Hors ligne
A rejoint: 07/07/2017

> andrew@andrew-ThinkPad-T400:~$ ar x
> obs-studio_22.0.2-0obsproject1~xenial_amd64.deb
>
> This gave me no results.

Did you get an error, or was there just no output printed to the terminal? If you didn't get an error, keep going. Nothing was supposed to be printed. All that command does is extract several files from the deb file to be used in later steps.

andrewandmelissao
Hors ligne
A rejoint: 03/29/2018

Hi, okay I did not get any output so I will keep going. Thank you for the clarification.

andrewandmelissao
Hors ligne
A rejoint: 03/29/2018

Okay, so I finished the install, updated software on the computer and the software shows up as an installed application, but when I click on it to launch it, I get this error. I attached the photo for details.

Screenshot at 2018-09-03 15:27:53.png
chaosmonk

I am a member!

I am a translator!

Hors ligne
A rejoint: 07/07/2017

It sounds like the program installed successfully and you're now running into a separate hardware issue. Instead of launching the program by clicking on it, can you run it from a terminal with

$ obs

and copy (Ctrl+Shift+C) any errors printed to the terminal and paste them here? Often the information printed to the terminal is more specific than error messages in the graphical interface.

Can you also run

$ glxinfo | grep OpenGL

and copy/paste that output here. This will give us some information about your GPU.

andrewandmelissao
Hors ligne
A rejoint: 03/29/2018

$ obs

andrew@andrew-ThinkPad-T400:~$ 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/Dark.qss
Attempted path: /usr/share/obs/obs-studio/themes/Dark.qss
Attempted path: share/obs/obs-studio/license/gplv2.txt
Attempted path: /usr/share/obs/obs-studio/license/gplv2.txt
info: CPU Name: Intel(R) Core(TM)2 CPU P8700 @ 2.53GHz
info: CPU Speed: 1600.000MHz
info: Physical Cores: 2, Logical Cores: 2
info: Physical Memory: 7726MB Total, 6323MB Free
info: Kernel Version: Linux 4.4.0-134-generic
info: Distribution: "Trisquel GNU/Linux" "8.0"
info: Window System: X11.0, Vendor: The X.Org Foundation, Version: 1.18.4
info: Portable mode: false
QMetaObject::connectSlotsByName: No matching signal for on_advAudioProps_clicked()
QMetaObject::connectSlotsByName: No matching signal for on_advAudioProps_destroyed()
QMetaObject::connectSlotsByName: No matching signal for on_program_customContextMenuRequested(QPoint)
info: OBS 22.0.2 (linux)
info: ---------------------------------
info: ---------------------------------
info: audio settings reset:
samples per sec: 44100
speakers: 2
info: ---------------------------------
info: Initializing OpenGL...
error: X Error: GLXBadFBConfig, Major opcode: 155, Minor opcode: 34, Serial: 24
error: Failed to create OpenGL context.
error: Failed to create context!
error: device_create (GL) failed
error: Failed to initialize video. Your GPU may not be supported, or your graphics drivers may need to be updated.
info: Freeing OBS context data
info: == Profiler Results =============================
info: run_program_init: 10460.7 ms
info: ┣OBSApp::AppInit: 3.97 ms
info: ┃ ┗OBSApp::InitLocale: 1.431 ms
info: ┗OBSApp::OBSInit: 120.891 ms
info: ┣obs_startup: 3.543 ms
info: ┗OBSBasic::OBSInit: 30.08 ms
info: ┣OBSBasic::InitBasicConfig: 0.133 ms
info: ┣OBSBasic::ResetAudio: 0.233 ms
info: ┗OBSBasic::ResetVideo: 29.614 ms
info: obs_hotkey_thread(25 ms): min=0.12 ms, median=0.7 ms, max=5.682 ms, 99th percentile=2.06 ms, 100% below 25 ms
info: audio_thread(Audio): min=0.029 ms, median=0.101 ms, max=0.246 ms, 99th percentile=0.177 ms
info: =================================================
info: == Profiler Time Between Calls ==================
info: obs_hotkey_thread(25 ms): min=25.207 ms, median=26.039 ms, max=33.3 ms, 2.80612% within ±2% of 25 ms (0% lower, 97.1939% higher)
info: =================================================
info: Number of memory leaks: 174

$ glxinfo | grep OpenGL

andrew@andrew-ThinkPad-T400:~$ glxinfo | grep OpenGL
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Mobile Intel® GM45 Express Chipset
OpenGL version string: 2.1 Mesa 17.2.8
OpenGL shading language version string: 1.20
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 2.0 Mesa 17.2.8
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 1.0.16
OpenGL ES profile extensions:

chaosmonk

I am a member!

I am a translator!

Hors ligne
A rejoint: 07/07/2017

OBS Studio requires OpenGL 3.2 or higher.[1] Based on the output you posted

> $ glxinfo | grep OpenGL
>
> andrew@andrew-ThinkPad-T400:~$ glxinfo | grep OpenGL
> OpenGL vendor string: Intel Open Source Technology Center
> OpenGL renderer string: Mesa DRI Mobile Intel® GM45 Express Chipset
> OpenGL version string: 2.1 Mesa 17.2.8
> OpenGL shading language version string: 1.20
> OpenGL extensions:
> OpenGL ES profile version string: OpenGL ES 2.0 Mesa 17.2.8
> OpenGL ES profile shading language version string: OpenGL ES GLSL ES 1.0.16
> OpenGL ES profile extensions:

it appears that you have OpenGL 2.1, which is the newset version that you can use with the GM45 Express Chipset.

Unfortunately, this means that your hardware is too old to run OBS Studio. Unless you have access to newer hardware, you will need to use another program.

I'm not too familiar with OBS Studio or what features it has, but supposedly these programs are similar.

https://launchpad.net/kazam
http://www.maartenbaert.be/simplescreenrecorder/
https://github.com/phw/peek

I would try Kazam first because it can be easily installed[3] from the Trisquel repository.

[1] https://obsproject.com/forum/threads/help-for-failed-to-initialize-video-unspecified-error.42268/
[2] https://en.wikipedia.org/wiki/Comparison_of_Intel_graphics_processing_units#Fourth_generation
[3] https://trisquel.info/en/wiki/installing-updating-and-removing-software

andrewandmelissao
Hors ligne
A rejoint: 03/29/2018

Hi chaosmonk, thanks again for all of your help. I hope the output I posted will help you or someone understand the problem.

Reese_pony
Hors ligne
A rejoint: 12/16/2018

ufff!! It wasn't easy.

Thank you @chaosmonk!!! You are the man!

2dd.jpg
Yücel
Hors ligne
A rejoint: 01/22/2019

Hi everyone,i hope you all are doing well.

yes i think kazam and simplescreenrecorder would be a good replacement until some one experienced gets his hands on obs with trisquel in mind ^^

install simplescreenrecorder :

sudo add-apt-repository ppa:maarten-baert/simplescreenrecorder
sudo apt-get update
sudo apt-get install simplescreenrecorder

additional : sudo apt-get install libavcodec-extra

(credits to websiteforstudents :D )

wish you all a´lot of success enjoy your time

greets yücel :)