GNOME Bugzilla – Bug 661376
G722 caps negotiation doesn't work propertly
Last modified: 2011-10-29 15:11:41 UTC
Created attachment 198715 [details] [review] proposed patch The following pipeline: audiotestsrc ! audio/x-raw-int,channels=2\;audio/x-raw-int,channels=1 ! ffenc_g722 ! fakesink Bails out because caps negotiation decided to use 2 channels, while ffenc_g722 only actually supports 1 channel. Fixed in attached patch, which also improves the general caps negotiation for ffmpeg audio codecs.
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.
Closed the wrong one, woops
Created attachment 198737 [details] [review] Further specify G722 and G726 rates
Review of attachment 198715 [details] [review]: Looks fine. I do wonder why AAC/AC-3/etc are restricted to a maximum of 6 channels, but that is a general question as this patch does not change the behaviour w.r.t. this point.
Review of attachment 198737 [details] [review]: Looks fine to me.
commit b05352beee821d8634e4dfd9a20067426511b0e4 Author: Sjoerd Simons <sjoerd.simons@collabora.co.uk> Date: Mon Oct 10 22:04:48 2011 +0100 ffmpegcodecmap: Further specify allowed rates for G722 and G726 commit 93b333cfea7bffb2a09e11f33bb502ab5cb0bf2f Author: Sjoerd Simons <sjoerd.simons@collabora.co.uk> Date: Mon Oct 10 14:50:09 2011 +0100 ffmpegcodecmap: Always restrict audio codec in the unfixed cases If the context isn't fixed yet or if it doesn't exist then always restrict the caps. Also restrict the maximum channels for G726 and G722 to 1 channel