Fix video_share_url duplicate key in transcoding job
This commit is contained in:
parent
9d145133d8
commit
a797728009
6 changed files with 63 additions and 44 deletions
|
@ -1,7 +1,7 @@
|
|||
import * as ffmpeg from 'fluent-ffmpeg'
|
||||
import { join } from 'path'
|
||||
import { VideoResolution } from '../../shared/models/videos'
|
||||
import { CONFIG, MAX_VIDEO_TRANSCODING_FPS } from '../initializers'
|
||||
import { CONFIG, VIDEO_TRANSCODING_FPS } from '../initializers'
|
||||
import { unlinkPromise } from './core-utils'
|
||||
import { processImage } from './image-utils'
|
||||
import { logger } from './logger'
|
||||
|
@ -92,7 +92,9 @@ function transcode (options: TranscodeOptions) {
|
|||
.outputOption('-movflags faststart')
|
||||
// .outputOption('-crf 18')
|
||||
|
||||
if (fps > MAX_VIDEO_TRANSCODING_FPS) command = command.withFPS(MAX_VIDEO_TRANSCODING_FPS)
|
||||
// Our player has some FPS limits
|
||||
if (fps > VIDEO_TRANSCODING_FPS.MAX) command = command.withFPS(VIDEO_TRANSCODING_FPS.MAX)
|
||||
else if (fps < VIDEO_TRANSCODING_FPS.MIN) command = command.withFPS(VIDEO_TRANSCODING_FPS.MIN)
|
||||
|
||||
if (options.resolution !== undefined) {
|
||||
// '?x720' or '720x?' for example
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue