blob: 7d09c32ca72366ab3588184503a9967c1f9a9738 (
plain) (
tree)
|
|
import { EncoderOptions } from '@shared/models'
export type StreamType = 'audio' | 'video'
export function buildStreamSuffix (base: string, streamNum?: number) {
if (streamNum !== undefined) {
return `${base}:${streamNum}`
}
return base
}
export function getScaleFilter (options: EncoderOptions): string {
if (options.scaleFilter) return options.scaleFilter.name
return 'scale'
}
|