|
|
Line 42: |
Line 42: |
|
| |
|
| == Screen Shots == | | == Screen Shots == |
| {{FGCquote
| | You can access the new screenshot handler after starting FlightGear per instructions here [[Phi#Usage|Usage]] |
| |You can access the new screenshot handler after starting with <br/>
| | http://localhost:8080/screenshot |
| --httpd{{=}}8080 at http://localhost:8080/screenshot<br/>
| |
| <br/>
| |
| It understands some request parameters:<br/>
| |
| type: either png or jpg (guess what this does)<br/>
| |
| window: the name of the window to capture (for those with multi screen <br/>
| |
| setups)<br/>
| |
| stream: provide mjpeg stream
| |
| |{{cite web |url=http://sourceforge.net/p/flightgear/mailman/message/32889510/
| |
| |title=<nowiki>[Flightgear-devel] Heads up: --jpg-httpd is gone</nowiki>
| |
| |author=<nowiki>Torsten Dreyer</nowiki>
| |
| |date=<nowiki>2014-10-02</nowiki>
| |
| }}
| |
| }}
| |
| {{FGCquote
| |
| |Examples:<br/> | |
| <br/>
| |
| http://localhost:8080/screenshot?type=png<br/> | |
| send png instead of jpg (jpg is default)<br/>
| |
| <br/>
| |
| http://localhost:8080/screenshot?type{{=}}png&window{{=}}WindowA<br/>
| |
| send a png screenshot from the window named "WindowA" as defined under <br/>
| |
| rendering/camera-group/window/name in your screen configuration.<br/>
| |
| <br/>
| |
| http://localhost:8080/screenshot?window{{=}}WindowA<br/>
| |
| do the same as before, but use default jpg encoding
| |
| |{{cite web |url=http://sourceforge.net/p/flightgear/mailman/message/32889510/
| |
| |title=<nowiki>[Flightgear-devel] Heads up: --jpg-httpd is gone</nowiki>
| |
| |author=<nowiki>Torsten Dreyer</nowiki>
| |
| |date=<nowiki>2014-10-02</nowiki>
| |
| }}
| |
| }}
| |
|
| |
|
| {{FGCquote
| | It understands some request parameters: |
| |http://localhost:8080/screenshot?window{{=}}WindowA&stream{{=}}y<br/> | | '''type:''' either png or jpg (guess what this does) |
| same as before, but not just send a single image but a motion-jpeg <br/>
| | '''window:''' the name of the window to capture (for those with multi screen |
| encoded video stream.<br/> | | setups) |
| Can be used by ffmpeg to directly encode various video formats.<br/> | | '''stream:''' provide mjpeg stream |
| try ffplay -f mjpeg http://localhost:8080/screenshot/stream{{=}}y<br/>
| | |
| <br/>
| | Examples: |
| Compression level for PNG is hardcoded to 9 (highest) and JPEG_QUALITY <br/> | | send png instead of jpg (jpg is default) |
| hardcoded to 80.<br/> | | http://localhost:8080/screenshot?type=png |
| These seem to be a good balance of performance vs. quality. | | send a png screenshot from the window named "WindowA" as defined under |
| |{{cite web |url=http://sourceforge.net/p/flightgear/mailman/message/32889510/
| | rendering/camera-group/window/name in your screen configuration. |
| |title=<nowiki>[Flightgear-devel] Heads up: --jpg-httpd is gone</nowiki>
| | http://localhost:8080/screenshot?type=png&window=WindowA |
| |author=<nowiki>Torsten Dreyer</nowiki>
| | use default jpg encoding |
| |date=<nowiki>2014-10-02</nowiki>
| | http://localhost:8080/screenshot?window=WindowA |
| }}
| | |
| }}
| | http://localhost:8080/screenshot?window=WindowA&stream=y |
| | Send a motion-jpeg encoded video stream. |
| | Can be used by ffmpeg to directly encode various video formats. |
| | 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 |
|
| |
|
| == Web-based EFIS == | | == Web-based EFIS == |