YueChen-C / ios-screen-record

About A python based Apple Quicktime protocol,you can record audio and video from real iOS devices
MIT License
202 stars 42 forks source link

usb.core.USBError: [Errno 5] Input/Output Error #15

Open revathySV opened 1 year ago

revathySV commented 1 year ago

Hi,

I am trying to record iOS screen video using a Mac. Command used: ioscreen -u="00008103000E09D23ADA001E" record -h264File=out.h264 -wavFile=out.wav Device details: iPad connected to Mac using type C - C connector. Error: 2023-01-31 12:14:42,307 - util.py[line:58] - INFO: Find Device UDID: 00008103000E09D23ADA001E 2023-01-31 12:14:42,307 - util.py[line:91] - INFO: Disabling hidden QT config 2023-01-31 12:14:42,316 - util.py[line:153] - INFO: enable_qt_config.. 2023-01-31 12:14:42,316 - util.py[line:71] - INFO: Enabling hidden QT config 2023-01-31 12:14:42,319 - util.py[line:58] - INFO: Find Device UDID: 00008103000E09D23ADA001E Traceback (most recent call last): File "/opt/homebrew/bin/ioscreen", line 8, in sys.exit(main()) File "/opt/homebrew/lib/python3.10/site-packages/ioscreen/main.py", line 56, in main args.func(args) File "/opt/homebrew/lib/python3.10/site-packages/ioscreen/main.py", line 12, in cmd_record_wav start_reading(consumer, device, stopSignal) File "/opt/homebrew/lib/python3.10/site-packages/ioscreen/util.py", line 164, in start_reading device.ctrl_transfer(0x02, 0x01, 0, 0x86, b'') File "/opt/homebrew/lib/python3.10/site-packages/usb/core.py", line 1072, in ctrl_transfer ret = self._ctx.backend.ctrl_transfer( File "/opt/homebrew/lib/python3.10/site-packages/usb/backend/libusb1.py", line 893, in ctrl_transfer ret = _check(self.lib.libusb_control_transfer( File "/opt/homebrew/lib/python3.10/site-packages/usb/backend/libusb1.py", line 604, in _check raise USBError(_strerror(ret), ret, _libusb_errno[ret]) usb.core.USBError: [Errno 5] Input/Output Error

How to solve this error? - is there any workaround possible? Your feedback would be of great help!