Adapt storyboard sprite ratio

This commit is contained in:
Chocobozzz
2023-11-09 08:58:11 +01:00
parent c2cf26eaf7
commit 3da9fbbe39
4 changed files with 47 additions and 20 deletions

View File

@@ -114,6 +114,12 @@ async function getVideoStreamDimensionsInfo (path: string, existingProbe?: Ffpro
}
}
if (videoStream.rotation === '90' || videoStream.rotation === '-90') {
const width = videoStream.width
videoStream.width = videoStream.height
videoStream.height = width
}
return {
width: videoStream.width,
height: videoStream.height,