fix(server): scale transcoded videos if dimensions are odd (#6461)

scale if odd resolution
This commit is contained in:
Mert
2024-01-17 22:16:44 -05:00
committed by GitHub
parent b98d1bf9d3
commit 9a2fa21b28
3 changed files with 106 additions and 4 deletions

View File

@@ -117,6 +117,36 @@ export const probeStub = {
},
],
}),
videoStreamOddHeight: Object.freeze<VideoInfo>({
...probeStubDefault,
videoStreams: [
{
index: 0,
height: 355,
width: 1586,
codecName: 'h264',
codecType: 'video',
frameCount: 100,
rotation: 0,
isHDR: false,
},
],
}),
videoStreamOddWidth: Object.freeze<VideoInfo>({
...probeStubDefault,
videoStreams: [
{
index: 0,
height: 1586,
width: 355,
codecName: 'h264',
codecType: 'video',
frameCount: 100,
rotation: 0,
isHDR: false,
},
],
}),
audioStreamMp3: Object.freeze<VideoInfo>({
...probeStubDefault,
audioStreams: [{ index: 1, codecType: 'audio', codecName: 'aac', frameCount: 100 }],