OBS Studio

From Elvanör's Technical Wiki
Jump to navigation Jump to search

Installation

  • Activate the nvenc USE flag to make use of Nvidia hardware encoder. You also need to activate the uvm USE flag on nvidia-drivers for NVENC to work.

Usage

  • Not really clear why, but even with nvenc hardware encoding and good hardware, some frames can be dropped by OBS Studio. It's important to check on console logs, it will tell you the % of frames dropped. Anything above 1% indicates potential serious problems (choppy/lagging video).
  • Recording a video from Firefox seems to be problematic in particular, with about 40% dropped frames even with nvenc. The same exact video (and source) in Chromium does not produce lagged frames.

Cutting videos

  • To cut mkv videos without reencoding, you can use mkvmerge (install media-video/mkvtoolnix):
mkvmerge --split duration:00:10:33.000 -o target-file.mkv source-file.mkv

Extracting subtitles

  • This can be done with mkvextract (also part of media-video/mkvtoolnix):
mkvextract tracks source-file.mkv 2:subtitles.srt # here 2 is the track number, get it with mkvinfo source-file.mkv