1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 19:42:24 +02:00

Add transcoding module comments

This commit is contained in:
Chocobozzz 2020-11-24 16:29:39 +01:00 committed by Chocobozzz
parent 33ff70baa6
commit 6b67897e2e
6 changed files with 68 additions and 18 deletions

View file

@ -5,6 +5,12 @@ import { CONFIG } from '../initializers/config'
import { VIDEO_TRANSCODING_FPS } from '../initializers/constants'
import { logger } from './logger'
/**
*
* Helpers to run ffprobe and extract data from the JSON output
*
*/
function ffprobePromise (path: string) {
return new Promise<ffmpeg.FfprobeData>((res, rej) => {
ffmpeg.ffprobe(path, (err, data) => {