Open
Bug 2066951
Opened 2 months ago
Updated 2 months ago
MediaDecoder doesn't tag rotated frames for DecodedStream/VideoDecoder (WebCodecs) consumers
Categories
(Core :: Audio/Video, enhancement)
Core
Audio/Video
Tracking
()
NEW
People
(Reporter: dbaker, Unassigned)
References
Details
Currently only the WebRTC-receive path added in Bug 1340372 (and the fake-camera test-only path) ever populate VideoChunk::mRotation. Decoded file media never does:
DecodedStreamData::WriteVideoToSegment()callsaOutput->AppendFrame()with no rotation argument, so container-signalled rotation (e.g. an MP4tkhdmatrix) never reachesVideoChunk::mRotationfor a MediaStream sourced fromcaptureStream()/mozCaptureStream()on a rotated<video>.- WebCodecs'
VideoDecoder'sCreateVideoFrame()builds the outputdom::VideoFramefromVideoData's image/display size only -- there's norotationfield anywhere inVideoFrame.h/VideoFrame.webidl/WebCodecsUtils.hto carry it even if it were read. This overlaps with the already-tracked upstream WebCodecs rotation work (Bug 1995151, Bug 1995191, Bug 1995193), which should be linked here rather than duplicated.
See Also: Bug 1340372, Bug 1995151, Bug 1995191, Bug 1995193.
You need to log in
before you can comment on or make changes to this bug.
Description
•