我在从 GoPro 检索视频时遇到问题。我能够安装 GoPro 并看到“Get_started_with_GoPro.URL”文件,但没有视频或图像文件。同样,我有
$ gphoto2 -L
There is no file in folder '/'.
There is 1 file in folder '/store_00010001'.
#1 Get_started_with_GoPro.URL r- 1 KB text/html
There is no file in folder '/store_00010001/DCIM'.
There is no file in folder '/store_00010001/DCIM_00000001'.
Run Code Online (Sandbox Code Playgroud)
下面是大量的调试输出,可能有助于深入研究问题。
就 gvfs-mount 而言,我有
$ gvfs-mount -li
Volume(0): GoPro HERO
Type: GProxyVolume (GProxyVolumeMonitorGPhoto2)
ids:
unix-device: '/dev/bus/usb/001/006'
activation_root=gphoto2://[usb:001,006]/
themed icons: [camera-photo]
symbolic themed icons: [camera-photo-symbolic] [camera-symbolic] [camera-photo] [camera]
can_mount=1
can_eject=0
should_automount=1
Run Code Online (Sandbox Code Playgroud)
在设备中的插件之后运行 dmesg 给了我
[ 1191.640449] usb 1-1: USB disconnect, device number 6
[ 1195.017487] usb 1-1: new high-speed USB device number 7 using xhci_hcd
[ 1195.203112] usb 1-1: New USB device found, idVendor=2672, idProduct=000c
[ 1195.203117] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 1195.203119] usb 1-1: Product: GoPro HERO
[ 1195.203121] usb 1-1: Manufacturer: GoPro
[ 1195.203122] usb 1-1: SerialNumber: C3111025740636
Run Code Online (Sandbox Code Playgroud)
和 lsusb -v 在设备上
Bus 001 Device 007: ID 2672:000c
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x2672
idProduct 0x000c
bcdDevice 0.00
iManufacturer 1 GoPro
iProduct 2 GoPro HERO
iSerial 3 C3111025740636
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 39
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xc0
Self Powered
MaxPower 4mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 3
bInterfaceClass 6 Imaging
bInterfaceSubClass 1 Still Image Capture
bInterfaceProtocol 1 Picture Transfer Protocol (PIMA 15470)
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x01 EP 1 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 16
Device Qualifier (for other device speed):
bLength 10
bDescriptorType 6
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
bNumConfigurations 1
Device Status: 0x0001
Self Powered
Run Code Online (Sandbox Code Playgroud)
我在 UbuntuGnome Xenial 和 GoPro Session Hero 4 下也遇到了同样的问题。
问题来自 libgphoto2 中的错误。该库需要更新到 2.5.10 版才能解决问题并恢复对 GoPro 的完全访问权限。
我已经在本文中解释了所需的步骤http://bernaerts.dyndns.org/linux/74-ubuntu/347-ubuntu-xenial-gopro-usb-access-bug
干杯。
小智 5
这在 Ubuntu 16.04 (Xenial) 中对我有用:
安装它们
sudo dpkg -i libgphoto2-port12_2.5.10-3_amd64.deb libgphoto2-port12_2.5.10-3_i386.deb libgphoto2-6_2.5.10-3_i386.deb libgphoto2-6_2.5.10-3_amd64.deb
您现在可以使用 Shotwell 导入视频。
下面的代码有点hacky,但是有效:
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "hashicorp/precise64"
config.vm.provider "virtualbox" do |vb|
vb.memory = "1024"
vb.customize ["modifyvm", :id, "--usb", "on"]
vb.customize ["modifyvm", :id, "--usbehci", "on"]
vb.customize ["usbfilter", "add", "0",
"--target", :id,
"--name", "gopro",
"--manufacturer", "GoPro",
"--product", "GoPro Hero"]
config.vm.provision "shell", :inline => "sudo apt-get update; sudo apt-get -y install gphoto2"
end
end
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
17480 次 |
最近记录: |