Skip to main content

Out of sync audio video on linux?

Couple of days back, I played around with pulseaudio modules, sources and sinks and all that stuff (Obviously not knowing what I was doing). Few days later, I noticed that video playback from youtube (or any audio visual content) started to become choppy and slow often to the point of audio getting out of sync very quickly. I wasn't sure what the cause of this problem was. I initially thought my CPU was stepping down due to the heat. But it turns out that it was my screwed up pulseaudio config.

Doing `rm -rf ~/.config/pulse` followed by `pulseaudio -k` (kill the pulseaudio daemon) instantly fixed this issue. 

Comments

Popular posts from this blog

Adding Nextbit Robin to udev rules

If you ever had to use adb or fastboot for your android devices on linux, you may have noticed that devices show up only when you add 'sudo' to these tools. This isn't good. Here's a way to remedy it. Instructions tested on openSUSE tumbleweed.

* Update your adb and fastboot from Android Studio SDK manager (platform-tools) or wherever you got it from.
* Make sure your user is added to the "plugdev".  Create a plugdev group if it doesn't exist "sudo groupadd plugdev"
* Add your user to plugdev "sudo usermod -a -G plugdev $(whoami)"
* Edit /etc/udev/rules.d/51-android.rules (create file if it doesn't exist) and add the following line for nextbit robin:
SUBSYSTEM=="usb", ATTR{idVendor}=="2c3f", MODE="0666", GROUP="plugdev" Replace the ATTR{idVendor}'s value with your device's value. For all nextbit robin devices, these are the same "2c3f". You can find them by typing "lsus…

Docker CE on openSUSE tumbleweed

Getting the docker community edition installed and running on openSUSE can be difficult because there are no official docs on how to do it for openSUSE, specifically the tumbleweed version of it.
Here's what I did to make it work:
Add the Virtualization:containers repo of openSUSE Tumbleweed and install docker as shown below. (This should install Docker CE) sudo zypper addrepo https://download.opensuse.org/repositories/Virtualization:containers/openSUSE_Tumbleweed/Virtualization:containers.repo sudo zypper refresh && sudo zypper install dockerDisable the docker daemon that was started from systemd if any. sudo sysctl stop docker Starting docker service using the bundled systemd config seems to be causing issues with some docker functions. I wasn't able to get to the root of the problem, but I found out that running the daemon manually seemed to fix the errors I had from having the docker started via systemd.Start containerd (and keep it running): sudo containerd /run/…