9 Sep
2010
9 Sep
'10
11:49 a.m.
Martin Storsj? <martin <at> martin.st> writes:
Implemented it, and it works more or less. I had to add an A flag to the lowres option in lavc/options.c. Also, if lowres is enabled, I set the sample rate to the half in g722_init, but it doesn't propagate automatically to the output when transcoding with ffmpeg, since it probably copies the original sample rate before opening the decoder.
I suspect you have to right shift the sample_rate in avcodec_open by lowres (and remove AVMEDIA_TYPE_VIDEO from the lowres sanity check and change your decoder definition accordingly). Carl Eugen