OBS Studio is a LICENSE licensed recording and streaming app written in LANG.
- Website
- Source
- Documentation
- AlternativeTo
> QUOTE
# Notability
# Philosophy
# Platform Support
# Features
# Tips
## Twitch VOD Stream on Linux
### Plugin Using Pipewire
1. Download latest release of the Pipewire Audio Capture Plugin
1. https://github.com/dimtpap/obs-pipewire-audio-capture
2. `mkdir -p ~/.config/obs-studio/plugins/`
3. Extract archive into the above directory
This should be included in OBS, but the devs refuse to merge it in until a magical time that Flatpak builds a workaround for audio control which may never happen. The [pull request](https://github.com/obsproject/obs-studio/pull/6207) has been open since 2022 without being merged in.
#### Flatpak
Flatpak installs of OBS use this path instead:
`~/.var/app/com.obsproject.Studio/config/obs-studio/plugins/`
If the plugin isn't working try running OBS using `flatpak run --filesystem=xdg-run/pipewire-0 com.obsproject.Studio` or run `flatpak override --filesystem=xdg-run/pipewire-0 com.obsproject.Studio` and then open OBS as usual.
### Manual Using PulseAudio
Technically this will also work with Pipewire, as it is backwards compatible.
#### PulseAudio Setup
```sh
SINK_NAME="Main_Virtual_Sink"
SINK_DESC="main-virtual-sink"
SINK_MNUM="$(pactl load-module module-null-sin sink_name="$SINK_NAME" sink_properties=device.description="$SINK_DESC")"
pactl list short sinks
# real sink from above list
REAL_SINK="???"
LOOP_MNUM="$(pactl load-module module-loopback latency_msec=1 source=SINK_NAME.monitor sink=alsa_output."$REAL_SINK")"
```
Then use a PulseAudio volume/routing control app (or another `pactl` command ?) to route audio from the music app to the null sink.
#### OBS Setup
1. Enable advanced options
2. In the `Output` section of **Settings** enable `Twitch VOD Track`
3. Add `Audio Output Capture` source for *both* null sinks created above
4. Set the outputs in the **Advanced Audio Properties** window
- ? Why both null sinks??
# Resources
## Plugins
- https://github.com/scaledteam/obs-image-reaction
- Image changes based on audio volume, good for basic [[VTubing]]
- https://github.com/phandasm/waveform
- Audio spectrum visualizers
- https://github.com/univrsal/input-overlay
- Display what keys and controller buttons are being pressed
- https://obsproject.com/forum/resources/replay-source.686/
- Instant replay
# References
```cardlink
url: https://youtu.be/rZYNmTvI13E
title: "How to use Twitch VOD Track, for Linux OBS Users! (Pulseaudio)"
description: "In this video I will explain how to have music only present in the live stream and not the VODs for twitch, with OBS on Linux and Pulseaudio null sinks.Times..."
host: youtu.be
favicon: https://www.youtube.com/s/desktop/5e42dd8a/img/favicon_32x32.png
image: https://i.ytimg.com/vi/rZYNmTvI13E/maxresdefault.jpg
```
- https://obsproject.com/kb/twitch-vod-track-guide
- https://www.reddit.com/r/linux_gaming/comments/v67jl9/easy_virtual_soundcards_with_pipewire_for/