Run with Terminal is correctly executing:
alexMaxBook-Pro:ios alex$ ./ios_minicap --udid 214fce468bacae09fffe0d857ea5452548198b1b8 --port 12345 --resolution 320x568
EnableDALDevices
2019-12-19 19:22:35.382 ios_minicap[63539:3200518] Available devices:
2019-12-19 19:22:35.382 ios_minicap[63539:3200518] 214fce468bacae09fffe0d857ea5452548198b1b8
2019-12-19 19:22:35.383 ios_minicap[63539:3200518] DJH438115P8F6VTDV
resolution: 320x568
Allocating 555008 bytes for JPEG encoder
== Banner ==
version: 1
size: 24
pid: 63539
real width: 320
real height: 568
desired width: 320
desired height: 568
orientation:
quirks: 1
banner: 11833f8004010038200401003820001
Running with python, the program doesn't work properly, and it's missing output: How to get the same effect?
cmd = './ios_minicap --udid 214fce468bacae09fffe0d857ea5452548198b1b8 --port 12345 --resolution 320x568'
p = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE)
out, err = p.communicate()
for line in out.splitlines():
print(line)
>>
2019-12-19 19:36:34.492 ios_minicap[63632:3206871] Available devices:
2019-12-19 19:36:34.492 ios_minicap[63632:3206871] 214fce468bacae09fffe0d857ea5452548198b1b8
2019-12-19 19:36:34.492 ios_minicap[63632:3206871] DJH438115P8F6VTDV
b'EnableDALDevices'