Hi Danilo and all,

You are right, a 160ms Codec2 frame should be 2560 bytes.

I've run the programs again and again, fails:

dd if=/dev/zero of=blank count=10             <- 2x 160ms frames

./src/freedv_tx 1600 blank blank9.raw         <- output is also same size, good.

./src/c2enc 700C blank blank.c2                < output 39 bytes, all good.

./src/freedv_tx 700D blank.c2 blank8.raw --codectx    <- output is zero bytes, 
not good!!

Not good. What have I done wrong?

I've tried this with an older Codec2 version, same results.

Alan VK2ZIW

On Mon, 19 Aug 2019 08:24:42 +0200, Danilo Beuche wrote

> Hi Al,
> 
> On 19 Aug 2019 01:38, Al Beard wrote:
> Hi 
all,

I need to bet back to 
basics:

At the command line, do I have the tools for a "parrot" 
repeater?

Let's 
start:

1) a silence "raw" 
file
dd if=/dev/zero of=blank 
count=1
2) generate a Codec2 mode 700D 
file
c2enc 700D blank 
blank.c2
3) generate a RAW audio 
file
freedv_tx 700D blank.c2 blank.raw 
--codectx
> 3) is not working at the moment. It callsfreedv_tx which does not handle the 
> (interleave_frames == 1)case for 700D properly as far as I can see. The 
> functionfreedv_comptx handles it correctly though.
> 
> Can't say anything for 2) but 1) is working,but creates only 512 bytes. Which 
> is a too short sample I think.700D wants at least 160ms of input, at 8 
> khz/16bit mono  512bytes translate to  32 ms.
>  Regards,
> Danilo

--------------------------------------------------- 
Alan Beard

OpenWebMail 2.53

 
_______________________________________________
Freetel-codec2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freetel-codec2

Reply via email to