1
0
Fork 0

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
No known key found for this signature in database
GPG key ID: 583A612D890159BE
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)
})