Feedback
| TouchRing | Modules |
New in PyMT 0.4
This module create a HTTP web server, and stream video output to the first client connected on the server. The output stream is in mjpeg format.
How to launch the server
python particles.py -m mjpegserver
If you want ot configure the server, you have multiple options :
GeSHi Error: GeSHi could not find the language rst (using path /home/web/pymt.eu/wiki/cookbook/geshi/geshi/) (code 2)
For example, if you want to launch the webserver to port 9123 + resize image to 320x240 :
python particles.py -m mjpegserver:port=8000,size=320x240
How to capture mjpeg stream into a video ?
Using GStreamer on Linux
Connect to http://127.0.0.1:8000/ + decode the jpeg stream and encode in XVid format into MKV container, at 15FPS.
The final filename will be test.mkv
gst-launch-0.10 -v souphttpsrc location=http://127.0.0.1:8000/ do-timestamp=true ! multipartdemux ! image/jpeg,framerate=\(fraction\)15/1 ! jpegdec ! xvidenc ! matroskamux ! filesink location=test.mkv
