Fix audio transcoding with video only file
This commit is contained in:
parent
78a5dd9c69
commit
cbe2f36d93
5 changed files with 46 additions and 16 deletions
|
@ -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)
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue