MaartenBaert / ssr

SimpleScreenRecorder, a screen recorder for Linux
http://www.maartenbaert.be/simplescreenrecorder/
GNU General Public License v3.0
2.49k stars 288 forks source link

sound on ubuntu 20.04 and later #1019

Closed rmstock3 closed 8 months ago

rmstock3 commented 8 months ago

Subject: No sound or audio recorded

inside Version 0.3.11 no audio is recorded on Ubuntu 20.04.1 LTS Focal Fossa - Release amd64. Is this a known issue ? Is there a way to solve it ? Is there a FAQ for simplescreenrecorder and ssr-0.3.11 ?

It seems since Ubuntu 20.04.1 LTS and even since Ubuntu 18.04 , ubuntu has limited the capabilities of its desktop sound system. The only audio input / output available is :

Outout Device : Speakers - Built-in Audio Digital Output (S/PDIF) - Built-in Audio Input Device : Internal Microphone - Built-in Audio

So maybe as part of your FAQ etc, insert advise to make all audio devives available on a existing Ubuntu 22.04 / 20.04 linux machine. I have build simplescreenrecorder 0.4.4 on Ubuntu 20.04.1 LTS using instructions found on https://github.com/MaartenBaert/ssr :

ubuntu@ubuntu:~$ simplescreenrecorder ==================== SSR started ==================== SimpleScreenRecorder 0.4.4 Compiled with GCC 9.4.0 Qt: header 5.12.8, lib 5.12.8 libavformat: header 58.29.100, lib 58.29.100 libavcodec: header 58.54.100, lib 58.54.100 libavutil: header 56.31.100, lib 56.31.100 libswscale: header 5.5.100, lib 5.5.100 [CPUFeatures::Detect] CPU features: mmx sse sse2 sse3 ssse3 sse4_1 sse4_2 [ALSAInput::GetSourceList] Generating source list ... [ALSAInput::GetSourceList] Found card: [hw:0] HDA Intel MID [ALSAInput::GetSourceList] Found device: [hw:0,0] HDA Intel MID: ALC269VB Analog [ALSAInput::GetSourceList] Found card: [hw:1] HDA ATI HDMI [PulseAudioInput::GetSourceList] Generating source list ... [SourceNamesCallback] Found source: [alsa_input.pci-0000_00_1b.0.analog-stereo] Built-in Audio Analog Stereo [SourceNamesCallback] Found source: [alsa_output.pci-0000_00_1b.0.iec958-stereo.monitor] Monitor of Built-in Audio Digital Stereo (IEC958) QSystemTrayIcon::setVisible: No Icon set

You know that the ubuntu folks have severely shielded and blocked access to PulseAudio. Even the JACK system cannot be found :

[JACKInput::Init] Error: Could not connect to JACK! [PageRecord::StartPage] Error: Something went wrong during initialization.

So ... what todo ? You have built the best there is on screen recording software, so good that the ubuntu folks have severely messed up Ubuntu's audio system since 18.04, in order that your app simplescreenrecorder stopped working.

rmstock3 commented 8 months ago

It now works. Make sure to boot your system when the package simplescreenrecorder is first removed :

$ sudo dpkg -r simplescreenrecorder $ sudo dpkg --purge simplescreenrecorder

Reboot and Next install mplayer and mplayer-gui :

$ sudo add-apt-repository multiverse $ sudo apt update $ sudo apt -y install mplayer mencoder mkvtoolnix vorbis-tools lame faac faad $ sudo apt -y install mplayer-gui $ sudo apt -y install imagemagick $ sudo sh mplayer.sh

mplayer.sh : cd /usr/share/mplayer/skins/default for FILE in .png ; do convert $FILE -define png:format=png24 $FILE; done cd /usr/share/mplayer/skins/Blue for FILE in .png ; do convert $FILE -define png:format=png24 $FILE; done

Next install qt5 and libqt5x11extras5

$ sudo apt -y install qt5-default $ sudo apt install libqt5x11extras5

Next put simplescreenrecorder in place :

$ cd ssr-0.4.4/build-release/src $ sudo cp -p simplescreenrecorder /usr/bin/

rmstock3 commented 8 months ago

I made a debian package for simeplescreenrecorder-0.4.4, the details can be found here : [http://stokkie.net/simplescreenrecorder/DEB/ubuntu2004/](http://stokkie.net/simplescreenrecorder/DEB/ubuntu2004/

Here's a screenshot [https://i.imgur.com/w264UFn.png]{https://i.imgur.com/w264UFn.png)