https://github.com/openbsdguy/ffmpeg_openbsd
FFmpeg scripts for screen recording YouTube videos and YouTube live streaming on OpenBSD
https://github.com/openbsdguy/ffmpeg_openbsd
ffmpeg ffmpeg-livestreaming ffmpeg-script ffmpeg-youtube openbsd openbsd-scripts
Last synced: 3 months ago
JSON representation
FFmpeg scripts for screen recording YouTube videos and YouTube live streaming on OpenBSD
- Host: GitHub
- URL: https://github.com/openbsdguy/ffmpeg_openbsd
- Owner: OpenBSDGuy
- Created: 2023-01-03T08:57:07.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2025-01-05T08:52:52.000Z (4 months ago)
- Last Synced: 2025-01-30T22:51:38.105Z (3 months ago)
- Topics: ffmpeg, ffmpeg-livestreaming, ffmpeg-script, ffmpeg-youtube, openbsd, openbsd-scripts
- Language: Shell
- Homepage:
- Size: 8.79 KB
- Stars: 9
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# FFmpeg OpenBSD
FFmpeg scripts for screen recording YouTube videos and YouTube live streaming on OpenBSD.
# Stream Key
If you intend to do live streaming, make sure to place your Stream Key under the `~/Document/.streamkey` file.
# Enable microphone
The microphone is disabled by default on OpenBSD.
Temporary enable:
```bash
$ doas sysctl kern.audio.record=1
```Permanently:
```bash
# echo kern.audio.record=1 >> /etc/sysctl.conf
```# Audio playback
The scripts are capable of recording/streaming audio playback as well. It is done by
utilzing `mon0.` in sndio. You need to enable that or modify the scripts.Enabling `mon`:
```bash
$ doas rcctl set sndiod flags -v 80 -s default -m play,mon -s mon && doas rcctl restart sndiod
```You can specify the volume of playback with `-v` flag.
# Microphone volume control
It is impossible to control microphone volume using FFmpeg. You need to set it with `sndio` or `cmixer`. I recommend the latter.
Install cmixer:
```bash
$ doas pkg_add cmixer
```If you open the program, it defaults to `snd/0`, your internal sound card.
To switch the sound card, you must export the `AUDIODEVICE` variable and then open the mixer.
Example,
```bash
$ export AUDIODEVICE=snd/1 # pointing to the first external sound card
$ cmixer
$ unset AUDIODEVICE
```Putting it all together, you can create an alias,
```bash
$ alias cmixer-microphone='export AUDIODEVICE=snd/1;cmixer;unset AUDIODEVICE'
```# Hardware Acceleration for Intel GPUs (OpenBSD 7.6 and Later)
If you have an Intel GPU and want to utilize hardware acceleration, refer to the [Intel VA_API acceleration](intel_vaapi_acceleration.md) documentation.
# Source
- [OpenBSD FAQ 13 - Multimedia](https://www.openbsd.org/faq/faq13.html)