[FFmpeg-devel] [PATCH 0/3] Add codec2 support
Tomas Härdin
tjoppen at acc.umu.se
Sun Dec 24 00:08:59 EET 2017
Hi
I've had some time recently to revise the codec2 patchset from a few
months ago, just in time for the holidays. For those not in the know,
codec2 is an ultra-low bitrate voice codec primarily intended for
amateur radio use, but which has recently found use in compressing
podcasts and audiobooks. Trunking is another potential use.
The most important changes in this patchset are:
* Removed the CODEC2_MODE_* defines since they caused trouble if the
system has an older version of libcodec2 installed. Debian stretch
ships libcodec2 0.4 which lacks CODEC2_MODE_700C and so this wouldn't
compile. These defines are only used in AVPRIV_CODEC2_AVOPTIONS anyway,
so verbatim numbers are fine IMO.
* Fixed detection of non-working modes. Again, attempting 700C on
libcodec2 0.4.
* Expanded documentation.
Bikeshedding opportunities:
* should codec2 mode be carried in extradata or codec_tag?
Future work:
* add support for CODEC2_MODE_WB once it's stable
* FATE tests: bitexact remuxing in all modes, encoding all modes,
decoding all modes
For the FATE bit I'm thinking something like the test script attached.
I attached a 12 second sample too, a whopping 5 kB in size 😎
/Tomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sa2tms.c2
Type: application/octet-stream
Size: 5063 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20171223/dd62057d/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_codec2.sh
Type: application/x-shellscript
Size: 1103 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20171223/dd62057d/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20171223/dd62057d/attachment.sig>
More information about the ffmpeg-devel
mailing list