Giter Site home page Giter Site logo

openbsdguy / ffmpeg_openbsd Goto Github PK

View Code? Open in Web Editor NEW
8.0 1.0 1.0 5 KB

FFmpeg scripts for screen recording YouTube videos and YouTube live streaming on OpenBSD

Shell 100.00%
ffmpeg ffmpeg-script openbsd openbsd-scripts ffmpeg-livestreaming ffmpeg-youtube

ffmpeg_openbsd's Introduction

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:

$ doas sysctl kern.audio.record=1

Permanently:

# 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:

$ 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:

$ 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,

$ export AUDIODEVICE=snd/1 # pointing to the first external sound card
$ cmixer
$ unset AUDIODEVICE

Putting it all together, you can create an alias,

$ alias cmixer-microphone='export AUDIODEVICE=snd/1;cmixer;unset AUDIODEVICE'

Source

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.