jape41
06-24-08, 08:28 PM
I didn't find this info easily with google, so I thought I would aggregate it here.
Getting Files via supplied USB cable
The device seems to have 2 USB modes. It seems to pretend to either be a camera, or a USB mass storage device. The storage device behaviour will let you get both pictures and video off the camera, though you can use gphoto2 to get the pictures off it in "camera mode". If you have the device in "view picture mode" when you connect it to the PC, it will behave like a camera, if you have it in "view movie mode" it will act as a mass storage device. Here's the steps I use:
attach the camcorder to the it's power source
turn the function selection dial to the blue movie camera icon
connect the usb cable to the camcoder
plug the usb cable into the PC
power on the camcorder
the screen on the camcorder will prompt you for the type of usb connection; select PC/Printer
If you are lucky the device will automount for you. If not you can mount it manually
Mouting the device manually
First we need to find out what device the usb subsystem has mapped the camcorder to. Open a shell and type "dmesg". This should generate some cannon-like-usb data near the end:
scsi 12:0:0:0: Direct-Access CANON VIXIA HF100 1.00 PQ: 0 ANSI: 2
sd 12:0:0:0: [sdb] 15728640 512-byte hardware sectors (8053 MB)
sd 12:0:0:0: [sdb] Write Protect is off
sd 12:0:0:0: [sdb] Mode Sense: 03 00 00 00
sd 12:0:0:0: [sdb] Assuming drive cache: write through
sd 12:0:0:0: [sdb] 15728640 512-byte hardware sectors (8053 MB)
sd 12:0:0:0: [sdb] Write Protect is off
sd 12:0:0:0: [sdb] Mode Sense: 03 00 00 00
sd 12:0:0:0: [sdb] Assuming drive cache: write through
sdb: sdb1
sd 12:0:0:0: [sdb] Attached SCSI removable disk
sd 12:0:0:0: Attached scsi generic sg1 type 0
usb-storage: device scan complete
The important part is the "sdb1". This is the device to mount. As root:
# mkdir /camera
#mount /dev/sdb1 /camera
#cd /camera
# ls -al
total 132
drwxr-xr-x 5 root root 32768 1969-12-31 19:00 .
drwxr-xr-x 22 root root 4096 2008-06-24 20:04 ..
drwxr-xr-x 3 root root 32768 2008-03-29 04:29 dcim
drwxr-xr-x 2 root root 32768 2008-03-30 01:01 misc
drwxr-xr-x 3 root root 32768 2008-03-29 04:13 private
Still pictures can be found in: dcim/101canon
The movies can be found in: private/avchd/bdmv/stream
Playing the .mts (AVCHD) files
Mplayer supports playing these files, but you will need to build mplayer from source. Follow the instructions on getting the source from subversion on the mplayer download page:
http://www.mplayerhq.hu/design7/dload.html
You will also need the binary codecs from the same page.
mplayer needs you to supply a fps ( frames per second) value for the video files you want to play. ie:
mplayer -fps 29.97 myfile.mts
Caveats
Mplayer seems to be playing the files correctly, but I can't be sure since my Athlon64-3000 doesn't seem to be powerful enough to play the 1080i60 files I've tried.
Now that I think about it the HF10 is probably a bit different since it has flash built in, along with support for the SDHC card.
Corrections or futher tips appreciated.
regards,
jp
Getting Files via supplied USB cable
The device seems to have 2 USB modes. It seems to pretend to either be a camera, or a USB mass storage device. The storage device behaviour will let you get both pictures and video off the camera, though you can use gphoto2 to get the pictures off it in "camera mode". If you have the device in "view picture mode" when you connect it to the PC, it will behave like a camera, if you have it in "view movie mode" it will act as a mass storage device. Here's the steps I use:
attach the camcorder to the it's power source
turn the function selection dial to the blue movie camera icon
connect the usb cable to the camcoder
plug the usb cable into the PC
power on the camcorder
the screen on the camcorder will prompt you for the type of usb connection; select PC/Printer
If you are lucky the device will automount for you. If not you can mount it manually
Mouting the device manually
First we need to find out what device the usb subsystem has mapped the camcorder to. Open a shell and type "dmesg". This should generate some cannon-like-usb data near the end:
scsi 12:0:0:0: Direct-Access CANON VIXIA HF100 1.00 PQ: 0 ANSI: 2
sd 12:0:0:0: [sdb] 15728640 512-byte hardware sectors (8053 MB)
sd 12:0:0:0: [sdb] Write Protect is off
sd 12:0:0:0: [sdb] Mode Sense: 03 00 00 00
sd 12:0:0:0: [sdb] Assuming drive cache: write through
sd 12:0:0:0: [sdb] 15728640 512-byte hardware sectors (8053 MB)
sd 12:0:0:0: [sdb] Write Protect is off
sd 12:0:0:0: [sdb] Mode Sense: 03 00 00 00
sd 12:0:0:0: [sdb] Assuming drive cache: write through
sdb: sdb1
sd 12:0:0:0: [sdb] Attached SCSI removable disk
sd 12:0:0:0: Attached scsi generic sg1 type 0
usb-storage: device scan complete
The important part is the "sdb1". This is the device to mount. As root:
# mkdir /camera
#mount /dev/sdb1 /camera
#cd /camera
# ls -al
total 132
drwxr-xr-x 5 root root 32768 1969-12-31 19:00 .
drwxr-xr-x 22 root root 4096 2008-06-24 20:04 ..
drwxr-xr-x 3 root root 32768 2008-03-29 04:29 dcim
drwxr-xr-x 2 root root 32768 2008-03-30 01:01 misc
drwxr-xr-x 3 root root 32768 2008-03-29 04:13 private
Still pictures can be found in: dcim/101canon
The movies can be found in: private/avchd/bdmv/stream
Playing the .mts (AVCHD) files
Mplayer supports playing these files, but you will need to build mplayer from source. Follow the instructions on getting the source from subversion on the mplayer download page:
http://www.mplayerhq.hu/design7/dload.html
You will also need the binary codecs from the same page.
mplayer needs you to supply a fps ( frames per second) value for the video files you want to play. ie:
mplayer -fps 29.97 myfile.mts
Caveats
Mplayer seems to be playing the files correctly, but I can't be sure since my Athlon64-3000 doesn't seem to be powerful enough to play the 1080i60 files I've tried.
Now that I think about it the HF10 is probably a bit different since it has flash built in, along with support for the SDHC card.
Corrections or futher tips appreciated.
regards,
jp