Open Bug 984216 Opened 11 years ago Updated 2 years ago

[B2G] Media Recording should able to handle correct rotation angle of camera

Categories

(Core :: Audio/Video: Recording, defect, P3)

ARM
Gonk (Firefox OS)
defect

Tracking

()

People

(Reporter: slee, Unassigned)

References

Details

Current MediaEngineWebRTCVideoSource::OnNewPreviewFrame rotates the video frames according to the phone is in portrait or landscape mode. It may introduce some problems, such as performance and some unnecessary rotation in MediaRecorder. This bug is to make MediaRecorder read the rotation angle set in bug 976397 and do what it want to do.
Only apply to b2g platform.
Summary: Media Recording should able to handle correct rotation angle of camera → [B2G] Media Recording should able to handle correct rotation angle of camera
Can try this comment:
https://bugzilla.mozilla.org/show_bug.cgi?id=976397#c24
 
Per discussion when we landed the patch with DYNAMIC_GUM_ROTATION turned off, what the MediaRecorder needs to do is: 
if rotation == initial rotation, just encode
if rotation != initial rotation, scale-and-inset-with-black-bars (90 degree rotates).  Note that whether the black bars are top/bottom or left/right will depend on the initial rotation.  I'm assuming 180 rotate can be handled automatically as there's no resolution change.

Note that PeerConnection would really benefit from DYNAMIC_GUM_ROTATION
Status: NEW → ASSIGNED
Free it if anyone wants.
Assignee: globelinmoz → nobody
Rank: 27
Priority: -- → P2
Mass change P2->P3 to align with new Mozilla triage process.
Priority: P2 → P3
No assignee, updating the status.
Status: ASSIGNED → NEW
No assignee, updating the status.
No assignee, updating the status.
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.