GNOME Bugzilla – Bug 661417
G722 encoder is broken
Last modified: 2011-10-29 15:10:57 UTC
Created attachment 198745 [details] [review] proposed patch the following pipeline: audiotestsrc ! ffenc_g722 ! ffdec_g722 ! pulsesink results in broken audio. Tracked down to wrong usage of the libav api. Patch attached
Review of attachment 198745 [details] [review]: This is correct.
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.
Actually, this will only be in the 0.10.14 gst-ffmpeg, unless Edward cherry-picks it into his gst-ffmpeg pre-release branch.. commit eb2e9f48e33b777b33ce6f86062639b8a85ecdfb Author: Sjoerd Simons <sjoerd.simons@collabora.co.uk> Date: Mon Oct 10 23:56:04 2011 +0100 ffmpegenc: Pass the size of the output buffer to avcodec_encode_audio avcodec_encode_audio is documented as taking the size of the output buffer not the size of the input buffer. This fixes the use of the G722 encoder and makes the code more consistent with avconv from the libav source tree.