Fix audio transcoding with video only file

This commit is contained in:
Chocobozzz
2022-01-06 17:55:37 +01:00
parent 78a5dd9c69
commit cbe2f36d93
5 changed files with 46 additions and 16 deletions

View File

@@ -60,7 +60,11 @@ async function run () {
type: 'new-resolution-to-hls',
videoUUID: video.uuid,
resolution,
// FIXME: check the file has audio and is not in portrait mode
isPortraitMode: false,
hasAudio: true,
copyCodecs: false,
isNewVideo: false,
isMaxQuality: maxResolution === resolution,
@@ -72,6 +76,10 @@ async function run () {
dataInput.push({
type: 'new-resolution-to-webtorrent',
videoUUID: video.uuid,
// FIXME: check the file has audio
hasAudio: true,
isNewVideo: false,
resolution: parseInt(options.resolution)
})