Motion JPEG

From Omnia
Revision as of 07:04, 8 March 2015 by Kenneth (talk | contribs) (→‎MPEG-Streamer)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Motion JPEG

Motion JPEG - Wikipedia - http://en.wikipedia.org/wiki/Motion_JPEG

"In multimedia, Motion JPEG (M-JPEG or MJPEG) is a video compression format in which each video frame or interlaced field of a digital video sequence is compressed separately as a JPEG image. Originally developed for multimedia PC applications, M-JPEG is now used by video-capture devices such as digital cameras, IP cameras, and webcams; and by non-linear video editing systems. It continues to enjoy native support by the QuickTime Player, the PlayStation console, and browsers such as Safari, Google Chrome, and Mozilla Firefox."

Stream Video from the Raspberry Pi Camera to Web Browsers, Even on iOS and Android - miguelgrinberg.com - http://blog.miguelgrinberg.com/post/stream-video-from-the-raspberry-pi-camera-to-web-browsers-even-on-ios-and-android

"What is Motion JPEG? Pretty simple, it's just a stream of individual JPEG pictures, one after another. I was surprised to find that most modern browsers can play MJPEG streams natively."

MPEG-Streamer

Build:

sudo apt-get install libjpeg8-dev imagemagick subversion
sudo svn co https://svn.code.sf.net/p/mjpg-streamer/code/mjpg-streamer/
cd mjpg-streamer
make

Start raspistill:

mkdir /tmp/stream
raspistill -w 640 -h 480 -q 5 -o /tmp/stream/pic.jpg -tl 100 -t 9999999 -th 0:0:0 & 

Use:

LD_LIBRARY_PATH=./ ./mjpg_streamer -i "input_file.so -f /tmp/stream" -o "output_http.so -w ./www"

References:

Notes

See Motion_JPEG/Notes

keywords