mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Fix audio transcoding with video only file
This commit is contained in:
@@ -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)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user