Re: [Freetel-codec2] Problems with freedv_tx in 700D mode, my parrot rpt

2019-08-19 Thread Al Beard
Hi Steve and all, I've modified "freedv_tx.c" to take the option "--codectx" to mean, from a c2 file. I note when running it, my output is hugely bigger. ie. dd if=/dev/zero of=blank count=10 freedv_tx 700D blank blank1   <- produces a 7680 byte file c2enc 700D blank blank.c2

Re: [Freetel-codec2] Problems with freedv_tx in 700D mode, my parrot rpt

2019-08-19 Thread Al Beard
Hi Steve, I hear what you are saying but the code: /* OK main loop */    while(fread(speech_in, sizeof(short), n_speech_samples, fin) ==   <- reading the input, ints or chars, shouldn't matter in a Little Endian system. n_speech_samples) {        if (use_codectx ==

Re: [Freetel-codec2] Problems with freedv_tx in 700D mode, my parrot rpt

2019-08-19 Thread Steve
On Mon, Aug 19, 2019 at 4:19 AM Al Beard wrote: > > ./src/freedv_tx 700D blank.c2 blank8.raw --codectx<- output is zero > bytes, not good!! > > Not good. What have I done wrong? I don't think freedv_tx is designed to work with .c2 files. This works: ./freedv_tx 700D

Re: [Freetel-codec2] Problems with freedv_tx in 700D mode, my parrot rpt

2019-08-19 Thread Al Beard
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

Re: [Freetel-codec2] Problems with freedv_tx in 700D mode, my parrot rpt

2019-08-19 Thread Danilo Beuche
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