[FFmpeg-devel] [PATCH] G.722 decoder
Martin Storsjö
martin
Thu Sep 9 08:18:45 CEST 2010
On Thu, 9 Sep 2010, Martin Storsj? wrote:
> On Wed, 8 Sep 2010, Michael Niedermayer wrote:
>
> > On Wed, Sep 08, 2010 at 06:06:42PM +0300, Martin Storsj? wrote:
> >
> > lowres could be checked for this
>
> Ah, so if avctx->lowres == 1, we'd just output the lower subband? Good
> idea, I'll try to implement that tomorrow.
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.
// Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Initial-G.722-decoder-patch.patch
Type: text/x-diff
Size: 14380 bytes
Desc:
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100909/e588df52/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Allow-the-lowres-option-to-affect-audio-codecs-too.patch
Type: text/x-diff
Size: 1410 bytes
Desc:
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100909/e588df52/attachment-0001.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-G.722-muxer-demuxer.patch
Type: text/x-diff
Size: 2874 bytes
Desc:
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100909/e588df52/attachment-0002.patch>
More information about the ffmpeg-devel
mailing list