s***@gmx.de
2016-02-16 06:25:02 UTC
Hello,
i had some problems decoding these files here:
https://lowbitnet.wordpress.com/2016/02/09/ultra-low-bit-audio-books/
Having to try different compression-modes is not really user-friendly so
i came up with the idea that codec2 needs a short container format, well
actually just a 4 Byte Header:
"C2%c%c",(char)header_version,(char)mode
I think that should be default when creating a .c2 file in command line,
so i modified c2enc to automatically add this header if --raw or -r is
not given.
Also i added the mode "auto" for c2dec to decode this container format.
What is probably most controversial is that i modified the codec2.h to
have some easily readable compression modes instead of increasing numbers:
;mode Compression-Ratio
;45 450
;70 700
;71 700B
;120 1200
;130 1300
;140 1400
;160 1600
;240 2400
;250 3200
Usage:
c2enc 700B infile.raw test.c2
c2dec auto test.c2 outfile.raw
c2enc 1200 infile.raw test.c2 --raw
c2dec 1200 test.c2 outfile.raw
Feedback Welcome, thanks.
Simon the Sorcerer
i had some problems decoding these files here:
https://lowbitnet.wordpress.com/2016/02/09/ultra-low-bit-audio-books/
Having to try different compression-modes is not really user-friendly so
i came up with the idea that codec2 needs a short container format, well
actually just a 4 Byte Header:
"C2%c%c",(char)header_version,(char)mode
I think that should be default when creating a .c2 file in command line,
so i modified c2enc to automatically add this header if --raw or -r is
not given.
Also i added the mode "auto" for c2dec to decode this container format.
What is probably most controversial is that i modified the codec2.h to
have some easily readable compression modes instead of increasing numbers:
;mode Compression-Ratio
;45 450
;70 700
;71 700B
;120 1200
;130 1300
;140 1400
;160 1600
;240 2400
;250 3200
Usage:
c2enc 700B infile.raw test.c2
c2dec auto test.c2 outfile.raw
c2enc 1200 infile.raw test.c2 --raw
c2dec 1200 test.c2 outfile.raw
Feedback Welcome, thanks.
Simon the Sorcerer