Tech-savvy

How to get audio in sync using OBS

Wednesday, March 28th, 2018 | Activities, Gadgets, Insights, Tech-savvy | No Comments

I started streaming on Twitch a while ago and the setup for a decent stream can be tricky at times. One of the biggest issues I had was audio sync or to be more precise, the absence of it. 😉

I use OBS, a free and pretty powerful piece of software. After a few streams I added music to the gameplay, but when I was humming/singing along, I was off. A bit, a few milliseconds, but I could not find a way to get rid of the issue. So I started thinking … there is a “processing pipeline”, from the computer that plays the music, to the headphones, into my brain and out of my lungs into the microphone. I figured that’s where the lag came from:

Lucky me OBS lets you add and subtract delays to each audio source (even though I have a hard time understanding how you can shift a sound source into the past … maybe by implicitly adding a delay to all other sources?). So how did I find out the “exact” delay? It’s pretty tough, ears only will be not good enough.

So here is what I did:

  • recorded while some audio was playing (e.g. Massive Attack – Teardop) and used a drum stick and a practice pad next to the mic hitting the pad to the music omitting every third stroke so you don’t get used to your rhythm and stick to the song’s timing
  • exported the audio and measured the milliseconds between the real snare and my stroke using an audio editor (i.e. Audacity) – with “Teardrop” they are pretty easy to spot
  • open “Edit” -> “Advanced Audio Properties” and change the “Sync Offset” of your audio source accordingly
  • rinse repeat, as for some reason I had to do this a couple of times before I got it spot on

This got my singing in sync to the audio that got played. (The lag can also be influenced by changing buffer sizes, but I didn’t want to fiddle with these.)

Now the only thing that is still annoying me: I am not lip-sync on video. I still have to figure out whether there is an option to add/sub delay to the video source as well. Just saw there is a filter available in OBS, but it can only add delay, not sub it. Might play with that as well and hope to come up with a “picture perfect” audio video face-cam mic setup at some point 🙂

Tags: , , ,

Waves MaxxAudio Service Application High CPU Usage

Sunday, December 31st, 2017 | Gadgets, Insights, Tech-savvy | No Comments

Sharing is caring. I hope Google will help people who also have trouble with high CPU usage on a Dell system with Waves MaxxAudio find this little piece of information.

I had a strange problem with OBS (or so I thought) consuming high CPU. Every time I launched OBS the CPU would jump to like 30% instantly. The task manager revealed that not OBS but Waves MaxxAudio Service Application consumed like 30% CPU every time I launched a freshly installed OBS on a freshly installed Windows 10 an a Dell Latitude 7280 (just dropping a few keyword here again for SEO 😛 ).

Trying to find a solution for this strange behaviour I found dozens of people that had the same problem but I could not find a solution.

So I tried to fiddle with the Waves MaxxAudio Settings and alas I found a solution (that worked for me)! Simply open Waves MaxxAudio Pro, click on “Advanced” in the lower middle section of the UI and disable the VoIP “enhancement” – CPU usage drops instantly.

Dear Dell, dear Waves MaxxAudio, why are you packing your drivers with shitloads of features instead of just releasing a working piece of software? 99.9% of your costumers only want a system that runs smoothly with a simple and easy driver, not a “fancy” UI with tons of features that foobar the system. Thanks. Just my POV.

Tags: , , , , ,

Pi-hole: get rid of spam/ads/tracking on DNS level

Tuesday, October 24th, 2017 | Gadgets, Insights, Linux, Tech-savvy | No Comments

Today I’d like to share a nice project that I stumbled upon: Pi-hole®: A black hole for Internet advertisements.

Basically it is a small DNS proxy that filters DNS queries based on lists of ad and tracker sites.

It’s pretty kewl, as you just set it up once and all your devices on your LAN will benefit from it.

I have been using Pi-hole (default settings/lists on Raspbian Strech) for a couple of days now without problems and a noticeable better internet browsing experience.

Give it a try and put your old Raspberry to some use!

Tags: , , , ,

Podcasts in iTunes packen – Fick dich Apple! Und Google, du dich auch.

Tuesday, August 29th, 2017 | Insights, Linux, Misc, Tech-savvy | No Comments

Ausgangslage: Ich mache Podcasts. Ich arbeite mit Linux. Ich möchte gerne in das iTunes Podcast Verzeichnis. (Eigentlich will ich ja nix außer meinen RSS Feed in ein Verzeichnis pushen…)

