ActivityPub-federated video streaming platform using P2P directly in your web browser
Fix detecting video stream rotation
Chocobozzzb02f1aec303d
diff --git a/packages/ffmpeg/src/ffprobe.ts b/packages/ffmpeg/src/ffprobe.tsindex d184015865..6c1c539888 100644--- a/packages/ffmpeg/src/ffprobe.ts+++ b/packages/ffmpeg/src/ffprobe.ts@@ -1,6 +1,6 @@-import ffmpeg, { FfprobeData } from 'fluent-ffmpeg'import { buildAspectRatio, forceNumber } from '@peertube/peertube-core-utils'import { VideoResolution } from '@peertube/peertube-models'+import ffmpeg, { FfprobeData } from 'fluent-ffmpeg'/***@@ -114,7 +114,11 @@ async function getVideoStreamDimensionsInfo (path: string, existingProbe?: Ffpro}}- if (videoStream.rotation === '90' || videoStream.rotation === '-90') {+ const rotation = videoStream.rotation+ ? videoStream.rotation + ''+ : undefined++ if (rotation === '90' || rotation === '-90') {const width = videoStream.widthvideoStream.width = videoStream.heightvideoStream.height = width@@ -205,16 +209,19 @@ async function getChaptersFromContainer (options: {// ---------------------------------------------------------------------------export {- getVideoStreamDimensionsInfo,+ ffprobePromise,+ getAudioStream,getChaptersFromContainer,+getMaxAudioBitrate,+getVideoStream,+ getVideoStreamBitrate,+ getVideoStreamDimensionsInfo,getVideoStreamDuration,- getAudioStream,getVideoStreamFPS,- isAudioFile,- ffprobePromise,- getVideoStreamBitrate,hasAudioStream,- hasVideoStream++ hasVideoStream,+ isAudioFile}