]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/helpers/ffmpeg-utils.ts
Federate video update
[github/Chocobozzz/PeerTube.git] / server / helpers / ffmpeg-utils.ts
index 913a909058e334490678ffb17a43029916272597..c07dddefe9448ece2e4f9469b898a38df0daab58 100644 (file)
@@ -1,4 +1,3 @@
-import * as Promise from 'bluebird'
 import * as ffmpeg from 'fluent-ffmpeg'
 
 import { CONFIG } from '../initializers'
@@ -57,9 +56,10 @@ function transcode (options: TranscodeOptions) {
                     .videoCodec('libx264')
                     .outputOption('-threads ' + CONFIG.TRANSCODING.THREADS)
                     .outputOption('-movflags faststart')
+                    // .outputOption('-crf 18')
 
     if (options.resolution !== undefined) {
-      const size = `${options.resolution}x?` // '720x?' for example
+      const size = `?x${options.resolution}` // '?x720' for example
       command = command.size(size)
     }