Kollege: “Um bei iTunes deinen Podcast ins Verzeichnis zu bringen brauchst du kein iTunes auf deinem Rechner, nur ‘ne Apple-ID.” (Source)

Na gut, prima, ich lege also eine Apple ID an (im Web) und versuche es.
https://podcastsconnect.apple.com/

Ich werde mit einer Fehlermeldung abgewatscht:
“Podcasts Connect erfordert einen iTunes Store-Account.”
Darunter ein Link: Zum iTunes Store

Ich klicke auf den Link, der schlicht auf itunes.apple.com verweist und kann mich – oh Wunder – mit meiner Apple ID dort anmelden. WTF? Also habe ich doch einen iTunes Store-Account?! Apple, ich bin verwirrt.

Ich google also die Fehlermeldung. Dort lese ich, dass man sich in iTunes und nich auf der iTunes Seite anmelden muss. Geil, wie dass die Fehlermeldung “Podcasts Connect erfordert einen iTunes Store-Account.” offenbart.

In iTunes soll man sich anmelden und dann dort ein zwei Informationen zu seinem Account hinterlegen. Nun gut.

Meine Nerven liegen also bereits leicht blank als ich zu einem Kollegen mit Mac gehe und mich in iTunes anmelde. Super. Der Wizard zur Anmeldung will dann direkt eine Zahlungsmethode von mir. Es gibt keine direkte Möglichkeit das zu umgehen. WTF again?! Ich fühle mich ins Jahr 2009 zurück versetzt, als ich schlicht einen iPod Touch in Betrieb nehmen wollte, was, ohne Kreditkarte, nicht möglich war. Dürfen Menschen ohne Kreditkarte keine iPod nutzen?

Fick dich Apple! Mir geht deine Philosophie in vielen Bereichen so gegen den Strich, dass ich im Strahl kotzen könnte. Ich mag keinen Zwang, vor allem nicht, wenn jemand meine Kreditkarteninformationen haben will. Dann spiele ich halt wieder mit den Open Source Schmuddelkindern. Da fühl ich mich sowieso wohler. Und sag nicht ich würde es nicht alle Jubeljahre mit dir versuchen, aber wir zwei passen anscheinend einfach nicht zusammen.

Wer jetzt meint, dass ich selber schuld bin und dass das bei Apple halt so ist: ich habe vor einiger Zeit einen YouTube Kanal aufgemacht (icanplaystayshun), einfach mal so zum Spaß. Mit einem Google Konto. Schnell, kostenlos, unkompliziert.

Hat Google ein Podcast Verzeichnis? Scheiße! Wieso bin ich da nicht vorher drauf gekommen!? Das guck ich mir mal an!

Edit 1: 30.08.2017

https://support.google.com/googleplay/podcasts/answer/6260341

“Podcasts are not available in your country
Podcasts are coming soon to Google Play Music, but unfortunately, they’re not yet available in your country.”

Und Google Play Music kann man auch in der kostenlosen Variante nicht ohne Zahlungsinformaitonen nutzen.
“Our music deals require that you have a form of payment on file to confirm your country of residence as music rights vary by country”

Also auch nicht besser. Schade. Wenigstens geben die einen “guten Grund” an. Auch wenn mein freier Podcast mal nix mit “music rights in my country” zu tun hat. Hallo? Podcast! Selbst produziert! Ich will doch nur ins Verzeichnis! 🙂

Edit 2: 30.08.2017

Werde mir jetzt noch Stitcher ansehen. Dann habe ich aber die Schnauze voll 😀

So, das scheint geklappt zu haben. Die wollten auch recht viele Infos (Adresse) und die Terms und Conditions haben es auch in sich. Garagen Sprech ist nun dort in der Approval Phase und Dennis tötet mich beim nächsten Cast weil ich wieder in Anglizismen versinke.

Was ein Kack, nur um mal so ‘nen RSS Feed publik zu machen…

Edit 3: 31.08.2017

Wir sind online! 😀 Stitcher hat den RSS Feed nun in sein Directory aufgenommen.

Findbar über:
✔ copy/paste des RSS Feeds in deine App 😉
Stitcher (natürlich)
Podcast Addict (Android)
– Podcast.app (iOS)
– Overcast (iOS)
– iTunes
– Spotify

Tags: , , , , , , , ,

Fedora 26 / Gnome 3 Hi DPI Settings and Quirks

Thursday, August 24th, 2017 | Insights, Linux, Quirks, Tech-savvy | No Comments

