robotastic / trunk-recorder

Records calls from a Trunked Radio System (P25 & SmartNet)
GNU General Public License v3.0
827 stars 191 forks source link

Feature Request: New Directory for each TGID #941

Open decoy4fun opened 3 months ago

decoy4fun commented 3 months ago

This may be a niche request and not worth the time. How much work would it take to add an option in the config file to allow each talkgroup to create its own directory in your recording folder? I imagine this being set at a system level, and disabled by default unless overridden by the user.

My use case is I like to pull audio files for events and merge them into one long audio file. Sorting/filtering isn't horrible, but if each was in its own directory it would be much easier to find the start/end and merge just those files.

ge0metrix commented 3 months ago

I'd go as far as asking to have a format string for the audio file names ... allow them to be customized.

example {shortname}/{talkgroup_tag}/{timestamp}_{freq}.wav

rosecitytransit commented 4 weeks ago

One idea would be to copy just the specific talk group files to another folder or run a command on them using a wildcard (e.g. cp shortname-1234-*).

For my local instance (where I'm not uploading), I just edited the code to have it create what I wanted.