|
From: Torsten D. <To...@t3...> - 2014-10-02 09:54:34
|
Hi all, I have just disabled the --jpg-httpd option to give way for the screenshot uri handler of the mongoose httpd. You can access the new screenshot handler after starting with --httpd=8080 at http://localhost:8080/screenshot It understands some request parameters: type: either png or jpg (guess what this does) window: the name of the window to capture (for those with multi screen setups) stream: provide mjpeg stream Examples: http://localhost:8080/screenshot?type=png send png instead of jpg (jpg is default) http://localhost:8080/screenshot?type=png&window=WindowA send a png screenshot from the window named "WindowA" as defined under rendering/camera-group/window/name in your screen configuration. http://localhost:8080/screenshot?window=WindowA do the same as before, but use default jpg encoding http://localhost:8080/screenshot?window=WindowA&stream=y same as before, but not just send a single image but a motion-jpeg encoded video stream. Can be used by ffmpeg to directly encode various video formats. try ffplay -f mjpeg http://localhost:8080/screenshot/stream=y Compression level for PNG is hardcoded to 9 (highest) and JPEG_QUALITY hardcoded to 80. These seem to be a good balance of performance vs. quality. Enjoy, Torsten |