gphoto / gphoto2

The gphoto2 commandline tool for accessing and controlling digital cameras.
GNU General Public License v2.0
718 stars 116 forks source link

EOS7D No sound on video streaming #627

Open mercifulboss opened 8 months ago

mercifulboss commented 8 months ago

Describe the bug

I am trying to use the Canon EOS7D for video streaming to youtube. However, it doesn't seem to use my camera microphone but rather uses my shitty laptop microphone

Name the camera Canon EOS 7D usb:001,005

libgphoto2 and gphoto2 version output of: gphoto2 --version gphoto2 2.5.28 libgphoto2 2.5.31 libgphoto2_port 0.12.2

Archlinux To Reproduce gphoto2 --stdout autofocusdrive=1 --capture-movie --capture-sound | ffmpeg -i - -vcodec rawvideo -pix_fmt yuv420p -threads 0 -f v4l2 /dev/video4

The command

gphoto2 --capture-sound with the camera plugged in and turned on gives the output:

ERROR: Could not capture image ERROR: Could not capture *** Error (-6: 'Unsupported operation') ***

If its a camera misbehavior, attach debug output using --debug --debug-logfile=debug.log (if considered useful).

gphoto2 is almost feature complete but it seems only this last thing remains. Since its an old camera it doesn't have wifi I can't use android apps to detect the sound. Please help!

msmeissn commented 8 months ago

the sound feed cannot be captured separately. only way would be to capture the full movie stream and extract the sound from that.

(with this method: Newer Canon EOS DSLRs (around 7D and later) : Switch the camera to movie record mode on the camera. Then run gphoto2 --set-config viewfinder=1 --set-config movierecordtarget=Card --wait-event=10s --set-config movierecordtarget=None --wait-event-and-download=2s (before 2.5.6, replace viewfinder by eosviewfinder). If this does not work, check and switch the capturetarget to SD Card (gphoto2 --set-config capturetarget=1) )