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

Add circular buffer for recording #39

Closed
waveform80 opened this Issue Jan 5, 2014 · 1 comment

Comments

Projects
None yet
2 participants
@waveform80
Owner

waveform80 commented Jan 5, 2014

There's a rather cool patch that's just landed in raspivid (raspberrypi/userland#132) which permits recording to a circular in-memory buffer and then permitting the last n seconds (where n <= the length of the buffer) to be dumped to disk on a key-press.

It's currently possible to implement this in picamera, but non-trivial as it'd involve firstly building a custom stream to replicate the circular buffer, and then dealing with the MMAL interface to figure out the location of the SPS headers and I-frames (actually the latter could probably be done with the new frame property, but not the former currently).

We should make this easier for new users firstly by providing such a circular stream in the package, and secondly by making it easier to query the location of SPS headers.

@ghost ghost assigned waveform80 Jan 5, 2014

@waveform80 waveform80 closed this in 7ef66e1 Jan 9, 2014

@bennuttall

This comment has been minimized.

Contributor

bennuttall commented Jan 9, 2014

w00t!

Ben

On 9 January 2014 21:23, Dave Jones notifications@github.com wrote:

Closed #39 #39 via 7ef66e17ef66e1
.


Reply to this email directly or view it on GitHubhttps://github.com//issues/39
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment