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:
parent
33ff70baa6
commit
6b67897e2e
6 changed files with 68 additions and 18 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue