danielpaulus / quicktime_video_hack

Record iOS device audio and video
MIT License
522 stars 110 forks source link

segfault in mapToIosDevice & I/O error in libusb on Debian 10 #37

Open ariankordi opened 4 years ago

ariankordi commented 4 years ago
a@debian:~$ ./quicktime_video_hack devices -v
{"level":"info","msg":"Set Debug mode","time":"2019-12-08T16:08:53-05:00"}
{"level":"debug","msg":"Opened usbcontext:\u0026{0x200dc90 0xc0000f40c0 {}}","time":"2019-12-08T16:08:53-05:00"}
{"level":"debug","msg":"Found MuxConfig 3 for Device 1.2: 05ac:12a8 (available configs: [1 2 3 4])","time":"2019-12-08T16:08:53-05:00"}
{"level":"debug","msg":"Found MuxConfig 4 for Device 1.2: 05ac:12a8 (available configs: [1 2 3 4])","time":"2019-12-08T16:08:53-05:00"}
{"level":"debug","msg":"Getting serial for: vid=05ac,pid=12a8,bus=1,addr=2","time":"2019-12-08T16:08:53-05:00"}
{"level":"debug","msg":"Got serialac89b5616ea3b42d65bfb28c8fd8539d88277d51","time":"2019-12-08T16:08:53-05:00"}
{"level":"debug","msg":"Found MuxConfig 3 for Device 1.2: 05ac:12a8 (available configs: [1 2 3 4])","time":"2019-12-08T16:08:53-05:00"}
{"level":"debug","msg":"Found MuxConfig 4 for Device 1.2: 05ac:12a8 (available configs: [1 2 3 4])","time":"2019-12-08T16:08:53-05:00"}
{"level":"debug","msg":"Found (1) iOS Devices with UsbMux Endpoint","time":"2019-12-08T16:08:53-05:00"}
{"devices":[{"deviceName":"iPhone","screen_mirroring_enabled":false,"udid":"ac89b5616ea3b42d65bfb28c8fd8539d88277d51","usb_device_info":"vid=05ac,pid=12a8,bus=1,addr=2"}]}
a@debian:~$ ./quicktime_video_hack activate --udid=ac89b5616ea3b42d65bfb28c8fd8539d88277d51 -v
{"level":"info","msg":"Set Debug mode","time":"2019-12-08T16:09:07-05:00"}
{"level":"debug","msg":"requested udid:'ac89b5616ea3b42d65bfb28c8fd8539d88277d51'","time":"2019-12-08T16:09:07-05:00"}
{"level":"debug","msg":"Opened usbcontext:\u0026{0x9cf200 0xc000072180 {}}","time":"2019-12-08T16:09:07-05:00"}
{"level":"debug","msg":"Found MuxConfig 3 for Device 1.2: 05ac:12a8 (available configs: [1 2 3 4])","time":"2019-12-08T16:09:07-05:00"}
{"level":"debug","msg":"Found MuxConfig 4 for Device 1.2: 05ac:12a8 (available configs: [1 2 3 4])","time":"2019-12-08T16:09:07-05:00"}
{"level":"debug","msg":"Getting serial for: vid=05ac,pid=12a8,bus=1,addr=2","time":"2019-12-08T16:09:07-05:00"}
{"level":"debug","msg":"Got serialac89b5616ea3b42d65bfb28c8fd8539d88277d51","time":"2019-12-08T16:09:07-05:00"}
{"level":"debug","msg":"Found MuxConfig 3 for Device 1.2: 05ac:12a8 (available configs: [1 2 3 4])","time":"2019-12-08T16:09:07-05:00"}
{"level":"debug","msg":"Found MuxConfig 4 for Device 1.2: 05ac:12a8 (available configs: [1 2 3 4])","time":"2019-12-08T16:09:07-05:00"}
{"level":"debug","msg":"Enabling device: {ac89b5616ea3b42d65bfb28c8fd8539d88277d51 iPhone 4 -1 05ac 12a8 vid=05ac,pid=12a8,bus=1,addr=2}","time":"2019-12-08T16:09:07-05:00"}
{"level":"debug","msg":"Found MuxConfig 3 for Device 1.2: 05ac:12a8 (available configs: [1 2 3 4])","time":"2019-12-08T16:09:07-05:00"}
{"level":"debug","msg":"Found MuxConfig 4 for Device 1.2: 05ac:12a8 (available configs: [1 2 3 4])","time":"2019-12-08T16:09:07-05:00"}
{"level":"debug","msg":"Enabling QT config RC:0","time":"2019-12-08T16:09:07-05:00"}
{"level":"debug","msg":"Checking for active QT config for ac89b5616ea3b42d65bfb28c8fd8539d88277d51","time":"2019-12-08T16:09:07-05:00"}
{"level":"debug","msg":"Reopening Context","time":"2019-12-08T16:09:07-05:00"}
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0x529b46]

goroutine 1 [running]:
github.com/google/gousb.(*Device).String(...)
    /home/a/go/src/github.com/google/gousb/device.go:101
github.com/danielpaulus/quicktime_video_hack/screencapture.mapToIosDevice(0xc0000e5bf0, 0x1, 0x1, 0x0, 0x0, 0xc000124060, 0xc00011c2a0, 0x9f0650)
    /home/a/go/src/github.com/danielpaulus/quicktime_video_hack/screencapture/discovery.go:105 +0x96
