Open
Bug 937455
Opened 11 years ago
Updated 2 years ago
shrink vorbis encoder tables
Categories
(Core :: Audio/Video: Recording, defect, P5)
Core
Audio/Video: Recording
Tracking
()
NEW
backlog | parking-lot |
People
(Reporter: rillian, Unassigned)
References
Details
(Whiteboard: [ft:multimedia-platform][MemShrink:P3])
Monty pointed out the full encoder mode tables used by vorbisenc are quite large. It would be nice to omit some of them if we don't need the full flexibility.
Reporter | ||
Comment 1•11 years ago
|
||
I don't understand the requirements properly here. What numbers of channels and samplerates do we need to support for the MediaEncoder api?
Depends on: 931060
Whiteboard: [ft:media-recording]
Reporter | ||
Comment 2•11 years ago
|
||
Looks like we can get by with only Mono/Stereo. Not sure about sample rates.
Updated•11 years ago
|
Whiteboard: [ft:media-recording] → [ft:multimedia-platform]
Comment 3•10 years ago
|
||
I can make a patch against vorbis upstream to remove the surround tables and fall back to pre-surround pairwise channel coupling for > 2 channels. That means surround encoding will still work, it just won't be optimized.
Reporter | ||
Comment 4•10 years ago
|
||
I'd rather it just failed. More obvious than mysteriously degraded quality. The recording API rejects non-stereo streams currently, so there's nothing we need to avoid breaking.
Comment 5•10 years ago
|
||
I think the recording API accepts any number of streams, it is the MediaEncoder who checks for acceptance of channels. The vorbis encoder in Bug 883749 rejects channels <= 0 || channels > 8, though, it would be an easy change to restrict it to max channels of two.
Reporter | ||
Comment 6•10 years ago
|
||
Right, thanks. Do you know if we can usefully restrict supported sample rates for the MediaEncoder interface.
Comment 7•10 years ago
|
||
Hmm...for now the only way to restrict supported sample rates is to copy what we did in OpusTrackEncoder. Maybe the MediaEncoder can export some methods of restricting supported channels and sample rates, so that it would be easier to set up and clearer to tell the restrictions per different codecs?
Comment 8•10 years ago
|
||
Just so I don't accidentally drop the action-ball here, I'm waiting for a clear decision on the best path forward before doing anything; all of the suggestions made thusfar are equally doable on the Vorbis library side.
Reporter | ||
Comment 9•10 years ago
|
||
Ok. I think we should patch our in-tree libvorbis to remove (or just not build) the 5.1 tables and be satisfied with that. Monty, can you make it so?
Assignee: nobody → monty
Comment 10•10 years ago
|
||
yes. Should I patch against master or upstream?
Reporter | ||
Comment 11•10 years ago
|
||
You should write a patch, apply it to firefox, add a copy to media/libvorbis and change update.sh to apply it after copying upstream files. In this way we maintain variance against upstream. If you think a --disable-surround configure option is useful upstream, that would be ok too, but it sounds like more work.
Comment 12•10 years ago
|
||
I would be worried about build of standard libvorbis that either mysteriously can't encode surround, or do a bad job of it. For the existing installbase, this would probably violate principle of least surprise, especially when it would be hard for a user to figure it out.
Reporter | ||
Comment 13•10 years ago
|
||
Yep. Hence the ff-only patch.
Updated•10 years ago
|
Component: Video/Audio → Video/Audio: Recording
Updated•9 years ago
|
backlog: --- → parking-lot
Whiteboard: [ft:multimedia-platform] → [ft:multimedia-platform][memshrink]
Updated•9 years ago
|
Rank: 55
Priority: -- → P5
Updated•8 years ago
|
Whiteboard: [ft:multimedia-platform][memshrink] → [ft:multimedia-platform][MemShrink:P3]
Updated•2 years ago
|
Assignee: monty → nobody
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•