I was about to release another “post-installation tasks” post when I thought it might be a good idea to focus on a specific topic first: Hi DPI (aka 4k resolution monitors) and how Fedora, my weapon of choice, is performing. Fedora ships with Gnome 3 on Wayland. So this will be my starting point.

Set-up Gnome to use Hi DPI mode

This sounds to easy. But rest assured, this is only the first general steps as a lot of apps, even Gnome (3.24.2) itself, does not respect / support this setting consistently. (here are two native Gnome examples of mixed Hi Res and Low Res components Example 1 Example 2)

Still, for me the overall experience is finally worth setting up a Hi DPI desktop environment.

Install Gnome Tweak Tool

$ sudo dnf install gnome-tweak-tool

Fire it up, go to “Window” and set the Hi DPI mode to 2x. (In the near future Gnome wants to support arbitrary scaling factors, on a per device i.e. monitor basis. Looking forward to that!) You may need to log in and out of your session for the setting to take effect.

Update 25.08.17 There is another Gnome setting, and after that Gnome itself renders just fine! Bliss! Thanks Michael Reinartz for pointing this out!

$ gsettings set org.gnome.desktop.interface scaling-factor 2

Apps that work well out of the box (on my machine)

Firefox 55.0.1
Thunderbird 52.2.1
Opera 47

and after the “Update 25.08.17” hint:
Audacious 3.8.2 (Winamp Interface)
Nautilus 3.24.2.1
Terminal 3.24.2

Apps that scale well after some handiwork

Chromium 60 (maybe Chrome – I don’t use it right now)
Chromium needs a special parameter: --force-device-scale-factor=2, just add it to a copy of the .desktop file in your personal user space.

cp /usr/share/applications/chromium-browser.desktop ~/.local/share/applications/

Put that parameter just behind the executable:

...
Exec=/usr/bin/chromium-browser %U --force-device-scale-factor=2
...

eclipse 4.7 Oxygen

I use a launch script for eclipse, just add export SWT_GTK3=0 to it. The export UBUNTU_MENUPROXY=0 fixed a problem with disappearing menus in eclipse. I can omit the entry without problems, I just leave it here in case you might need it.

#!/bin/bash
 
export SWT_GTK3=0
export UBUNTU_MENUPROXY=0
./eclipse/eclipse -showlocation

Apps that do not scale at all (yet)

Audacity 2.1.3
They say you need to recompile it with wxWidgets --with-gtk=3
@see http://wiki.audacityteam.org/wiki/Linux_Issues#Hi-DPI

Gimp 2.8
There are themes available with hi res icons but I will just wait for 2.9 as it should support Hi DPI natively.

Spotify 1.0.59.395
At least the full screen mode looks nice 😉

Conclusion

As you can see Hi DPI is still work in progress. Still, I figure Hi DPI usable by now and will not go back. Looking at a “printed screen” is just too amazing.

Hope I gave you some insights and if you have something to add just leave a comment. Thanks!

Tags: , , ,

Røde NT-USB microphone – great value for money

Saturday, July 1st, 2017 | Gadgets, Language, Linux, Tech-savvy | No Comments

Today I spend some MusicStore gift vouchers (thanks Rob & Tobi) buying a decent microphone. A Røde NT-USB.

Maybe for podcasting, maybe streaming, maybe recording of music.

First thing that came to my mind was reading a small story for my daughter. So I plugged in the mic – which was the first “challenge”. Sometimes “pro” audio devices only work with Mac and Windoze machines, but the Røde NT-USB just worked out of the box (Linux, Fedora 25). After that I launched Audacity, saw the rec level was a bit weak, maxed out the input using the audio settings and hit record. From my POV the result was awesome. So I just kept on reading the story, only using the Audacity compressor plug-in (default settings) afterwards. Then I added a small intro/outro acoustic guitar jingle. That’s it. No-frills recording with very nice results.

Thanks Røde, you made my day 🙂

Here is the result (a 96k cbr mono mp3 mixdown). Sorry, German only 🙂 Remember, this is a one take and I have no experience doing lectures – so don’t expect too much.

Eine Meerjungfrau im Schwimmbad (Maren von Klitzing)

Der Kater mit den goldenen Pfoten (Käthe Recheis)

Source: Märchen und Kindergeschichten

Tags: , , , , , ,

Transparency and Torture. In Data Compression. Solved.

Friday, October 28th, 2016 | Insights, Music, Tech-savvy | 1 Comment

