facebook / idb

idb is a flexible command line interface for automating iOS simulators and devices
https://fbidb.io
MIT License
4.51k stars 432 forks source link

video-stream :- help required to dynamically compress or scale down minicap framess #845

Open asolanki-in opened 1 year ago

asolanki-in commented 1 year ago

I am using node js to start video-stream and converting received buffer to frames. I am able to achieve minicap stream for connected device on browser. But each image frame size is more that 140kb. Want to reduce it more if at all possible or already done by anyone let me know.

For Reference:

this.proc = spawn("idb", [
        "video-stream",
        "--udid",
        udid,
        "--fps",
        "15",
        "--format",
        "minicap",
        "--compression-quality",
        "0.1",
     "--scale-factor",
        "0.1"
    ]);

Scale factor doesn't seems any effect on scale or image Its sending frame size same as 1.0 value.

Please help to reduce it.