Skip to content
This repository has been archived by the owner on Feb 16, 2024. It is now read-only.

If camera fails it's not recovered #39

Closed
Razican opened this issue Aug 25, 2015 · 1 comment
Closed

If camera fails it's not recovered #39

Razican opened this issue Aug 25, 2015 · 1 comment
Assignees
Milestone

Comments

@Razican
Copy link
Member

Razican commented Aug 25, 2015

Currently, if the camera fails, it will not recover. It will try to stop the video, but pkill returns status code != 0, so it thinks it did not stop, so it does not try to restart recording / taking pictures.

This is a minor issue (the program continues, and all the other components work perfectly), but we would lose all the video footage since the camera fail. We should try to recover the camera and record the rest of the footage.

Maybe we could have a thread check the recording status each x seconds and if it fails, restart the recording. On the other hand, when trying to take a picture, we could check if the raspivid process is still running, and if not, assume it has failed and try to recover it.

@Razican Razican added this to the 1.0 milestone Aug 25, 2015
@Razican Razican changed the title If camera fails we do not recover it If camera fails it's not recovered Aug 25, 2015
@Razican Razican self-assigned this Aug 29, 2015
@Razican
Copy link
Member Author

Razican commented Sep 10, 2015

It seems that this is still happening.

@Razican Razican reopened this Sep 10, 2015
Razican added a commit that referenced this issue Sep 15, 2015
@Razican Razican closed this as completed Sep 15, 2015
Razican added a commit that referenced this issue Jun 2, 2016
Razican added a commit that referenced this issue Jun 2, 2016
Razican added a commit that referenced this issue Jun 2, 2016
Razican added a commit that referenced this issue Jun 2, 2016
Razican added a commit that referenced this issue Jun 6, 2016
Razican added a commit that referenced this issue Jun 6, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant