Skip to content

VideoOptions

typedef · Source

Options that can be passed to stream-playing methods: Type: Object

Properties

seek

optional

seek: number

The time to seek to

Default: 0

fps

optional

fps: number

Video fps

highWaterMark

optional

highWaterMark: number

The maximum number of opus packets to make and store before they are actually needed. See https://nodejs.org/en/docs/guides/backpressuring-in-streams/. Setting this value to 1 means that changes in volume will be more instant.

Default: 12

presetH26x

optional

presetH26x: 'ultrafast' | 'superfast' | 'veryfast' | 'faster' | 'fast' | 'medium' | 'slow' | 'slower' | 'veryslow'

ffmpeg preset h264

Default: 'veryfast'

hwAccel

optional

hwAccel: boolean

Enables hardware accelerated video decoding. Enabling this option might result in an exception being thrown by Ffmpeg process if your system does not support hardware acceleration

Default: false

inputFFmpegArgs

optional

inputFFmpegArgs: Array<string>

input ffmpeg Ex: ['-config1', 'value1', '-config2', 'value2']

outputFFmpegArgs

optional

outputFFmpegArgs: Array<string>

output ffmpeg Ex: ['-config1', 'value1', '-config2', 'value2']

bitrate

optional

bitrate: number | 'auto'

The bitrate (quality) of the video in kbps. If set to 'auto', ffmpeg will automatically select

Default: 2000

Unofficial software. Not affiliated with or supported by Discord.