Skip to content

Commit

Permalink
raar-record-handler: Increase minimum recording size
Browse files Browse the repository at this point in the history
Increase the minimum recording file size from 1 to 20 MiB. This should
prevent sporadic, premature recording movements, especially on busy
systems in combination with the default FLAC codec (which produces
files that grow between 0.05 and 0.14 MiB/s).

The size of 20 MiB shouldn't be too small for lossless files (FLAC and
WAV) but also not too high for lossy codecs such as MP3 with 96 Kbit/s
  • Loading branch information
paraenggu committed Apr 12, 2018
1 parent 8b1d278 commit bb2f5fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/raar-record-handler.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ echo "Watching for new records in ${watchDir}"
echo "Recordings will be moved to ${destDir}"

# The minimum size a recording must have to trigger an archival
minFileSize="1048576" # 1 MiB
minFileSize="$(( 20 * 1048576 ))" # 20 MiB

inotifywait --monitor --event close_write "${watchDir}" | while read \
watchedFileName eventNames eventFileName
Expand Down

0 comments on commit bb2f5fd

Please sign in to comment.