EliasOenal / multimon-ng

GNU General Public License v2.0
923 stars 206 forks source link

Only partially decoding from pipe, but completely from .raw file (reproducible) #197

Open ivansieder opened 2 years ago

ivansieder commented 2 years ago

@EliasOenal first of all: thank you a lot for multimon-ng!

I've got a strange behaviour where multimon-ng is only partially decoding when piping directly from rtl_fm but decoding completely when i store that file as a .raw file and feed it back into multimon-ng afterwards. To me it seems to be somehow related to buffering. I've tried the unix buffer program, but that only helps partially.

Commands used for piping and recording (outputs only 2 decoded lines): rtl_fm -f xxxxx -M fm -s 22050 -g 35 -l 20 -F 9 -A std - | tee >(sox -t raw -b 16 -e signed-integer -r 22050 - -t raw -b 16 -e signed-integer -r 22050 out.raw) | multimon-ng -q -c -a POCSAG1200 -C DE -f alpha -t raw -e --timestamp -

Commands used for feeding the .raw file directly (outputs all 3 lines as expected): multimon-ng -q -c -a POCSAG1200 -C DE -f alpha -t raw -e --timestamp out.raw

In between those two I've placed a tee command to pipe the output to a .raw file and then pass it on to multimon-ng without interfering.

I've got the .raw file so that it's reproducible, but would prefer not to share that here publicly. So if you would be able to look into this, feel free to write me at sorrels.skating0w@icloud.com (dynamic email from Apple, will be forwarded to mine afterwards)