diff options
author | Chocobozzz <me@florianbigard.com> | 2020-11-24 16:29:39 +0100 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-11-25 10:07:51 +0100 |
commit | 6b67897e2eab96978daee40aeaf716835856d65d (patch) | |
tree | 2a203bf589599061a62c4e42b0e580a1c61b47ee /server/helpers/ffprobe-utils.ts | |
parent | 33ff70baa64c6315856066682595878a27b7ed8c (diff) | |
download | PeerTube-6b67897e2eab96978daee40aeaf716835856d65d.tar.gz PeerTube-6b67897e2eab96978daee40aeaf716835856d65d.tar.zst PeerTube-6b67897e2eab96978daee40aeaf716835856d65d.zip |
Add transcoding module comments
Diffstat (limited to 'server/helpers/ffprobe-utils.ts')
-rw-r--r-- | server/helpers/ffprobe-utils.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/server/helpers/ffprobe-utils.ts b/server/helpers/ffprobe-utils.ts index d03ab91ac..16b295bbd 100644 --- a/server/helpers/ffprobe-utils.ts +++ b/server/helpers/ffprobe-utils.ts | |||
@@ -5,6 +5,12 @@ import { CONFIG } from '../initializers/config' | |||
5 | import { VIDEO_TRANSCODING_FPS } from '../initializers/constants' | 5 | import { VIDEO_TRANSCODING_FPS } from '../initializers/constants' |
6 | import { logger } from './logger' | 6 | import { logger } from './logger' |
7 | 7 | ||
8 | /** | ||
9 | * | ||
10 | * Helpers to run ffprobe and extract data from the JSON output | ||
11 | * | ||
12 | */ | ||
13 | |||
8 | function ffprobePromise (path: string) { | 14 | function ffprobePromise (path: string) { |
9 | return new Promise<ffmpeg.FfprobeData>((res, rej) => { | 15 | return new Promise<ffmpeg.FfprobeData>((res, rej) => { |
10 | ffmpeg.ffprobe(path, (err, data) => { | 16 | ffmpeg.ffprobe(path, (err, data) => { |