mipops/dvrescue

dvrescue vs sony9pin deckcontrol speed

dericed opened this issue · 2 comments

with sony9pin, the deck control is nearly instantaneous:

$ sony9pin 2 p
$ sony9pin 2 s

but with dvrescue the deck control has a 5 second lag between sending the command and seeing the same result:

$  /usr/local/bin/dvrescue -y device://84:160a010c:00000000 --control "/dev/tty.RS422 Deck Control" -cmd play
$  /usr/local/bin/dvrescue -y device://84:160a010c:00000000 --control "/dev/tty.RS422 Deck Control" -cmd stop

Unable to reproduce

time ./dvrescue --control "/dev/tty.RS422 Deck Control" --cmd play && sleep 5 && time ./dvrescue --control "/dev/tty.RS422 Deck Control" --cmd stop

real	0m0.204s
user	0m0.084s
sys	0m0.027s

real	0m0.200s
user	0m0.085s
sys	0m0.025s

testing

$ dvrescue --version
DVRescue v.22.12.20240619 (MediaInfoLib v.24.05) by MIPoPS.

$ time dvrescue --control "/dev/tty.usbserial-A10KXF88" --cmd play && sleep 5 && time dvrescue --control "/dev/tty.usbserial-A10KXF88" --cmd stop
2024-06-19 15:09:48.507 dvrescue[11169:150589] WARNING: AVCaptureDeviceTypeExternal is deprecated for Continuity Cameras. Please use AVCaptureDeviceTypeContinuityCamera and add NSCameraUseContinuityCameraDeviceType to your Info.plist.

real	0m0.405s
user	0m0.077s
sys	0m0.087s
2024-06-19 15:09:53.879 dvrescue[11176:150744] WARNING: AVCaptureDeviceTypeExternal is deprecated for Continuity Cameras. Please use AVCaptureDeviceTypeContinuityCamera and add NSCameraUseContinuityCameraDeviceType to your Info.plist.

real	0m0.357s
user	0m0.074s
sys	0m0.079s

$ time dvrescue --control "/dev/tty.RS422 Deck Control" --cmd play && sleep 5 && time dvrescue --control "/dev/tty.RS422 Deck Control" --cmd stop
2024-06-19 15:10:14.877 dvrescue[11206:151192] WARNING: AVCaptureDeviceTypeExternal is deprecated for Continuity Cameras. Please use AVCaptureDeviceTypeContinuityCamera and add NSCameraUseContinuityCameraDeviceType to your Info.plist.

real	0m0.375s
user	0m0.072s
sys	0m0.084s
2024-06-19 15:10:21.271 dvrescue[11211:151272] WARNING: AVCaptureDeviceTypeExternal is deprecated for Continuity Cameras. Please use AVCaptureDeviceTypeContinuityCamera and add NSCameraUseContinuityCameraDeviceType to your Info.plist.

real	0m1.383s
user	0m0.083s
sys	0m0.084s

and again with sony9pin

$ time sony9pin 8 p && sleep 5 && time sony9pin 8 s

real	0m0.113s
user	0m0.027s
sys	0m0.024s

real	0m0.115s
user	0m0.029s
sys	0m0.024s

maybe close enough?