GNOME Bugzilla – Bug 788720
opusenc: Allow unpositioned channels.
Last modified: 2017-10-11 15:43:45 UTC
The input will be treated as a set of mono channels.
Created attachment 361190 [details] [review] opusenc: Allow unpositioned channels.
Comment on attachment 361190 [details] [review] opusenc: Allow unpositioned channels. Does it generate correct srcpad caps in that case?
(In reply to Sebastian Dröge (slomo) from comment #2) > Comment on attachment 361190 [details] [review] [review] > opusenc: Allow unpositioned channels. > > Does it generate correct srcpad caps in that case? Yes it does, with 5 channels and channel-mask = 0x0, it pushes caps with a stream-count of 5 and a coupled-count of 0, and a channel-mapping <0, 1, 2, 3, 4>, which then gets correctly decoded by opusdec as channels=5, channel-mask=0x37
Yes that's not correct :) It should be channel-mask=0x0 after the decoder too.
Created attachment 361259 [details] [review] opusenc: Allow unpositioned channels. The input will be treated as a set of mono channels, and the channel-mapping-family will be set to 255 (no defined channel meaning)
(In reply to Sebastian Dröge (slomo) from comment #4) > Yes that's not correct :) It should be channel-mask=0x0 after the decoder > too. Fixed, had to make sure channel-mapping-family was set to 255 with unpositioned input :)
Attachment 361259 [details] pushed as 8598f08 - opusenc: Allow unpositioned channels.