@craig The output of getLivePreview is a stream of characters.
I run the command:
jcasman@MacBook-Air-5 ~ %
curl -X POST \
--header "Content-Type: application/json" \
--data '{"name": "camera.getLivePreview"}' \
http://192.168.1.1/osc/commands/execute
I get a warning
Warning: Binary output can mess up your terminal. Use "--output -" to tell
Warning: curl to output it to your terminal anyway, or consider "--output
Warning: <FILE>" to save to a file.
I add the output option and create a file called livestream.txt
jcasman@MacBook-Air-5 ~ %
curl --output livestream.txt -X POST \
--header "Content-Type: application/json" \
--data '{"name": "camera.getLivePreview"}' \
http://192.168.1.1/osc/commands/execute
I see this in the terminal, and it’s counting up quickly
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 5808k 0 5808k 100 33 394k 2 0:00:16 0:00:14 0:00:02 418k^C
I have a file now called livestream.txt, which contains the output.