[FFmpeg-devel] [PATCH] Minimal patch for raw G.729 demuxer
voroshil at gmail.com
Sun Oct 30 03:40:49 CET 2011
2011/10/30 Michael Niedermayer <michaelni at gmx.at>:
> On Sun, Oct 30, 2011 at 02:43:55AM +0700, Vladimir Voroshilov wrote:
>> Hi , All
>> Amit Dor-Shifer in "Encoding raw alaw to PCM"
>> asked if ffmpeg able to decode raw g729 stream into some form of PCM
>> Quick investigation shows that such decoding is not possible with
>> existing raw pcm demuxers due to lack
>> of proper g.729 initialization.
>> Attached patch adds simple demuxer especially for g.729.
>> With this patch FFmpeg can decode provided sample using "ffmpeg -f
>> g729 -i test_123.sample test_123.wav" command line(or even "ffmpeg -i
>> test123.g729 test123.wav" after renaming sample file).
>> I've also added special option "bit_rate" for selecting between @8k
>> and @6.4k modes.
>> Asking for review/comment.
> applied, thanks
> also, do you think this could be detected through a probe() instead of
> the file extension ?
Unfortunately, no. At least for this case.
G.729 specification (as well as implemented A and D annexes) does not
define any headers or markers in pure data stream, AFAIK
> Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
> In fact, the RIAA has been known to suggest that students drop out
> of college or go to community college in order to be able to afford
> settlements. -- The RIAA
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
Vladimir Voroshilov mailto:voroshil at gmail.com
Jabber: voroshil at gmail.com
More information about the ffmpeg-devel