github.com/danielpaulus/quicktime_video_hack/screencapture.(*IosDevice).ReOpen(0xc0000e5d28, 0xc00011c2a0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
    /home/a/go/src/github.com/danielpaulus/quicktime_video_hack/screencapture/discovery.go:28 +0xb5
github.com/danielpaulus/quicktime_video_hack/screencapture.EnableQTConfig(0xc00001a210, 0x28, 0xc000014cb6, 0x6, 0x4, 0xffffffffffffffff, 0x12a805ac, 0xc000017ba0, 0x1e, 0x0, ...)
    /home/a/go/src/github.com/danielpaulus/quicktime_video_hack/screencapture/activator.go:40 +0x36f
main.activate(0xc00001a0c7, 0x28)
    /home/a/go/src/github.com/danielpaulus/quicktime_video_hack/main.go:132 +0x266
main.main()
    /home/a/go/src/github.com/danielpaulus/quicktime_video_hack/main.go:70 +0x519
a@debian:~$ ./quicktime_video_hack activate --udid=ac89b5616ea3b42d65bfb28c8fd8539d88277d51 -v
{"level":"info","msg":"Set Debug mode","time":"2019-12-08T16:09:11-05:00"}
{"level":"debug","msg":"requested udid:'ac89b5616ea3b42d65bfb28c8fd8539d88277d51'","time":"2019-12-08T16:09:11-05:00"}
{"level":"debug","msg":"Opened usbcontext:\u0026{0x1dd8200 0xc000072180 {}}","time":"2019-12-08T16:09:11-05:00"}
{"level":"debug","msg":"Found MuxConfig 3 for Device 1.12: 05ac:12a8 (available configs: [1 2 3 4 5])","time":"2019-12-08T16:09:11-05:00"}
{"level":"debug","msg":"Found MuxConfig 4 for Device 1.12: 05ac:12a8 (available configs: [1 2 3 4 5])","time":"2019-12-08T16:09:11-05:00"}
{"level":"debug","msg":"Found QTConfig 5 for Device 1.12: 05ac:12a8 (available configs: [1 2 3 4 5])","time":"2019-12-08T16:09:11-05:00"}
{"level":"debug","msg":"Getting serial for: vid=05ac,pid=12a8,bus=1,addr=12","time":"2019-12-08T16:09:11-05:00"}
{"level":"debug","msg":"Got serialac89b5616ea3b42d65bfb28c8fd8539d88277d51","time":"2019-12-08T16:09:11-05:00"}
{"level":"debug","msg":"Found MuxConfig 3 for Device 1.12: 05ac:12a8 (available configs: [1 2 3 4 5])","time":"2019-12-08T16:09:11-05:00"}
{"level":"debug","msg":"Found MuxConfig 4 for Device 1.12: 05ac:12a8 (available configs: [1 2 3 4 5])","time":"2019-12-08T16:09:11-05:00"}
{"level":"debug","msg":"Found QTConfig 5 for Device 1.12: 05ac:12a8 (available configs: [1 2 3 4 5])","time":"2019-12-08T16:09:11-05:00"}
{"level":"debug","msg":"Enabling device: {ac89b5616ea3b42d65bfb28c8fd8539d88277d51 iPhone 4 5 05ac 12a8 vid=05ac,pid=12a8,bus=1,addr=12}","time":"2019-12-08T16:09:11-05:00"}
{"level":"debug","msg":"Found MuxConfig 3 for Device 1.12: 05ac:12a8 (available configs: [1 2 3 4 5])","time":"2019-12-08T16:09:11-05:00"}
{"level":"debug","msg":"Found MuxConfig 4 for Device 1.12: 05ac:12a8 (available configs: [1 2 3 4 5])","time":"2019-12-08T16:09:11-05:00"}
{"level":"debug","msg":"Found QTConfig 5 for Device 1.12: 05ac:12a8 (available configs: [1 2 3 4 5])","time":"2019-12-08T16:09:11-05:00"}
{"level":"debug","msg":"Skipping ac89b5616ea3b42d65bfb28c8fd8539d88277d51 because it already has an active QT config","time":"2019-12-08T16:09:11-05:00"}
{"device_activated":{"deviceName":"iPhone","screen_mirroring_enabled":true,"udid":"ac89b5616ea3b42d65bfb28c8fd8539d88277d51","usb_device_info":"vid=05ac,pid=12a8,bus=1,addr=12"}}
a@debian:~$ ./quicktime_video_hack record /dev/shm/video /dev/shm/audio --udid=ac89b5616ea3b42d65bfb28c8fd8539d88277d51 -v
{"level":"info","msg":"Set Debug mode","time":"2019-12-08T16:09:36-05:00"}
{"level":"debug","msg":"requested udid:'ac89b5616ea3b42d65bfb28c8fd8539d88277d51'","time":"2019-12-08T16:09:36-05:00"}
{"level":"debug","msg":"Writing video output to:'/dev/shm/video' and audio to: /dev/shm/audio","time":"2019-12-08T16:09:36-05:00"}
{"level":"debug","msg":"Opened usbcontext:\u0026{0x1546cd0 0xc000072180 {}}","time":"2019-12-08T16:09:36-05:00"}
{"level":"debug","msg":"Found MuxConfig 3 for Device 1.12: 05ac:12a8 (available configs: [1 2 3 4 5])","time":"2019-12-08T16:09:36-05:00"}
{"level":"debug","msg":"Found MuxConfig 4 for Device 1.12: 05ac:12a8 (available configs: [1 2 3 4 5])","time":"2019-12-08T16:09:36-05:00"}
{"level":"debug","msg":"Found QTConfig 5 for Device 1.12: 05ac:12a8 (available configs: [1 2 3 4 5])","time":"2019-12-08T16:09:36-05:00"}
{"level":"debug","msg":"Getting serial for: vid=05ac,pid=12a8,bus=1,addr=12","time":"2019-12-08T16:09:36-05:00"}
{"level":"debug","msg":"Got serialac89b5616ea3b42d65bfb28c8fd8539d88277d51","time":"2019-12-08T16:09:36-05:00"}
{"level":"debug","msg":"Found MuxConfig 3 for Device 1.12: 05ac:12a8 (available configs: [1 2 3 4 5])","time":"2019-12-08T16:09:36-05:00"}
{"level":"debug","msg":"Found MuxConfig 4 for Device 1.12: 05ac:12a8 (available configs: [1 2 3 4 5])","time":"2019-12-08T16:09:36-05:00"}
{"level":"debug","msg":"Found QTConfig 5 for Device 1.12: 05ac:12a8 (available configs: [1 2 3 4 5])","time":"2019-12-08T16:09:36-05:00"}
{"level":"debug","msg":"Found MuxConfig 3 for Device 1.12: 05ac:12a8 (available configs: [1 2 3 4 5])","time":"2019-12-08T16:09:36-05:00"}
{"level":"debug","msg":"Found MuxConfig 4 for Device 1.12: 05ac:12a8 (available configs: [1 2 3 4 5])","time":"2019-12-08T16:09:36-05:00"}
{"level":"debug","msg":"Found QTConfig 5 for Device 1.12: 05ac:12a8 (available configs: [1 2 3 4 5])","time":"2019-12-08T16:09:36-05:00"}
{"level":"debug","msg":"Skipping ac89b5616ea3b42d65bfb28c8fd8539d88277d51 because it already has an active QT config","time":"2019-12-08T16:09:36-05:00"}
{"level":"debug","msg":"Opened usbcontext:\u0026{0x7f64e8000c60 0xc000158060 {}}","time":"2019-12-08T16:09:36-05:00"}
{"level":"debug","msg":"Config is active: 1","time":"2019-12-08T16:09:36-05:00"}
{"level":"debug","msg":"Enabling QT config RC:0","time":"2019-12-08T16:09:36-05:00"}
{"level":"debug","msg":"QT Config is active: vid=05ac,pid=12a8,bus=1,addr=12,config=1","time":"2019-12-08T16:09:36-05:00"}
{"level":"debug","msg":"failed controllibusb: i/o error [code -1]","time":"2019-12-08T16:09:36-05:00"}
{"level":"debug","msg":"Clear Feature RC: -1","time":"2019-12-08T16:09:36-05:00"}
{"level":"debug","msg":"failed controllibusb: i/o error [code -1]","time":"2019-12-08T16:09:36-05:00"}
{"level":"debug","msg":"Clear Feature RC: -1","time":"2019-12-08T16:09:36-05:00"}
{"level":"debug","msg":"could not get Quicktime Interface","time":"2019-12-08T16:09:36-05:00"}
{"error_message":"failed connecting to usb","original_error":"descriptor of interface (-1, 0) in vid=05ac,pid=12a8,bus=1,addr=12,config=1: interface -1 not found, available interfaces 0..0"}
a@debian:~$ 

please tell me what's happening I don't know.......

In this case, I'm trying to either record or display my iPhone's screen. A few more things:

* edit: didn't complete my sentence for some reason * edit edit: i didn't want that to appear as a bullet point

danielpaulus commented 4 years ago

I’ll have a look tomorrow. Can you tell me what Libusb version you have installed?

ariankordi commented 4 years ago

1.0.23

danielpaulus commented 4 years ago

Hey, quick update, I created a Dockerfile for debian here: https://github.com/danielpaulus/quicktime_video_hack/tree/addDebian10Dockerfile and I can reproduce your issue. I'll try and find a fix for it now :-D

ariankordi commented 4 years ago

Oh, sweet, thanks a ton! Sorry if I may have come off as rude or overly direct or anything, I've never done an issue before. By the way, if the libusb version doesn't add up to this being Debian 10, it's because it looks like I originally installed Debian stable and then added the repo for Debian unstable and now I'm running something weird, but since you can reproduce the issue, it shouldn't matter that much anymore.

I'm really looking forward to using it, I've actually been dreaming of something like this for a long time, for some public reverse engineering effort of this iOSScreenCaptureAssistant that's been on Mac for 5 years now. I'm excited, especially since this is in Go which is one of my favorite languages ever. This project opens possibilities for, say, an FFmpeg indev making it easy to get iPhone video potentially into programs like OBS, or perhaps this functionality will be built into libimobiledevice somehow making this standard for a lot of Linux distributions. I don't know. You're kind of my savior now for this, I hope you know how much I appreciate this by now. Again, I'll be excited to get it running, so thanks for all of your effort on this.

danielpaulus commented 4 years ago

Hm I tried again in a docker container on ubuntu and it worked :-/ Ill try a VM next.

Oh and btw, the tool has full gstreamer support now so you can save mp4 ffiles in whatever quality you want or stream it with RTP etc.

I have not made a release yet, but probably will do that soonish. :-D

Thanks for the kind words!

liaoqingmo commented 4 years ago

Hm I tried again in a docker container on ubuntu and it worked :-/ Ill try a VM next.

Oh and btw, the tool has full gstreamer support now so you can save mp4 ffiles in whatever quality you want or stream it with RTP etc.

I have not made a release yet, but probably will do that soonish. :-D

Thanks for the kind words!

hi,thanks for your good job!I met the same issue,can you make a release to solve it? Look forward to your reply.

danielpaulus commented 4 years ago

You're also on Debian 10 and it does not work? I am trying to nail down if it is a general debian problem still. Might have to install debian on an old notebook and see if I can reproduce it there.

liaoqingmo commented 4 years ago

You're also on Debian 10 and it does not work? I am trying to nail down if it is a general debian problem still. Might have to install debian on an old notebook and see if I can reproduce it there.

no.I use ubuntu 16.04,but the issue is same with that. log: linux version: root@ubuntu:/home/liaoqingmo/licheepi/quicktime_video_hack# uname -a Linux ubuntu 4.15.0-88-generic #88~16.04.1-Ubuntu SMP Wed Feb 12 04:19:15 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux activate: root@ubuntu:/home/liaoqingmo/licheepi/quicktime_video_hack# go run main.go activate --udid=074755c6c690681ff2756bd3dcf7fb1d2c7338ee -v {"level":"info","msg":"Set Debug mode","time":"2020-04-28T00:11:49+08:00"} {"level":"debug","msg":"requested udid:'074755c6c690681ff2756bd3dcf7fb1d2c7338ee'","time":"2020-04-28T00:11:49+08:00"} {"level":"debug","msg":"Opened usbcontext:\u0026{0x1189510 0xc000068180 {}}","time":"2020-04-28T00:11:49+08:00"} {"level":"debug","msg":"Found MuxConfig 3 for Device 3.36: 05ac:12ab (available configs: [1 2 3 4 5])","time":"2020-04-28T00:11:49+08:00"} {"level":"debug","msg":"Found MuxConfig 4 for Device 3.36: 05ac:12ab (available configs: [1 2 3 4 5])","time":"2020-04-28T00:11:49+08:00"} {"level":"debug","msg":"Found QTConfig 5 for Device 3.36: 05ac:12ab (available configs: [1 2 3 4 5])","time":"2020-04-28T00:11:49+08:00"} {"level":"debug","msg":"Getting serial for: vid=05ac,pid=12ab,bus=3,addr=36","time":"2020-04-28T00:11:49+08:00"} {"level":"debug","msg":"Got serial074755c6c690681ff2756bd3dcf7fb1d2c7338ee","time":"2020-04-28T00:11:49+08:00"} {"level":"debug","msg":"Found MuxConfig 3 for Device 3.36: 05ac:12ab (available configs: [1 2 3 4 5])","time":"2020-04-28T00:11:49+08:00"} {"level":"debug","msg":"Found MuxConfig 4 for Device 3.36: 05ac:12ab (available configs: [1 2 3 4 5])","time":"2020-04-28T00:11:49+08:00"} {"level":"debug","msg":"Found QTConfig 5 for Device 3.36: 05ac:12ab (available configs: [1 2 3 4 5])","time":"2020-04-28T00:11:49+08:00"} {"level":"debug","msg":"Enabling device: {074755c6c690681ff2756bd3dcf7fb1d2c7338ee iPad 4 5 05ac 12ab vid=05ac,pid=12ab,bus=3,addr=36}","time":"2020-04-28T00:11:49+08:00"} {"level":"debug","msg":"Found MuxConfig 3 for Device 3.36: 05ac:12ab (available configs: [1 2 3 4 5])","time":"2020-04-28T00:11:49+08:00"} {"level":"debug","msg":"Found MuxConfig 4 for Device 3.36: 05ac:12ab (available configs: [1 2 3 4 5])","time":"2020-04-28T00:11:49+08:00"} {"level":"debug","msg":"Found QTConfig 5 for Device 3.36: 05ac:12ab (available configs: [1 2 3 4 5])","time":"2020-04-28T00:11:49+08:00"} {"level":"debug","msg":"Skipping 074755c6c690681ff2756bd3dcf7fb1d2c7338ee because it already has an active QT config","time":"2020-04-28T00:11:49+08:00"} {"device_activated":{"deviceName":"iPad","screen_mirroring_enabled":true,"udid":"074755c6c690681ff2756bd3dcf7fb1d2c7338ee","usb_device_info":"vid=05ac,pid=12ab,bus=3,addr=36"}} record: root@ubuntu:/home/liaoqingmo/licheepi/quicktime_video_hack# go run main.go record ./video ./wav --udid=074755c6c690681ff2756bd3dcf7fb1d2c7338ee -v {"level":"info","msg":"Set Debug mode","time":"2020-04-28T00:13:49+08:00"} {"level":"debug","msg":"requested udid:'074755c6c690681ff2756bd3dcf7fb1d2c7338ee'","time":"2020-04-28T00:13:49+08:00"} {"level":"debug","msg":"Writing video output to:'./video' and audio to: ./wav","time":"2020-04-28T00:13:49+08:00"} {"level":"debug","msg":"Opened usbcontext:\u0026{0x1b65550 0xc0000e00c0 {}}","time":"2020-04-28T00:13:49+08:00"} {"level":"debug","msg":"Found MuxConfig 3 for Device 3.36: 05ac:12ab (available configs: [1 2 3 4 5])","time":"2020-04-28T00:13:49+08:00"} {"level":"debug","msg":"Found MuxConfig 4 for Device 3.36: 05ac:12ab (available configs: [1 2 3 4 5])","time":"2020-04-28T00:13:49+08:00"} {"level":"debug","msg":"Found QTConfig 5 for Device 3.36: 05ac:12ab (available configs: [1 2 3 4 5])","time":"2020-04-28T00:13:49+08:00"} {"level":"debug","msg":"Getting serial for: vid=05ac,pid=12ab,bus=3,addr=36","time":"2020-04-28T00:13:49+08:00"} {"level":"debug","msg":"Got serial074755c6c690681ff2756bd3dcf7fb1d2c7338ee","time":"2020-04-28T00:13:49+08:00"} {"level":"debug","msg":"Found MuxConfig 3 for Device 3.36: 05ac:12ab (available configs: [1 2 3 4 5])","time":"2020-04-28T00:13:49+08:00"} {"level":"debug","msg":"Found MuxConfig 4 for Device 3.36: 05ac:12ab (available configs: [1 2 3 4 5])","time":"2020-04-28T00:13:49+08:00"} {"level":"debug","msg":"Found QTConfig 5 for Device 3.36: 05ac:12ab (available configs: [1 2 3 4 5])","time":"2020-04-28T00:13:49+08:00"} {"level":"debug","msg":"Found MuxConfig 3 for Device 3.36: 05ac:12ab (available configs: [1 2 3 4 5])","time":"2020-04-28T00:13:49+08:00"} {"level":"debug","msg":"Found MuxConfig 4 for Device 3.36: 05ac:12ab (available configs: [1 2 3 4 5])","time":"2020-04-28T00:13:49+08:00"} {"level":"debug","msg":"Found QTConfig 5 for Device 3.36: 05ac:12ab (available configs: [1 2 3 4 5])","time":"2020-04-28T00:13:49+08:00"} {"level":"debug","msg":"Skipping 074755c6c690681ff2756bd3dcf7fb1d2c7338ee because it already has an active QT config","time":"2020-04-28T00:13:49+08:00"} {"level":"debug","msg":"Opened usbcontext:\u0026{0x7f5628000a20 0xc000290060 {}}","time":"2020-04-28T00:13:49+08:00"} {"level":"debug","msg":"Config is active: 4","time":"2020-04-28T00:13:49+08:00"} {"level":"debug","msg":"Enabling QT config RC:0","time":"2020-04-28T00:13:49+08:00"} {"level":"debug","msg":"QT Config is active: vid=05ac,pid=12ab,bus=3,addr=36,config=4","time":"2020-04-28T00:13:49+08:00"} {"level":"debug","msg":"failed controllibusb: i/o error [code -1]","time":"2020-04-28T00:13:49+08:00"} {"level":"debug","msg":"Clear Feature RC: -1","time":"2020-04-28T00:13:49+08:00"} {"level":"debug","msg":"failed controllibusb: i/o error [code -1]","time":"2020-04-28T00:13:49+08:00"} {"level":"debug","msg":"Clear Feature RC: -1","time":"2020-04-28T00:13:49+08:00"} {"level":"debug","msg":"could not get Quicktime Interface","time":"2020-04-28T00:13:49+08:00"} {"error_message":"failed connecting to usb","original_error":"descriptor of interface (-1, 0) in vid=05ac,pid=12ab,bus=3,addr=36,config=4: interface -1 not found, available interfaces 0..2"} gstreamer root@ubuntu:/home/liaoqingmo/licheepi/quicktime_video_hack# go run main.go gstreamer --pipeline "mp4mux name=mux ! filesink location=video.mp4 \ queue name=audio_target ! wavparse ignore-length=true ! audioconvert ! avenc_aac ! aacparse ! mux. \ queue name=video_target ! h264parse ! avdec_h264 ! videoconvert ! x264enc tune=zerolatency ! mux." {"level":"info","msg":"Starting Gstreamer..","time":"2020-04-28T00:14:22+08:00"} {"level":"info","msg":"Gstreamer is running!","time":"2020-04-28T00:14:23+08:00"} {"level":"info","msg":"Stopping Gstreamer..","time":"2020-04-28T00:14:23+08:00"} {"level":"warning","msg":"Error received, video files might be broken","time":"2020-04-28T00:14:23+08:00"} {"error_message":"failed connecting to usb","original_error":"descriptor of interface (-1, 0) in vid=05ac,pid=12ab,bus=3,addr=36,config=4: interface -1 not found, available interfaces 0..2"} root@ubuntu:/home/liaoqingmo/licheepi/quicktime_video_hack# Do you have any ideas?

ariankordi commented 4 years ago

Hi, today I wanted to try seeing if this whole thing would work running on Ubuntu in QEMU, since I've never even seen it working before, however I noticed that it wouldn't work, no matter what I tried. (different orders of commands, building it or using the latest release build). The behavior was seemingly the same on my host and this new VM. I always thought it had to do with the OS and version, so I tried the cloud images for 18.04 and 20.04 with no luck.

Although, to connect the iPhone to the VM, I passed through my PCIe XHCI device in order to connect all of my USB devices on my laptop (only the keyboard would work at this point), so now I'm wondering if this had something to do with my hardware all along. (or it has to do with the -machine q35 argument I passed into qemu-system-x86_64?????) So, that said, I'll post my hardware configuration here. Unfortunately I don't actually have any other machines to test with at the moment. Output of lspci -nn:

00:00.0 Host bridge [0600]: Intel Corporation Haswell-ULT DRAM Controller [8086:0a04] (rev 0b)
00:02.0 VGA compatible controller [0300]: Intel Corporation Haswell-ULT Integrated Graphics Controller [8086:0a16] (rev 0b)
00:03.0 Audio device [0403]: Intel Corporation Haswell-ULT HD Audio Controller [8086:0a0c] (rev 0b)
00:14.0 USB controller [0c03]: Intel Corporation 8 Series USB xHCI HC [8086:9c31] (rev 04)
00:16.0 Communication controller [0780]: Intel Corporation 8 Series HECI #0 [8086:9c3a] (rev 04)
00:16.3 Serial controller [0700]: Intel Corporation 8 Series HECI KT [8086:9c3d] (rev 04)
00:19.0 Ethernet controller [0200]: Intel Corporation Ethernet Connection I218-LM [8086:155a] (rev 04)
00:1b.0 Audio device [0403]: Intel Corporation 8 Series HD Audio Controller [8086:9c20] (rev 04)
00:1c.0 PCI bridge [0604]: Intel Corporation 8 Series PCI Express Root Port 1 [8086:9c10] (rev e4)
00:1c.1 PCI bridge [0604]: Intel Corporation 8 Series PCI Express Root Port 2 [8086:9c12] (rev e4)
00:1c.3 PCI bridge [0604]: Intel Corporation 8 Series PCI Express Root Port 4 [8086:9c16] (rev e4)
00:1d.0 USB controller [0c03]: Intel Corporation 8 Series USB EHCI #1 [8086:9c26] (rev 04)
00:1f.0 ISA bridge [0601]: Intel Corporation 8 Series LPC Controller [8086:9c43] (rev 04)
00:1f.2 SATA controller [0106]: Intel Corporation 8 Series SATA Controller 1 [AHCI mode] [8086:9c03] (rev 04)
00:1f.3 SMBus [0c05]: Intel Corporation 8 Series SMBus Controller [8086:9c22] (rev 04)
02:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5227 PCI Express Card Reader [10ec:5227] (rev 01)
03:00.0 Network controller [0280]: Intel Corporation Wireless 7260 [8086:08b1] (rev 6b)

lsusb:

Bus 003 Device 002: ID 8087:8000 Intel Corp. Integrated Rate Matching Hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 002: ID 0424:5534 Microchip Technology, Inc. (formerly SMSC) Hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 012: ID 03eb:8a06 Atmel Corp. Atmel maXTouch Digitizer
Bus 001 Device 009: ID 04ca:7034 Lite-On Technology Corp. HP HD Webcam
Bus 001 Device 007: ID 0483:91d1 STMicroelectronics Sensor Hub
Bus 001 Device 005: ID 8087:07dc Intel Corp. Bluetooth wireless interface
Bus 001 Device 013: ID 05ac:12a8 Apple, Inc. iPhone 5/5C/5S/6/SE
Bus 001 Device 002: ID 0424:2134 Microchip Technology, Inc. (formerly SMSC) Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

DMI: Hewlett-Packard HP EliteBook Revolve 810 G2/21B3, BIOS L86 Ver. 01.44 04/18/2019

I wanted to test on a Raspberry Pi as well but my Pi 3 B+ ends up constantly crashing while booting in all the Ubuntu images I tried, and none of the GPIOs work either. Guess I fried it somehow 🙃 Anyway, it might be helpful if you could share details of your hardware @liaoqingmo I don't have any ideas about how one would go resolving this anyway, since I don't have a clue of what the code does and where it fails in my specific case but I would really appreciate if this gets resolved soon. Thanks.

liaoqingmo commented 4 years ago

I tested it

Hi, today I wanted to try seeing if this whole thing would work running on Ubuntu in QEMU, since I've never even seen it working before, however I noticed that it wouldn't work, no matter what I tried. (different orders of commands, building it or using the latest release build). The behavior was seemingly the same on my host and this new VM. I always thought it had to do with the OS and version, so I tried the cloud images for 18.04 and 20.04 with no luck.

Although, to connect the iPhone to the VM, I passed through my PCIe XHCI device in order to connect all of my USB devices on my laptop (only the keyboard would work at this point), so now I'm wondering if this had something to do with my hardware all along. (or it has to do with the -machine q35 argument I passed into qemu-system-x86_64?????) So, that said, I'll post my hardware configuration here. Unfortunately I don't actually have any other machines to test with at the moment. Output of lspci -nn:

00:00.0 Host bridge [0600]: Intel Corporation Haswell-ULT DRAM Controller [8086:0a04] (rev 0b)
00:02.0 VGA compatible controller [0300]: Intel Corporation Haswell-ULT Integrated Graphics Controller [8086:0a16] (rev 0b)
00:03.0 Audio device [0403]: Intel Corporation Haswell-ULT HD Audio Controller [8086:0a0c] (rev 0b)
00:14.0 USB controller [0c03]: Intel Corporation 8 Series USB xHCI HC [8086:9c31] (rev 04)
00:16.0 Communication controller [0780]: Intel Corporation 8 Series HECI #0 [8086:9c3a] (rev 04)
00:16.3 Serial controller [0700]: Intel Corporation 8 Series HECI KT [8086:9c3d] (rev 04)
00:19.0 Ethernet controller [0200]: Intel Corporation Ethernet Connection I218-LM [8086:155a] (rev 04)
00:1b.0 Audio device [0403]: Intel Corporation 8 Series HD Audio Controller [8086:9c20] (rev 04)
00:1c.0 PCI bridge [0604]: Intel Corporation 8 Series PCI Express Root Port 1 [8086:9c10] (rev e4)
00:1c.1 PCI bridge [0604]: Intel Corporation 8 Series PCI Express Root Port 2 [8086:9c12] (rev e4)
00:1c.3 PCI bridge [0604]: Intel Corporation 8 Series PCI Express Root Port 4 [8086:9c16] (rev e4)
00:1d.0 USB controller [0c03]: Intel Corporation 8 Series USB EHCI #1 [8086:9c26] (rev 04)
00:1f.0 ISA bridge [0601]: Intel Corporation 8 Series LPC Controller [8086:9c43] (rev 04)
00:1f.2 SATA controller [0106]: Intel Corporation 8 Series SATA Controller 1 [AHCI mode] [8086:9c03] (rev 04)
00:1f.3 SMBus [0c05]: Intel Corporation 8 Series SMBus Controller [8086:9c22] (rev 04)
02:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5227 PCI Express Card Reader [10ec:5227] (rev 01)
03:00.0 Network controller [0280]: Intel Corporation Wireless 7260 [8086:08b1] (rev 6b)

lsusb:

Bus 003 Device 002: ID 8087:8000 Intel Corp. Integrated Rate Matching Hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 002: ID 0424:5534 Microchip Technology, Inc. (formerly SMSC) Hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 012: ID 03eb:8a06 Atmel Corp. Atmel maXTouch Digitizer
Bus 001 Device 009: ID 04ca:7034 Lite-On Technology Corp. HP HD Webcam
Bus 001 Device 007: ID 0483:91d1 STMicroelectronics Sensor Hub
Bus 001 Device 005: ID 8087:07dc Intel Corp. Bluetooth wireless interface
Bus 001 Device 013: ID 05ac:12a8 Apple, Inc. iPhone 5/5C/5S/6/SE
Bus 001 Device 002: ID 0424:2134 Microchip Technology, Inc. (formerly SMSC) Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

DMI: Hewlett-Packard HP EliteBook Revolve 810 G2/21B3, BIOS L86 Ver. 01.44 04/18/2019

I wanted to test on a Raspberry Pi as well but my Pi 3 B+ ends up constantly crashing while booting in all the Ubuntu images I tried, and none of the GPIOs work either. Guess I fried it somehow 🙃 Anyway, it might be helpful if you could share details of your hardware @liaoqingmo I don't have any ideas about how one would go resolving this anyway, since I don't have a clue of what the code does and where it fails in my specific case but I would really appreciate if this gets resolved soon. Thanks.

I tested it on my custom (ARM) hardware platform ,and it works. I have not use QEMU platform, and have no idea about what you meet, Sorry. But you can describe in detail what you are doing on the Raspberry PI platform, may be i can give some advice.

danielpaulus commented 4 years ago

Maybe try the new version. I updated gousb and go and fixed a weird parts of the code. MacOS X is for sure way more stable now. I will look into improving Linux support next.

ariankordi commented 3 years ago

Hi, I'm back to trying to use this again. I'm sorry to tell you that, unfortunately, it still didn't work for me on this new version. It did appear to get farther, though. I've tried this on the same system I've been using all along, my HP notebook on Debian, though I tried on another desktop on Ubuntu 20.04 and seen identical results.

I'd like to know if you've seen a similar effect, or if I'm just doing this wrong, but now, basically whenever I try to run it (as root, after killing gphoto and usbmuxd), it will get to AudioVideo-Stream has started, and then it just hangs and doesn't do anything. gstreamer doesn't do anything, and with record nothing is ever outputted to the files I specify. The device also doesn't change the time to 9:41, if it's supposed to do that. Here's my console output:

(Device is plugged in.)

a@debian:~/Desktop/quicktime_video_hack$ sudo ./quicktime_video_hack -v record a b
{"level":"info","msg":"Set Debug mode","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"Opened usbcontext:\u0026{0x1650e80 0xc000064120 {}}","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (8 alternate settings) altsettings:8 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (8 alternate settings) altsettings:8 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (8 alternate settings) altsettings:8 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (8 alternate settings) altsettings:8 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (8 alternate settings) altsettings:8 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (8 alternate settings) altsettings:8 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (8 alternate settings) altsettings:8 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (8 alternate settings) altsettings:8 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (8 alternate settings) altsettings:8 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (8 alternate settings) altsettings:8 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (8 alternate settings) altsettings:8 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (8 alternate settings) altsettings:8 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (8 alternate settings) altsettings:8 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (8 alternate settings) altsettings:8 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (8 alternate settings) altsettings:8 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (8 alternate settings) altsettings:8 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (6 alternate settings) altsettings:6 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (6 alternate settings) altsettings:6 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (6 alternate settings) altsettings:6 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (6 alternate settings) altsettings:6 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (6 alternate settings) altsettings:6 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (6 alternate settings) altsettings:6 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (6 alternate settings) altsettings:6 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (6 alternate settings) altsettings:6 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (6 alternate settings) altsettings:6 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (6 alternate settings) altsettings:6 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (6 alternate settings) altsettings:6 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (6 alternate settings) altsettings:6 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (2 alternate settings) altsettings:2 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (2 alternate settings) altsettings:2 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 2 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (2 alternate settings) altsettings:2 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (2 alternate settings) altsettings:2 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 2 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (1 alternate settings) altsettings:1 isvendor:true isub:true","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (1 alternate settings) altsettings:1 isvendor:true isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"Found MuxConfig 3 for Device 1.100: 05ac:12a8 (available configs: [1 2 3 4])","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (1 alternate settings) altsettings:1 isvendor:true isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (1 alternate settings) altsettings:1 isvendor:true isub:true","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (1 alternate settings) altsettings:1 isvendor:true isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 2 (3 alternate settings) altsettings:3 isvendor:true isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 2 (3 alternate settings) altsettings:3 isvendor:true isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 2 (3 alternate settings) altsettings:3 isvendor:true isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"Found MuxConfig 4 for Device 1.100: 05ac:12a8 (available configs: [1 2 3 4])","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (1 alternate settings) altsettings:1 isvendor:true isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 2 (3 alternate settings) altsettings:3 isvendor:true isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 2 (3 alternate settings) altsettings:3 isvendor:true isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 2 (3 alternate settings) altsettings:3 isvendor:true isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 2 (2 alternate settings) altsettings:2 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 2 (2 alternate settings) altsettings:2 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 3 (2 alternate settings) altsettings:2 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 3 (2 alternate settings) altsettings:2 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 4 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 5 (1 alternate settings) altsettings:1 isvendor:true isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 2 (2 alternate settings) altsettings:2 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 2 (2 alternate settings) altsettings:2 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 3 (2 alternate settings) altsettings:2 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 3 (2 alternate settings) altsettings:2 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 4 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 5 (1 alternate settings) altsettings:1 isvendor:true isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (2 alternate settings) altsettings:2 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (2 alternate settings) altsettings:2 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (2 alternate settings) altsettings:2 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (2 alternate settings) altsettings:2 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"Getting serial for: vid=05ac,pid=12a8,bus=1,addr=100","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"Got serialb748cb41baca378e97e36bfdfb77f64b6134629b","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (2 alternate settings) altsettings:2 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (2 alternate settings) altsettings:2 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 2 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (2 alternate settings) altsettings:2 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (2 alternate settings) altsettings:2 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 2 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (1 alternate settings) altsettings:1 isvendor:true isub:true","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (1 alternate settings) altsettings:1 isvendor:true isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"Found MuxConfig 3 for Device 1.100: 05ac:12a8 (available configs: [1 2 3 4])","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (1 alternate settings) altsettings:1 isvendor:true isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (1 alternate settings) altsettings:1 isvendor:true isub:true","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (1 alternate settings) altsettings:1 isvendor:true isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 2 (3 alternate settings) altsettings:3 isvendor:true isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 2 (3 alternate settings) altsettings:3 isvendor:true isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 2 (3 alternate settings) altsettings:3 isvendor:true isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"Found MuxConfig 4 for Device 1.100: 05ac:12a8 (available configs: [1 2 3 4])","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (1 alternate settings) altsettings:1 isvendor:true isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 2 (3 alternate settings) altsettings:3 isvendor:true isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 2 (3 alternate settings) altsettings:3 isvendor:true isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 2 (3 alternate settings) altsettings:3 isvendor:true isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"info","msg":"no usbSerial specified, using 'b748cb41baca378e97e36bfdfb77f64b6134629b'","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"Writing video output to:'a' and audio to: b","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (2 alternate settings) altsettings:2 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (2 alternate settings) altsettings:2 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 2 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (2 alternate settings) altsettings:2 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (2 alternate settings) altsettings:2 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 2 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (1 alternate settings) altsettings:1 isvendor:true isub:true","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (1 alternate settings) altsettings:1 isvendor:true isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"Found MuxConfig 3 for Device 1.100: 05ac:12a8 (available configs: [1 2 3 4])","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (1 alternate settings) altsettings:1 isvendor:true isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (1 alternate settings) altsettings:1 isvendor:true isub:true","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (1 alternate settings) altsettings:1 isvendor:true isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 2 (3 alternate settings) altsettings:3 isvendor:true isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 2 (3 alternate settings) altsettings:3 isvendor:true isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 2 (3 alternate settings) altsettings:3 isvendor:true isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"Found MuxConfig 4 for Device 1.100: 05ac:12a8 (available configs: [1 2 3 4])","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (1 alternate settings) altsettings:1 isvendor:true isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 2 (3 alternate settings) altsettings:3 isvendor:true isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 2 (3 alternate settings) altsettings:3 isvendor:true isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 2 (3 alternate settings) altsettings:3 isvendor:true isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"Enabling QT config RC:0","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"Checking for active QT config for b748cb41baca378e97e36bfdfb77f64b6134629b","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"Reopening Context","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"Getting serial for: vid=05ac,pid=12a8,bus=1,addr=101","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"Got serialb748cb41baca378e97e36bfdfb77f64b6134629b","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"iface:Interface 1 (1 alternate settings) altsettings:1 isvendor:true isub:true","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"iface:Interface 1 (1 alternate settings) altsettings:1 isvendor:true isub:false","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"iface:Interface 2 (1 alternate settings) altsettings:1 isvendor:true isub:true","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"iface:Interface 1 (1 alternate settings) altsettings:1 isvendor:true isub:false","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"iface:Interface 2 (1 alternate settings) altsettings:1 isvendor:true isub:true","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"Found QTConfig 5 for Device 1.101: 05ac:12a8 (available configs: [1 2 3 4 5])","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"iface:Interface 1 (2 alternate settings) altsettings:2 isvendor:false isub:false","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"iface:Interface 1 (2 alternate settings) altsettings:2 isvendor:false isub:false","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"iface:Interface 2 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"iface:Interface 1 (2 alternate settings) altsettings:2 isvendor:false isub:false","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"iface:Interface 1 (2 alternate settings) altsettings:2 isvendor:false isub:false","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"iface:Interface 2 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"iface:Interface 1 (1 alternate settings) altsettings:1 isvendor:true isub:true","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"iface:Interface 1 (1 alternate settings) altsettings:1 isvendor:true isub:false","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"Found MuxConfig 3 for Device 1.101: 05ac:12a8 (available configs: [1 2 3 4 5])","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"iface:Interface 1 (1 alternate settings) altsettings:1 isvendor:true isub:false","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"iface:Interface 1 (1 alternate settings) altsettings:1 isvendor:true isub:true","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"iface:Interface 1 (1 alternate settings) altsettings:1 isvendor:true isub:false","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"iface:Interface 2 (3 alternate settings) altsettings:3 isvendor:true isub:false","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"iface:Interface 2 (3 alternate settings) altsettings:3 isvendor:true isub:false","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"iface:Interface 2 (3 alternate settings) altsettings:3 isvendor:true isub:false","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"Found MuxConfig 4 for Device 1.101: 05ac:12a8 (available configs: [1 2 3 4 5])","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"iface:Interface 1 (1 alternate settings) altsettings:1 isvendor:true isub:false","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"iface:Interface 2 (3 alternate settings) altsettings:3 isvendor:true isub:false","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"iface:Interface 2 (3 alternate settings) altsettings:3 isvendor:true isub:false","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"iface:Interface 2 (3 alternate settings) altsettings:3 isvendor:true isub:false","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"QTConfig for b748cb41baca378e97e36bfdfb77f64b6134629b activated","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"Opened usbcontext:\u0026{0x7f88b0000cd0 0xc00020c2a0 {}}","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"Config is active: 0, QT config is: 5","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"QT Config is active: vid=05ac,pid=12a8,bus=1,addr=101,config=5","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"Looking for quicktime interface..","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"iface:Interface 1 (1 alternate settings) altsettings:1 isvendor:true isub:false","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"iface:Interface 2 (1 alternate settings) altsettings:1 isvendor:true isub:true","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"Found Quicktimeinterface: 2","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"Got QT iface:vid=05ac,pid=12a8,bus=1,addr=101,config=5,if=2,alt=0","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"Clear Feature RC: 0","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"Clear Feature RC: 0","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"Inbound Bulk: ep #6 IN (address 0x86) bulk [512 bytes]","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"Outbound Bulk: ep #5 OUT (address 0x05) bulk [512 bytes]","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"Endpoint claimed","time":"2020-10-19T00:08:17-04:00"}
{"level":"info","msg":"Device 'b748cb41baca378e97e36bfdfb77f64b6134629b' USB connection ready, waiting for ping..","time":"2020-10-19T00:08:17-04:00"}
{"level":"info","msg":"AudioVideo-Stream has started","time":"2020-10-19T00:08:17-04:00"}

Ctrl-C is hit

^C{"level":"debug","msg":"Signal received: interrupt","time":"2020-10-19T00:08:31-04:00"}
{"level":"info","msg":"Telling device to stop streaming..","time":"2020-10-19T00:08:31-04:00"}
{"level":"info","msg":"Waiting for device to tell us to stop..","time":"2020-10-19T00:08:31-04:00"}
{"level":"warning","msg":"Timed out waiting for device closing","time":"2020-10-19T00:08:34-04:00"}
{"level":"info","msg":"Closing usb stream","time":"2020-10-19T00:08:34-04:00"}
{"level":"info","msg":"Closing usb interface","time":"2020-10-19T00:08:34-04:00"}
{"level":"error","msg":"Failed reading 4bytes length with err:device was disconnected only received: 0","time":"2020-10-19T00:08:34-04:00"}
{"level":"debug","msg":"Disabled QT config RC:0","time":"2020-10-19T00:08:34-04:00"}
{"level":"debug","msg":"Resetting device config","time":"2020-10-19T00:08:34-04:00"}
a@debian:~/Desktop/quicktime_video_hack$ du a b
0   a
4   b

I still really appreciate your hard work and commitment to this project. Although, I'll admit the only time I've recorded my iPhone's screen via USB is when I still had my old MacBook. At this point, I'd like a thorough explanation on how you've tested it on your own GNU/Linux system, with specs, OS version, setup of this OS? (if you're using a desktop, packages you've installed and stuff like that) because I'm desperate to even use this being that I've tried Ubuntu 18.04, 19.04 and 20.04 cloud images on QEMU without success, and even used someone else's machine just to try this. Still haven't tried a Raspberry Pi platform on Raspbian though, but at this point I really should've used something. or I've just been doing this wrong all along please help

Edit: After looking at issues, I realize this might be the same issue as #47 which is also occurring on Linux.

I might as well list the devices I have been testing on this time around: One is an iPhone 7 on 13.4, another is a 6s on 13.3.1, and I tried my old iPad Air 1st gen on 12.4.7 just now, all of the devices have the same effect described here so this probably doesn't matter at all. Also, I'll elaborate on how I 'killed' gphoto and usbmuxd for anyone else: (on Debian) I did systemctl mask usbmuxd and then stopped it, and masking it prevents it from being started when I plug the device in. To undo this you can simply replace mask with unmask and it'll start working as usual again. To stop gphoto I actually went a little extreme and just did systemctl stop udisks2 which will also likely unmount any external media plugged in, but it does the trick for this.

haryshi commented 3 years ago

Hi, I'm back to trying to use this again. I'm sorry to tell you that, unfortunately, it still didn't work for me on this new version. It did appear to get farther, though. I've tried this on the same system I've been using all along, my HP notebook on Debian, though I tried on another desktop on Ubuntu 20.04 and seen identical results.

I'd like to know if you've seen a similar effect, or if I'm just doing this wrong, but now, basically whenever I try to run it (as root, after killing gphoto and usbmuxd), it will get to AudioVideo-Stream has started, and then it just hangs and doesn't do anything. gstreamer doesn't do anything, and with record nothing is ever outputted to the files I specify. The device also doesn't change the time to 9:41, if it's supposed to do that. Here's my console output:

(Device is plugged in.)

a@debian:~/Desktop/quicktime_video_hack$ sudo ./quicktime_video_hack -v record a b
{"level":"info","msg":"Set Debug mode","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"Opened usbcontext:\u0026{0x1650e80 0xc000064120 {}}","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (8 alternate settings) altsettings:8 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (8 alternate settings) altsettings:8 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (8 alternate settings) altsettings:8 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (8 alternate settings) altsettings:8 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (8 alternate settings) altsettings:8 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (8 alternate settings) altsettings:8 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (8 alternate settings) altsettings:8 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (8 alternate settings) altsettings:8 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (8 alternate settings) altsettings:8 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (8 alternate settings) altsettings:8 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (8 alternate settings) altsettings:8 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (8 alternate settings) altsettings:8 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (8 alternate settings) altsettings:8 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (8 alternate settings) altsettings:8 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (8 alternate settings) altsettings:8 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (8 alternate settings) altsettings:8 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (6 alternate settings) altsettings:6 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (6 alternate settings) altsettings:6 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (6 alternate settings) altsettings:6 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (6 alternate settings) altsettings:6 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (6 alternate settings) altsettings:6 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (6 alternate settings) altsettings:6 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (6 alternate settings) altsettings:6 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (6 alternate settings) altsettings:6 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (6 alternate settings) altsettings:6 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (6 alternate settings) altsettings:6 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (6 alternate settings) altsettings:6 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (6 alternate settings) altsettings:6 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (2 alternate settings) altsettings:2 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (2 alternate settings) altsettings:2 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 2 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (2 alternate settings) altsettings:2 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (2 alternate settings) altsettings:2 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 2 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (1 alternate settings) altsettings:1 isvendor:true isub:true","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (1 alternate settings) altsettings:1 isvendor:true isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"Found MuxConfig 3 for Device 1.100: 05ac:12a8 (available configs: [1 2 3 4])","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (1 alternate settings) altsettings:1 isvendor:true isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (1 alternate settings) altsettings:1 isvendor:true isub:true","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (1 alternate settings) altsettings:1 isvendor:true isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 2 (3 alternate settings) altsettings:3 isvendor:true isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 2 (3 alternate settings) altsettings:3 isvendor:true isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 2 (3 alternate settings) altsettings:3 isvendor:true isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"Found MuxConfig 4 for Device 1.100: 05ac:12a8 (available configs: [1 2 3 4])","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (1 alternate settings) altsettings:1 isvendor:true isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 2 (3 alternate settings) altsettings:3 isvendor:true isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 2 (3 alternate settings) altsettings:3 isvendor:true isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 2 (3 alternate settings) altsettings:3 isvendor:true isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 2 (2 alternate settings) altsettings:2 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 2 (2 alternate settings) altsettings:2 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 3 (2 alternate settings) altsettings:2 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 3 (2 alternate settings) altsettings:2 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 4 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 5 (1 alternate settings) altsettings:1 isvendor:true isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 2 (2 alternate settings) altsettings:2 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 2 (2 alternate settings) altsettings:2 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 3 (2 alternate settings) altsettings:2 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 3 (2 alternate settings) altsettings:2 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 4 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 5 (1 alternate settings) altsettings:1 isvendor:true isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (2 alternate settings) altsettings:2 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (2 alternate settings) altsettings:2 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (2 alternate settings) altsettings:2 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (2 alternate settings) altsettings:2 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"Getting serial for: vid=05ac,pid=12a8,bus=1,addr=100","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"Got serialb748cb41baca378e97e36bfdfb77f64b6134629b","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (2 alternate settings) altsettings:2 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (2 alternate settings) altsettings:2 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 2 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (2 alternate settings) altsettings:2 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (2 alternate settings) altsettings:2 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 2 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (1 alternate settings) altsettings:1 isvendor:true isub:true","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (1 alternate settings) altsettings:1 isvendor:true isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"Found MuxConfig 3 for Device 1.100: 05ac:12a8 (available configs: [1 2 3 4])","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (1 alternate settings) altsettings:1 isvendor:true isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (1 alternate settings) altsettings:1 isvendor:true isub:true","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (1 alternate settings) altsettings:1 isvendor:true isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 2 (3 alternate settings) altsettings:3 isvendor:true isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 2 (3 alternate settings) altsettings:3 isvendor:true isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 2 (3 alternate settings) altsettings:3 isvendor:true isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"Found MuxConfig 4 for Device 1.100: 05ac:12a8 (available configs: [1 2 3 4])","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (1 alternate settings) altsettings:1 isvendor:true isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 2 (3 alternate settings) altsettings:3 isvendor:true isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 2 (3 alternate settings) altsettings:3 isvendor:true isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 2 (3 alternate settings) altsettings:3 isvendor:true isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"info","msg":"no usbSerial specified, using 'b748cb41baca378e97e36bfdfb77f64b6134629b'","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"Writing video output to:'a' and audio to: b","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (2 alternate settings) altsettings:2 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (2 alternate settings) altsettings:2 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 2 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (2 alternate settings) altsettings:2 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (2 alternate settings) altsettings:2 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 2 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (1 alternate settings) altsettings:1 isvendor:true isub:true","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (1 alternate settings) altsettings:1 isvendor:true isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"Found MuxConfig 3 for Device 1.100: 05ac:12a8 (available configs: [1 2 3 4])","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (1 alternate settings) altsettings:1 isvendor:true isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (1 alternate settings) altsettings:1 isvendor:true isub:true","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (1 alternate settings) altsettings:1 isvendor:true isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 2 (3 alternate settings) altsettings:3 isvendor:true isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 2 (3 alternate settings) altsettings:3 isvendor:true isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 2 (3 alternate settings) altsettings:3 isvendor:true isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"Found MuxConfig 4 for Device 1.100: 05ac:12a8 (available configs: [1 2 3 4])","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 1 (1 alternate settings) altsettings:1 isvendor:true isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 2 (3 alternate settings) altsettings:3 isvendor:true isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 2 (3 alternate settings) altsettings:3 isvendor:true isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"iface:Interface 2 (3 alternate settings) altsettings:3 isvendor:true isub:false","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"Enabling QT config RC:0","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"Checking for active QT config for b748cb41baca378e97e36bfdfb77f64b6134629b","time":"2020-10-19T00:08:16-04:00"}
{"level":"debug","msg":"Reopening Context","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"Getting serial for: vid=05ac,pid=12a8,bus=1,addr=101","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"Got serialb748cb41baca378e97e36bfdfb77f64b6134629b","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"iface:Interface 1 (1 alternate settings) altsettings:1 isvendor:true isub:true","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"iface:Interface 1 (1 alternate settings) altsettings:1 isvendor:true isub:false","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"iface:Interface 2 (1 alternate settings) altsettings:1 isvendor:true isub:true","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"iface:Interface 1 (1 alternate settings) altsettings:1 isvendor:true isub:false","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"iface:Interface 2 (1 alternate settings) altsettings:1 isvendor:true isub:true","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"Found QTConfig 5 for Device 1.101: 05ac:12a8 (available configs: [1 2 3 4 5])","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"iface:Interface 1 (2 alternate settings) altsettings:2 isvendor:false isub:false","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"iface:Interface 1 (2 alternate settings) altsettings:2 isvendor:false isub:false","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"iface:Interface 2 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"iface:Interface 1 (2 alternate settings) altsettings:2 isvendor:false isub:false","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"iface:Interface 1 (2 alternate settings) altsettings:2 isvendor:false isub:false","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"iface:Interface 2 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"iface:Interface 1 (1 alternate settings) altsettings:1 isvendor:true isub:true","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"iface:Interface 1 (1 alternate settings) altsettings:1 isvendor:true isub:false","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"Found MuxConfig 3 for Device 1.101: 05ac:12a8 (available configs: [1 2 3 4 5])","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"iface:Interface 1 (1 alternate settings) altsettings:1 isvendor:true isub:false","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"iface:Interface 1 (1 alternate settings) altsettings:1 isvendor:true isub:true","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"iface:Interface 1 (1 alternate settings) altsettings:1 isvendor:true isub:false","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"iface:Interface 2 (3 alternate settings) altsettings:3 isvendor:true isub:false","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"iface:Interface 2 (3 alternate settings) altsettings:3 isvendor:true isub:false","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"iface:Interface 2 (3 alternate settings) altsettings:3 isvendor:true isub:false","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"Found MuxConfig 4 for Device 1.101: 05ac:12a8 (available configs: [1 2 3 4 5])","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"iface:Interface 1 (1 alternate settings) altsettings:1 isvendor:true isub:false","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"iface:Interface 2 (3 alternate settings) altsettings:3 isvendor:true isub:false","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"iface:Interface 2 (3 alternate settings) altsettings:3 isvendor:true isub:false","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"iface:Interface 2 (3 alternate settings) altsettings:3 isvendor:true isub:false","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"QTConfig for b748cb41baca378e97e36bfdfb77f64b6134629b activated","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"Opened usbcontext:\u0026{0x7f88b0000cd0 0xc00020c2a0 {}}","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"Config is active: 0, QT config is: 5","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"QT Config is active: vid=05ac,pid=12a8,bus=1,addr=101,config=5","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"Looking for quicktime interface..","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"iface:Interface 0 (1 alternate settings) altsettings:1 isvendor:false isub:false","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"iface:Interface 1 (1 alternate settings) altsettings:1 isvendor:true isub:false","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"iface:Interface 2 (1 alternate settings) altsettings:1 isvendor:true isub:true","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"Found Quicktimeinterface: 2","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"Got QT iface:vid=05ac,pid=12a8,bus=1,addr=101,config=5,if=2,alt=0","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"Clear Feature RC: 0","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"Clear Feature RC: 0","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"Inbound Bulk: ep #6 IN (address 0x86) bulk [512 bytes]","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"Outbound Bulk: ep #5 OUT (address 0x05) bulk [512 bytes]","time":"2020-10-19T00:08:17-04:00"}
{"level":"debug","msg":"Endpoint claimed","time":"2020-10-19T00:08:17-04:00"}
{"level":"info","msg":"Device 'b748cb41baca378e97e36bfdfb77f64b6134629b' USB connection ready, waiting for ping..","time":"2020-10-19T00:08:17-04:00"}
{"level":"info","msg":"AudioVideo-Stream has started","time":"2020-10-19T00:08:17-04:00"}

Ctrl-C is hit

^C{"level":"debug","msg":"Signal received: interrupt","time":"2020-10-19T00:08:31-04:00"}
{"level":"info","msg":"Telling device to stop streaming..","time":"2020-10-19T00:08:31-04:00"}
{"level":"info","msg":"Waiting for device to tell us to stop..","time":"2020-10-19T00:08:31-04:00"}
{"level":"warning","msg":"Timed out waiting for device closing","time":"2020-10-19T00:08:34-04:00"}
{"level":"info","msg":"Closing usb stream","time":"2020-10-19T00:08:34-04:00"}
{"level":"info","msg":"Closing usb interface","time":"2020-10-19T00:08:34-04:00"}
{"level":"error","msg":"Failed reading 4bytes length with err:device was disconnected only received: 0","time":"2020-10-19T00:08:34-04:00"}
{"level":"debug","msg":"Disabled QT config RC:0","time":"2020-10-19T00:08:34-04:00"}
{"level":"debug","msg":"Resetting device config","time":"2020-10-19T00:08:34-04:00"}
a@debian:~/Desktop/quicktime_video_hack$ du a b
0 a
4 b

I still really appreciate your hard work and commitment to this project. Although, I'll admit the only time I've recorded my iPhone's screen via USB is when I still had my old MacBook. At this point, I'd like a thorough explanation on how you've tested it on your own GNU/Linux system, with specs, OS version, setup of this OS? (if you're using a desktop, packages you've installed and stuff like that) because I'm desperate to even use this being that I've tried Ubuntu 18.04, 19.04 and 20.04 cloud images on QEMU without success, and even used someone else's machine just to try this. Still haven't tried a Raspberry Pi platform on Raspbian though, but at this point I really should've used something. or I've just been doing this wrong all along please help

Edit: After looking at issues, I realize this might be the same issue as #47 which is also occurring on Linux.

I might as well list the devices I have been testing on this time around: One is an iPhone 7 on 13.4, another is a 6s on 13.3.1, and I tried my old iPad Air 1st gen on 12.4.7 just now, all of the devices have the same effect described here so this probably doesn't matter at all. Also, I'll elaborate on how I 'killed' gphoto and usbmuxd for anyone else: (on Debian) I did systemctl mask usbmuxd and then stopped it, and masking it prevents it from being started when I plug the device in. To undo this you can simply replace mask with unmask and it'll start working as usual again. To stop gphoto I actually went a little extreme and just did systemctl stop udisks2 which will also likely unmount any external media plugged in, but it does the trick for this.

hi, I met the same issue, have you solved this problem?

ariankordi commented 3 years ago

Hi, I'm back to trying to use this again. I'm sorry to tell you that, unfortunately, it still didn't work for me on this new version. It did appear to get farther, though. I've tried this on the same system I've been using all along, my HP notebook on Debian, though I tried on another desktop on Ubuntu 20.04 and seen identical results. ...

hi, I met the same issue, have you solved this problem?

I haven't found a solution yet, no. I think it would be useful if you shared what operating system and hardware you are using. Maybe we should open a separate issue for this because it appears to be a problem on GNU/Linux.

Mrf2233 commented 1 month ago

Hi, I'm back to trying to use this again. I'm sorry to tell you that, unfortunately, it still didn't work for me on this new version. It did appear to get farther, though. I've tried this on the same system I've been using all along, my HP notebook on Debian, though I tried on another desktop on Ubuntu 20.04 and seen identical results. ...

hi, I met the same issue, have you solved this problem?

I haven't found a solution yet, no. I think it would be useful if you shared what operating system and hardware you are using. Maybe we should open a separate issue for this because it appears to be a problem on GNU/Linux.

I used Dockerfile.debian to run qvh in Docker and still encountered this problem, I think it's not receiving ping packets