chuot / rdio-scanner

Rdio Scanner is an open source software that ingest and distribute audio files generated by various software-defined radio recorders. Its interface tries to reproduce the user experience of a real police scanner, while adding its own touch.
GNU General Public License v3.0
422 stars 59 forks source link

Android app: Error 21 cannot create file when saving call from history #364

Open canuckcam opened 1 year ago

canuckcam commented 1 year ago

On my Samsung S23 and S21, I get an error of FileSystemException: Cannot create file, path = '/storage/emulated/0/Download' (OS Error: Is a directory, errno = 21) when saving a call from the Search Call section. My source is SDRTrunk 0.6.0 a6 using its built-in API uploader functionality. Server is v6.6.3 on Ubuntu 22.04 LTS.

Screenshot_20230704_151645

Strangely enough I recently noticed the audio files are downloaded as unknown.dat on my Windows 10 laptop (works fine when manually renamed), but the proper filename (.m4a) does show on my Mac!

repairfox commented 1 year ago

Adding to this, same issue on my Iphone native app. If it makes any difference, I have the paid version. I’m attaching a screenshot. When I access by browser, I can download but have the same .dat extension. However if I change the extension to .mp3 (which is the original format), it works fine. IMG_2579

canuckcam commented 1 year ago

I also have the paid version of the app. Is your source from SDRTrunk 0.6.0a7's Streaming tab? I think it's something to do with how SDRTrunk accesses the API. I might need to go back to running Rdio-Scanner as a client on those machines. My logs show Trunk-Recorder ingests correctly with a filename.

Trunk-Recorder: 08/07 00:30 newcall: system=10 talkgroup=36176 file=36176-1691382647_142290000.0-call_331570.m4a success

SDRTrunk: 08/07 00:30 newcall: system=1 talkgroup=1605 file= success

repairfox commented 11 months ago

@canuckcam I added ffmpeg today, and now this problem is resolved for me.

canuckcam commented 11 months ago

Thanks! Do you get a filename?

So I installed ffmpeg, then enabled Options>Audio Conversion: Enabled with normalization. Now I get an m4a.mp4 file on a browser. If I disable audio conversion, I see the unknown.dat again. But the Android (paid) and iPhone (unpaid) app still gives me the error.