ニジカ投稿局 https://tv.nizika.tv
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ffmpeg-image.ts 713 B

1234567891011121314
  1. import { FFmpegImage } from '@peertube/peertube-ffmpeg'
  2. import { getFFmpegCommandWrapperOptions } from './ffmpeg-options.js'
  3. export function processGIF (options: Parameters<FFmpegImage['processGIF']>[0]) {
  4. return new FFmpegImage(getFFmpegCommandWrapperOptions('thumbnail')).processGIF(options)
  5. }
  6. export function generateThumbnailFromVideo (options: Parameters<FFmpegImage['generateThumbnailFromVideo']>[0]) {
  7. return new FFmpegImage(getFFmpegCommandWrapperOptions('thumbnail')).generateThumbnailFromVideo(options)
  8. }
  9. export function convertWebPToJPG (options: Parameters<FFmpegImage['convertWebPToJPG']>[0]) {
  10. return new FFmpegImage(getFFmpegCommandWrapperOptions('thumbnail')).convertWebPToJPG(options)
  11. }