Can I use an external camera with Qt Multimedia?



  • I have a Canon EOS Rebel Xsi camera that I can connect to my computer via a USB cable. Other software, such as iStopMotion, allows me to use it like a webcam with a live preview.

    Is there any way I can do the same and access it via Qt Multimedia? I've tried it and it doesn't show up in the list of available input sources in QVideoDeviceSelectorControl.


  • Moderators

    Hi, and welcome to the Qt Dev Net!

    I don't know how iStopMotion does it, but Qt talks to cameras through your operating system. If you can get your OS to present your Canon as an webcam to all software (e.g. Skype, or Google Chat) -- not just iStopMotion -- then you should be able to access it through Qt.

    However, if other software can't see the Canon, that means iStopMotion is using specialized Canon drivers to talk to the camera directly. It doesn't tell your OS that there's a camera attached, thus your OS can't tell Qt about that camera either.


  • Lifetime Qt Champion

    Hi,

    To add to JKSH and IIRC, Canon EOS line (maybe not all) uses "PTP":http://en.wikipedia.org/wiki/Picture_Transfer_Protocol to talk with their camera, and AFAIK, Qt Multimedia doesn't have a backend for that yet (patches welcome :))



  • Thanks guys for your answers. It is nice knowing why my camera doesn't work.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.