Closed Bug 1130366 Opened 10 years ago Closed 6 years ago

[Loop] Video resolution and FrameRate adjustment in desktop's Loop when streaming to a Firefox OS device

Categories

(Firefox OS Graveyard :: Gaia::Loop, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(tracking-b2g:backlog)

RESOLVED WONTFIX
tracking-b2g backlog

People

(Reporter: opatinobugzilla, Unassigned)

Details

Currently, Hello on desktop streams are 640x480@30fps (at least with my laptop, I guess it depends on camera resolution). This stream is perfectly supported by HW decoder on Firefox OS mobile devices, but the CPU usage significantly increases with this resolution. I guess that this happens due to uncompressed frames, at that rate and resolution, moved from HW decoder to Video memory are taking CPU time.

CPU usage increases around 12% when streaming desktop vs Flame compared with Flame vs FireE.

We should establish some kind of device identification between peers in order to adjust on both sides resolution/framerate and not to hog the CPU.
We could use imageattr, RFC6236, in our SDPs. It is already implemented in mozilla central's latest.
The new line could be something like
a=imageattr:97 send [x=320,y=240] recv[x=320,y=240]   (for a flame)
a=imageattr:97 send [x=640,y=480,sar=1.0,q=0.6][x=320,y=240] recv [x=320,y=240]  (for desktop)
(In reply to Oscar Patiño González from comment #1)
> We could use imageattr, RFC6236, in our SDPs. It is already implemented in
> mozilla central's latest.
> The new line could be something like
> a=imageattr:97 send [x=320,y=240] recv[x=320,y=240]   (for a flame)
> a=imageattr:97 send [x=640,y=480,sar=1.0,q=0.6][x=320,y=240] recv
> [x=320,y=240]  (for desktop)

Sorry, I made a mistake writing this. I don't know why I wrote 'it is already implemented' but I wanted to say 'it is not implemented' yet...
[Tracking Requested - why for this release]:
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.