mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2026-09-03 20:53:09 -05:00
Fix audio merge fps typo
This commit is contained in:
@@ -11,7 +11,7 @@ import {
|
||||
setAccessTokensToServers,
|
||||
waitJobs
|
||||
} from '@peertube/peertube-server-commands'
|
||||
import { DEFAULT_AUDIO_RESOLUTION } from '@peertube/peertube-server/core/initializers/constants.js'
|
||||
import { DEFAULT_AUDIO_MERGE_RESOLUTION } from '@peertube/peertube-server/core/initializers/constants.js'
|
||||
import { checkDirectoryIsEmpty, checkTmpIsEmpty } from '@tests/shared/directories.js'
|
||||
import { completeCheckHlsPlaylist } from '@tests/shared/streaming-playlists.js'
|
||||
import { join } from 'path'
|
||||
@@ -72,7 +72,7 @@ describe('Test HLS videos', function () {
|
||||
servers,
|
||||
videoUUID: uuid,
|
||||
hlsOnly,
|
||||
resolutions: [ DEFAULT_AUDIO_RESOLUTION, 360, 240 ],
|
||||
resolutions: [ DEFAULT_AUDIO_MERGE_RESOLUTION, 360, 240 ],
|
||||
objectStorageBaseUrl
|
||||
})
|
||||
})
|
||||
|
||||
@@ -12,7 +12,7 @@ import {
|
||||
setAccessTokensToServers,
|
||||
waitJobs
|
||||
} from '@peertube/peertube-server-commands'
|
||||
import { DEFAULT_AUDIO_RESOLUTION } from '@peertube/peertube-server/core/initializers/constants.js'
|
||||
import { DEFAULT_AUDIO_MERGE_RESOLUTION } from '@peertube/peertube-server/core/initializers/constants.js'
|
||||
import { checkDirectoryIsEmpty, checkTmpIsEmpty } from '@tests/shared/directories.js'
|
||||
import { completeCheckHlsPlaylist } from '@tests/shared/streaming-playlists.js'
|
||||
import { expect } from 'chai'
|
||||
@@ -80,7 +80,7 @@ describe('Test HLS with audio and video splitted', function () {
|
||||
videoUUID: uuid,
|
||||
hlsOnly,
|
||||
splittedAudio: true,
|
||||
resolutions: [ DEFAULT_AUDIO_RESOLUTION, 360, 240 ],
|
||||
resolutions: [ DEFAULT_AUDIO_MERGE_RESOLUTION, 360, 240 ],
|
||||
objectStorageBaseUrl
|
||||
})
|
||||
})
|
||||
|
||||
@@ -573,8 +573,8 @@ export const MAX_LOCAL_VIEWER_WATCH_SECTIONS = 100
|
||||
|
||||
export let CONTACT_FORM_LIFETIME = 60000 * 60 // 1 hour
|
||||
|
||||
export const DEFAULT_AUDIO_RESOLUTION = VideoResolution.H_480P
|
||||
export const DEFAULT_AUDIO_MERGE_RESOLUTION = 25
|
||||
export const DEFAULT_AUDIO_MERGE_RESOLUTION = VideoResolution.H_480P
|
||||
export const DEFAULT_AUDIO_MERGE_FPS = 25
|
||||
|
||||
export const VIDEO_RATE_TYPES: { [id: string]: VideoRateType } = {
|
||||
LIKE: 'like',
|
||||
|
||||
@@ -2,7 +2,7 @@ import { VideoFileStreamType, VideoResolution } from '@peertube/peertube-models'
|
||||
import { computeOutputFPS } from '@server/helpers/ffmpeg/framerate.js'
|
||||
import { logger, loggerTagsFactory } from '@server/helpers/logger.js'
|
||||
import { CONFIG } from '@server/initializers/config.js'
|
||||
import { DEFAULT_AUDIO_MERGE_RESOLUTION, DEFAULT_AUDIO_RESOLUTION } from '@server/initializers/constants.js'
|
||||
import { DEFAULT_AUDIO_MERGE_FPS, DEFAULT_AUDIO_MERGE_RESOLUTION } from '@server/initializers/constants.js'
|
||||
import { Hooks } from '@server/lib/plugins/hooks.js'
|
||||
import { MUserId, MVideoFile, MVideoFull } from '@server/types/models/index.js'
|
||||
import { buildOriginalFileResolution, computeResolutionsToTranscode } from '../../transcoding-resolutions.js'
|
||||
@@ -33,8 +33,8 @@ export abstract class AbstractJobBuilder<P extends { transcodingPriority: Transc
|
||||
|
||||
if (videoFile.isAudio()) {
|
||||
// The first transcoding job will transcode to this FPS value
|
||||
maxFPS = Math.min(DEFAULT_AUDIO_MERGE_RESOLUTION, CONFIG.TRANSCODING.FPS.MAX)
|
||||
maxResolution = DEFAULT_AUDIO_RESOLUTION
|
||||
maxFPS = Math.min(DEFAULT_AUDIO_MERGE_FPS, CONFIG.TRANSCODING.FPS.MAX)
|
||||
maxResolution = DEFAULT_AUDIO_MERGE_RESOLUTION
|
||||
|
||||
mergeOrOptimizePayload = this.buildMergeAudioPayload({
|
||||
video,
|
||||
|
||||
Reference in New Issue
Block a user