2023-07-31 08:34:36 -04:00
|
|
|
import { FFmpegImage } from '@peertube/peertube-ffmpeg'
|
|
|
|
import { getFFmpegCommandWrapperOptions } from './ffmpeg-options.js'
|
2023-04-21 08:55:10 -04:00
|
|
|
|
|
|
|
export function processGIF (options: Parameters<FFmpegImage['processGIF']>[0]) {
|
|
|
|
return new FFmpegImage(getFFmpegCommandWrapperOptions('thumbnail')).processGIF(options)
|
|
|
|
}
|
|
|
|
|
|
|
|
export function generateThumbnailFromVideo (options: Parameters<FFmpegImage['generateThumbnailFromVideo']>[0]) {
|
|
|
|
return new FFmpegImage(getFFmpegCommandWrapperOptions('thumbnail')).generateThumbnailFromVideo(options)
|
|
|
|
}
|
|
|
|
|
|
|
|
export function convertWebPToJPG (options: Parameters<FFmpegImage['convertWebPToJPG']>[0]) {
|
|
|
|
return new FFmpegImage(getFFmpegCommandWrapperOptions('thumbnail')).convertWebPToJPG(options)
|
|
|
|
}
|