GNOME Bugzilla – Bug 797275
flvdemux: Use aac codec-data to adjust channels if needed
Last modified: 2018-10-12 18:42:27 UTC
Created attachment 373893 [details] [review] flvdemux: Use aac codec-data to adjust channels if needed Flv does not support various channels in AAC stream format, for example flvdemux detect an audio channels of 2(stereo) when the AAC really is 1(mono).
Do you have a small test? maybe just the header of such a file? Like one with just an audio stream? Otherwise the patch looks good to me.
(In reply to Olivier Crête from comment #1) > Do you have a small test? maybe just the header of such a file? Like one > with just an audio stream? > > Otherwise the patch looks good to me. Okay, I will upload a simple test. :)
Created attachment 373910 [details] [review] tests: flvdemux: Add new test for channel detect using aac codec-data Add test case to verify channel detect using aac codec-data. The FLV packet used in this test was created using gst-launch as follows: gst-launch-1.0 audiotestsrc ! audio/x-raw, rate=22050, channels=1 ! fdkaacenc ! flvmux streamable=true ! fakesink
Thank you for your contribution! Attachment 373893 [details] pushed as bd6a4aa - flvdemux: Use aac codec-data to adjust channels if needed Attachment 373910 [details] pushed as afa4be4 - tests: flvdemux: Add new test for channel detect using aac codec-data