Skip to content

Very reliable recording #48

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
rec opened this issue Oct 29, 2023 · 0 comments
Open

Very reliable recording #48

rec opened this issue Oct 29, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@rec
Copy link
Owner

rec commented Oct 29, 2023

What happens when writing is interrupted on a compressed file format by a crash (i.e. sounddevice or soundfile crashes in C code, both of which have been known to happen...)

Hard to test!

One solution is this:

  • Write uncompressed (e.g. wav)
  • Recovery is easy
  • When a new file is written, a job is spun off to convert it to the compressed format (perhaps with ffmpeg?)
  • A top-level job runs and spawns off separate processes to do the recording, recovery and compression
  • The top-level job can restart the recording job if it fails
@rec rec added the enhancement New feature or request label Oct 29, 2023
@rec rec added this to the Beta milestone Oct 29, 2023
@rec rec self-assigned this Oct 29, 2023
@rec rec removed this from the Beta milestone Oct 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant