Closed
Bug 1141264
Opened 11 years ago
Closed 11 years ago
H264 profile-level-id not negotiated properly
Categories
(Core :: WebRTC: Audio/Video, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: ggb, Unassigned)
Details
According to RFC3984:
"The parameters identifying a media format configuration for H.264 are "profile-level-id", "packetization-mode", and, if required by "packetization-mode", "sprop-deint-buf-req". These three parameters MUST be used symmetrically; i.e., the answerer MUST either maintain all configuration parameters or remove the media format (payload type) completely, if one or more of the parameter values are not supported."
But it looks like if the profile-level-id is hardcoded in FF:
Offer from a non browser EndPoint:
a=rtpmap:125 H264/90000
a=fmtp:125 profile-level-id=42e032
Answer from Firefox 36:
a=rtpmap:125 H264/90000
a=fmtp:125 profile-level-id=42e01f
A maybe related issue. The H.264 demo page doesn't work if the "Preferred mode 0" checkbox is selected:
http://mozilla.github.io/webrtc-landing/pc_test.html
Comment 2•11 years ago
|
||
The H.264 profile negotiation code probably wasn't entirely correct to spec before we rewrote the negotiation code recently --though your example is not a spec violation: level was reduced from 5.0 to 3.1, which was the highest we advertise or officially support thus far. You're allowed to reduce the level portion (see the nitty-gritty of offer-answer use in RFC 6184), and both sides must use the reduced level (unless level-asymmetry is negotiated, see spec for yet another huge layer of complexity). Byron is working on updating the profile negotiation code, which may be currently less-to-spec in the rewrite done recently.
The maximum level supported is a pref in media.navigator.video.h264.level, along with max_br and max_mbps settings.
3.1 may be conservative, but it supports 1280x720@30fps. Supporting 4.0 may make some sense (1920x1080@30fps), but we haven't tried it.
5.0 would be saying "we support decoding 2560x1920@30fps", which likely is pushing any reasonable realtime software encoder to produce.
There is a separate bug or two with Mode 0 support, which we likely will either turn off (temporarily) unless we can get a fix in soon. Partly this is due to a lack of true mode 0 devices to test against. (Few people are interested in supporting Mode 0 anymore except for spec-compatibility reasons (it's required)).
I had misunderstood the negotiation of the profile levels. Thank you very much for the clear description Randell.
Updated•11 years ago
|
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•