-
Notifications
You must be signed in to change notification settings - Fork 358
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 ability to determine recording frame number #34
Comments
That was quick Dave... I only noticed you had made the change when I Other data people might find useful to pull out while the video is being Thanks again Mart On Sun, Dec 22, 2013 at 6:17 AM, Dave Jones notifications@github.comwrote:
Blog - www.stuffaboutcode.com Twitter - @martinohanlon |
Hi Martin - yup, it was a really trivial change so I figured I'd knock it off and push it to the repo quickly. I'll add some recipes to the docs for it at some point (I'm intending to do three for the split_recording: time-based, size-based, and now frame-based). What are PTC and DTC? I tried googling a bit for them but drew a blank (the entries on wikipedia's acronyms pages didn't look too promising either). |
Ah ha! Did you mean pts and dts as mentioned in this thread? If so, assuming James returns with good news (i.e. that the GPU actually fills in those fields), it should be pretty trivial to extend picamera to support them. I'll keep an eye on the thread and see what James reports. If it's affirmative, I'll open a new enhancement ticket for it. |
Yes. Pts, dts. Sorry. I made some mods to raspivid to pull them out; as I remember it was as
|
Add a frame counter to the
PiVideoEncoder
class'_callback_write
method (inpicamera/encoders.py
) and a property to thePiCamera
class (inpicamera/camera.py
) to query the frame-counter (should probably raise a runtime error if a recording is not in progress, in which case no video encoder instance will be present to query).The text was updated successfully, but these errors were encountered: