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

爷,独闯天下 提交于 2019-12-21 05:21:31

问题


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.


回答1:


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_



回答2:


Take a look at gphoto i'm not sure ( and it's for unix like systems )

http://www.gphoto.org/doc/remote/

And only hack around which i know works is using usb-ir transmitter which send the signal used by a Canon Remote , u can check signals ( start , stop ) by usb-ir transmitters , receiving signal from Canon Remote then , send it whenever u want with-in your program

Edit

Seems someone else figure it out first

Need to record video with a DSLR using an SDK

Edit 2

Breezesys found a solution it's seems there is an undocumented command , but Chris breeze won't give the info up as u can see here

http://www.breezesys.com/DSLRRemotePro/help/index.html?video_capture.htm

some hex or reverse engineer guy should look into it :/

Edit 3

As long as out here people saying :

it's undocumented look into functions for yourself

Here is list Of Commands and Functions , also u can extract them for yout self with dll export viewer ,

DPPLibCom

DPPDLL

EDSDK

EdsImage

MLib

Ucs32P

Also out here some n@sty tools do n@sty things with dlls i hope u know those , cause naming them here is illegal




回答3:


Unfortunately, I don't think it is feasible at this moment (by looking at the given API). Although I do believe that Canon has the API, but is not releasing it for one reason or another.

On a side note, I have seen cases where people grab live view frames and make those a video.



来源:https://stackoverflow.com/questions/4037929/how-to-start-stop-video-recording-on-canon-camera-via-sdk

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!