szpajder / dumphfdl

Multichannel HFDL decoder
GNU General Public License v3.0
125 stars 14 forks source link

Pipe Input? #4

Closed M0CRT closed 2 years ago

M0CRT commented 2 years ago

Hi Szpajder

Awesome work here. Was looking for this decoder within Linux for some time.

I've been using 'Kiwi_nc.py' to connect to a KiwiSDR to pipe streams from SDR over the network to an ICECast server using FFMPEG and the icecast output:

kiwi_nc.py --log=info -s --user --password -p 8073 -f 5515 -m usb | ffmpeg -v info -f s16le -ar 12000 -i pipe:0 -f ogg -content_type application/ogg icecast://source::@/test.mp3

Any chance I can pipe from Kiwi_nc into dumphfdl to process audio from a KiwiSDR rather than from an IQ file or Soapy? Be great to utilise any audio input.

Thanks

Mo

szpajder commented 2 years ago

Not possible at the moment. There is such an item on the TODO list, but it's not of a high priority.

Meanwhile just use PC-HFDL. It does what you need and it works under Wine.

M0CRT commented 2 years ago

Thanks Tomasz.

szpajder commented 2 years ago

The current code from devel branch (https://github.com/szpajder/dumphfdl/tree/devel) allows reading I/Q samples from standard input. Specify --iq-file - to use this feature (that is, the file name should be a dash).

No audio input support is planned at this time. However KiwiSDRs can provide I/Q data, so I don't consider this to be a problem.

szpajder commented 2 years ago

Apparently kiwi_nc.py had a bug which caused I/Q samples to be handled incorrectly. I've submitted a patch and it has been accepted and now I'm getting good decodes with dumphfdl from Kiwis. Pull the current master branch from https://github.com/jks-prv/kiwiclient to get the fix.

szpajder commented 2 years ago

Released in version 1.2.0.

Closing.