First, let me introduce what transparency in data compression means, excerpts from Wikipedia:

In data compresion and psychoacoustics, transparency is the result of losy data compresion acurate enough that the compresed result is perceptualy indistinguishable from the uncompresed input. In other words, transparent compresion has no or imperceptible compresion artifacts.

Transparency, like sound or video quality, is subjective. It depends most on the listener’s familiarity with digital artifacts, their awarenes that artifacts may in fact be present, and to a leser extent, the compresion method, bit-rate used, input characteristics, and the listening/viewing conditions and equipment. Despite this, sometimes general consensus is formed for what compresion options “should” provide transparent results for most people on most equipment. Due to the subjectivity and the changing nature of compresion, recording, and playback technology, such opinions should be considered only as rough estimates rather than established fact.

Judging transparency can be dificult, due to observer bias, in which subjective like/dislike of a certain compresion methodology emotionaly influences his or her judgment. This bias is comonly refered to as placebo, although this use is slightly diferent from the medical use of the term.

To scientificaly prove that a compresion method is not transparent, double-blind tests may be useful. The ABX method is normaly used, with a nul hypothesis that the samples tested are the same and with an alternative hypothesis that the samples are in fact diferent.

In case you managed to read the above paragraph and are still here: congratulations! How do you feel? Slightly nauseous? Even annoyed? Maybe. The above text has been slightly altered. I “compressed” it by removing all double consonants. You can still read it, sometimes you might even not realize the change from the original text. Most probably you found a few (annoying) errors. Keep in mind how reading that text made you feel.

The Story

I was talking to a friend of mine the other day, and he explained to me why he dislikes audio compression with an easy analogy. Listening to compressed sound can be compared to reading text that is missing characters, that you might not even notice. Your brain will fix the issues and you will be perfectly capable of reading the text. Still, your brain has to work more than it would reading the unaltered text. Same goes for audio compression (read psychoacoustics). Lossy audio compression still tries to sound like the original (i.e. retaining the perceived quality) by removing things you are not meant to hear anyway. Easy example: just after a loud sound, like a hi-hat hit, other frequencies, that you cannot hear anyway due to this high impact noise, will get removed (masking effect). Sounds legit. So throw it away. Still, compression will make your brain, your perception work harder to fill these gaps of information. Maybe. Most probably. Like reading the above text made your brain work harder. Reading the foobared text was less enjoyable. So why should you listen to music that will subconsciously decrease the “enjoyability” of listening instead of feeding your ears the real deal?

Conclusion

Finally, I have an easy explanation why you should not listen to (badly) compressed music but stick to lossless compression like flac or the original. It simply will be more enjoyable for your ears and brains, even though you might argue the super-duper encoded files your were listening to before were “transparent”. Maybe they are more likely entities of unwitting torture 😉

The Future

For me the days of lossy compression are not over. That would be naive. Still, I will try to listen more and more to the best possible source at hand (as hard drive space is not really and issue any more). I already encoded my mp3s 1 or 2 steps “higher” than the “transparent” setting is for me (e.g. in case you hear no difference in -V 3 compared to -V 4 go for -V 2). I enabled high quality streaming in Spotify (i.e. ogg Vorbis q9 according to Spotify). Right now I plan to build an audiophile music player (Raspberry Pi, Volumio, DAC, Reclocker) and re-encode my favorite CDs using flac. Even though I might not actually hear any differences if will just make me feel better listening to it. A placebo? Maybe. It’s one I will take. Happy listening!

Tags: , , , , , , ,

PS4 fan noise – solved. Banished, to be more precise.

Thursday, September 29th, 2016 | Gadgets, Insights, Tech-savvy | No Comments

I cannot write about this topic any more, so I let my HDMI cable tell the story.

dav

dav

dav

🙂

Tags: ,

Deleting symlinks aka “Don’t drink and sudo”.

Tuesday, September 13th, 2016 | Insights, Linux, Tech-savvy | No Comments

failcatWell, I did neither, yet still fucked up my installation the other day. Here is how I managed it – and yes, there is some knowledge sharing / advice in here, so read on.

I guess everybody who ever came across a *nix prompt knows the infamous “rm -rf” command and only uses it when it’s really save. Well, pretty much save and then whoopsy … files gone. So here goes my latest foobar.

I wanted to create a symlink from my small home partition to a big data portion for my gnome-boxes, as disk images tend to get big. So I created and “cd”ed into the destination folder:

cd /bfd/gnome-boxes/

and checked whether the dir is empty thus suitable. It was.

