]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - shared/ffmpeg/ffmpeg-utils.ts
Translated using Weblate (Persian)
[github/Chocobozzz/PeerTube.git] / shared / ffmpeg / ffmpeg-utils.ts
CommitLineData
0c9668f7
C
1import { EncoderOptions } from '@shared/models'
2
3export type StreamType = 'audio' | 'video'
4
5export function buildStreamSuffix (base: string, streamNum?: number) {
6 if (streamNum !== undefined) {
7 return `${base}:${streamNum}`
8 }
9
10 return base
11}
12
13export function getScaleFilter (options: EncoderOptions): string {
14 if (options.scaleFilter) return options.scaleFilter.name
15
16 return 'scale'
17}