Search code examples
video-captureedsdk

How to start/stop video recording on Canon camera via SDK?


I have a Canon 7D digital camera and I'd like to have an ability to control video recording from PC. I've downloaded Canon SDK 2.8, read all the document it contains but still cant figure out how to start or stop video recording on the camera.

Is there any possibility to control video recording via Canon SDK?

Thanks.


Solution

  • the latest canon camera sdk document contains an answer:

    6.4.3 Begin/End movie shooting You can begin/end movie shooting with the following operations.

    EdsUInt32 record_start = 4; // Begin movie shooting 
    err = EdsSetPropertyData(cameraRef, kEdsPropID_Record, 0, sizeof(record_start), &record_start); 
    EdsUInt32 record_stop = 0; // End movie shooting 
    err = EdsSetPropertyData(cameraRef, kEdsPropID_Record, 0, sizeof(record_stop), &record_