So now I symlinked the current directory to ~/.local/share/gnome-boxes

ln -s . /home/nick/.local/share-gnome-boxes/

So far so good. I “cd”ed into the original folder to check whether the link was created okay, but it only showed something like

gnome-boxes -> .

instead of

gnome-boxes -> /bfd/gnome-boxes/

WTF? The . is a reference to the current directory which was /bfd/gnome-boxes at the time I used it. Hmm, the ln took that dot pretty literally (which is obviously my fault).

So, I wanted to get rid of that wrong symlink. First, as the “directory” gnome-boxes was a symlink, i.e. a file, I tried to simply delete it with rm. That was when the real fun began.

You can test this behavior, create a test directory, that holds a file (touch file) and a directory (mkdir dir). Then go create that bogus symlink (ln -s . ./test)

drwxrwxr-x. 2 nick nick 4096 13. Sep 12:50 dir
-rw-rw-r--. 1 nick nick    0 13. Sep 12:53 file
lrwxrwxrwx. 1 nick nick    1 13. Sep 12:53 test -> .
[nick@localhost 1]$ rm test/
rm: das Entfernen von 'test/' ist nicht möglich: Is a directory
[nick@localhost 1]$ rmdir test/
rmdir: konnte 'test/' nicht entfernen: Not a directory
[nick@localhost 1]$ rm -rf test/
[nick@localhost 1]$ ll
insgesamt 0

All gone 🙂

Not only the dir was gone but basically my whole ~/.local/share/ directory was empty. I symlinked gnome-boxes to ., so the current dir, thus rm -rf gnome-boxes deleted the current dir. Eff.

How to prevent this.

* Use unlink. It’s saver as it only calls the unlink function and cannot delete regular files.
* Don’t “tab” complete your commands. A simple “rm gnome-boxes” without the trailing slash would have done the job and saved me the re-installation. Luckily this is done in less than half an our with modern distros, still, I felt like an idiot. Lesson learned.

This was done with a super smart ASF member behind me, whom I showed the funny “Is a directory / Not a directory” error messages. We had a good laugh after deleting my share folder. Facepalm deluxe!

Tags: ,

PS4 fan noise – pretty much solved.

Wednesday, December 24th, 2014 | Gadgets, Insights, Tech-savvy | 5 Comments

So Sony did not manage to solve the PS4 sounding like a hair dryer issue. I had to take it into my own hands and it became sort of like a personal crusade.

TL;DR

Break your warranty. Replace the thermal paste. Hate Sony.

Kill the noise – €10

01-foam My first idea was to simply buy some acoustic foam and kill the noise. As this foam works best with high frequencies I thought it might work. I put some foam in my TV stand, made sure enough air would be supplied and fired up the machine. It took maybe 20 minutes for the jet engine to set off. Even though the stand is permanently open in the back and has air vents on top it heated up and got noisier than ever. I took out piece by piece of the foam to no avail.

More air – €2

02-elevation Next thing I tried was elevating the thing, so that there is no heat buildup on the bottom of the case. Looks funky, but is completely useless yet cat approved.

More cooling – €30

03-heatsink Next thing I got was a giant heatsink. I figured putting it on top of the device might help to keep the overall heat at bay. Again, no notable results.

The last frontier – breaking the warranty and replacing thermal paste. – €20

04-thermal-paste Sony, I hated you so much already that I dared to open the box and break my warranty. You were not able to fix this multiple times, so I didn’t give a rat’s ass about the warranty anymore. I bought myself Arctic Silver 5 with some paste remover and surface polisher. I also got some new cooling pads. It turned out to be a good idea.

As you can see the thermal paste looks completely wasted. Not evenly spread, bubbles of locked-in air, dry. I am not a hardware pro but this looks pretty bad to me. Also, the cooling pads were rather small, also dry and put in place in a very inaccurate way. I fixed that as well.

Recap

After replacing the thermal paste and cooling pads the machine was running almost without any noticeable noise. It takes maybe 20 minutes for the fan to speed up to a level where I can hear it, but it is much more silent now. Tried to put the machine back into my TV stand, but that did not work, it still overheats in there. So now the PS4 is sitting below my TV stand, elevated with felt pads, cooled by a giant heatsink and its warranty broken for the final fix, good thermal paste.

I spent over €50 and quite some time to get to this point. Again, I cannot emphasis how disappointed I am with Sony and its customer care. Case closed.

Tags: , , , , ,

Search

Categories