Advertisement
VideoWired
VIDEO SEARCH

MJPEG Decoder Details

MJPEGDecoder
Watch Video

MJPEG Decoder

0 of 5 Stars
Last year the Coding4Fun/Channel 9 guys asked me to work on a few things for MIX10. One of these items was a way to output a webcam stream to Windows Phone 7 for use with Clint’s t-shirt cannon project you may have read about. I figured the easiest way to accomplish this was by using a network/IP camera capable of sending a Motion-JPEG stream, which can be easily decoded and displayed that can display a JPEG image. Thus, this library was born.It has gone through quite a few changes and I have expanded it to easily display MJPEG streams on a variety of platforms. The developer just references the assembly appropriate to their platform, adds a few lines of code, and away it goes.UsageFor those that are just interested in the usage, it's as simple as this:Reference one of the following assemblies appropriate for your project: MjpegProcessorSL.dll - Silverlight (Out of Browser Only!) MjpegProcessorWP7.dll - Windows Phone 7 (XNA or Silverlight, performance maxes out around 320x240 @ 15fps, so set your camera settings accordingly) MjpegProcessorXna4.dll - XNA 4.0 (Windows) MjpegProcessor.dll - WinForms and WPF Create a new MjpegDecoder object. Hook up the FrameReady event. In the event handler, take the Bitmap/BitmapImage and assign it to your image display control: In the case of XNA, use the GetMjpegFrame method in the Update method, which will return a Texture2D you can use in your Draw method. Call the ParseStream method with the Uri of the MJPEG "endpoint". That's it! The source code and binaries above both include projects demonstrating how to use the library on each of these platforms. As long as you set the appropriate reference, you can just copy and paste the code in the sample to get your project running (changing the Uri, of course).public partial class MainWindow : Window { MjpegDecoder _mjpeg; public MainWindow() { InitializeComponent(); _mjpeg = new MjpegDecoder(); _mjpeg.FrameReady += mjpeg_FrameReady; } private void Start_Click(object se...
Channel: Channel 9
Video Length: 0s
Date Found: Thu, Feb 10 2011 12:14 PM
Category: Technology
Date Produced: Thu, Feb 10 2011 12:15 AM
View Count: 9
Flag
Advertisement
Advertisement
Related Results From Technology
ShatnerSpotsaTribbleHunter
From: WIRED on Tue, Jul 19 2011 9:23 PM
In a scene from new documentary "The Captains," William Shatner spots a scantily clad woman in a furry bikini holding a stick with more fuzz balls on it.
0 of 5 Stars
TheCaptainsAsksSpockorKhan
From: WIRED on Tue, Jul 19 2011 9:23 PM
In a scene from new documentary "The Captains," a young fan asks William Shatner which unforgettable scream is the actor’s favorite.
0 of 5 Stars
WhyCiscoisBetterThanAppleValueVsGrowth
From: The Wall Street Journal on Tue, Jul 19 2011 6:00 PM
A growth stock like Apple in the tech sector naturally is attractive to investors, as opposed to say, Cisco, but with so many betting on the former, contrarians look to the latter as the one to hold, according to Mark Hulbert. Laura Mandaro reports. Images courtesy of Getty Images.
0 of 5 Stars
EmmanuelleChriquitalks039Entourage039
From: USA TODAY on Mon, Jul 18 2011 6:08 PM
Emmanuelle Chriqui first got a part on 'Entourage' in its second season for a three episode arc. Six years later and she’s still on the show. The actress talks about the show's finale and rumors of an 'Entourage' movie. (July 18)
0 of 5 Stars
GeneralPetraeusHandsOverAfghanistanCommand
From: Newsday on Mon, Jul 18 2011 5:19 PM
General David Petraeus handed over command of U.S. and coalition forces in Afghanistan to General John Allen at a ceremony in Kabul Monday. (July 18)
0 of 5 Stars
CharlieSheenagreesto039AngerManagement039
From: USA TODAY on Mon, Jul 18 2011 4:58 PM
Charlie Sheen aims to launch another hit sitcom - this time, on his own terms. The tempestuous star is planning to return to series television in the aptly titled "Anger Management," based on the 2003 film of the same name. (July 18)
0 of 5 Stars
digitsLookingAheadtoAppleEarnings
From: The Wall Street Journal on Mon, Jul 18 2011 3:32 PM
MarketWatch Technology editor tells digits what to expect from Apple’s third quarter earnings results Tuesday after the close.
0 of 5 Stars
RobotmouthsingsKagomeKagome
From: YouTube on Mon, Jul 18 2011 2:38 PM
Robot mouth developed by Professor Hideyuki Sawada at Kagawa University in Japan ( Listen to to the original on Wikipedia:
0 of 5 Stars
Facinglawmakers
From: Newsday on Mon, Jul 18 2011 1:52 PM
Following the resignation of Britain’s top police officer and amid calls for yet another Murdoch media probe _ the prime minister says he'll return from an Africa trip to face lawmakers again. AP video. (July 18)
0 of 5 Stars
TechBytes71811
From: ABC News on Mon, Jul 18 2011 1:24 PM
The wireless industry keeps growing, but jobs continue to fade.
0 of 5 Stars
McGregorsgriefloveandcomedyin039Beginners039
From: USA TODAY on Mon, Jul 18 2011 12:32 PM
Ewan McGregor and Melanie Laurent talk about quirky new movie 'Beginners' - the story of a man who unintentionally falls in love while coming to terms with the death of his gay father. (July 18)
0 of 5 Stars
ShowBizMinutePotterLopezFonda
From: USA TODAY on Mon, Jul 18 2011 9:17 AM
Potter breaks weekend box office record; Jennifer Lopez and Marc Anthony may work together; Jane Fonda’s appearance on QVC is cancelled. (July 18)
0 of 5 Stars
Whenscienceentersthekitchen
From: MSNBC on Mon, Jul 18 2011 9:11 AM
The modernist kitchens of Grant Achatz are known for using experimental equipment to produce unusual cuisine, thanks to an unusual partnership with Polyscience, a lab equipment. (msnbc.com)
0 of 5 Stars
TheSmurfsareback
From: USA TODAY on Mon, Jul 18 2011 8:12 AM
Actor Neil Patrick Harris chats about working with the computer generated smurfs - while Hank Azaria, who plays Gargamel, talks villainy, prosthetics and evil laughs. (July 18)
0 of 5 Stars
TheSmurfsareback
From: USA TODAY on Mon, Jul 18 2011 8:12 AM
Actor Neil Patrick Harris chats about working with the computer generated smurfs - while Hank Azaria, who plays Gargamel, talks villainy, prosthetics and evil laughs. (July 18)
0 of 5 Stars
LiveShowlivestreamSunJul172011092045AM
From: Livestream on Mon, Jul 18 2011 6:53 AM
F1 2010
0 of 5 Stars
Callsforonlineetiquetteclasses
From: news.com.au on Mon, Jul 18 2011 2:11 AM
There are calls for social networking and online etiquette to be taught in schools to tackle cyberbullying.
0 of 5 Stars
LondonPoliceChiefQuitsOverHackingTies
From: Newsday on Sun, Jul 17 2011 9:30 PM
London’s police chief has quit over his links to a former News of the World editor caught up in the phone hacking scandal. Metropolitan Police commissioner Paul Stephenson denies any wrongdoing. (July 17)
0 of 5 Stars
PlaceandAlign
From: iTunes on Sun, Jul 17 2011 6:56 PM
In this video James Darknell reveals the very handy item drop methods for Place and Align. (00:02:51 / 12.5MB)
0 of 5 Stars
ManArrestedforAllegedSenBoxerThreats
From: Newsday on Sun, Jul 17 2011 6:13 PM
Authorities say a Northern California man has been arrested on suspicion of making death threats against Sen. Barbara Boxer. (July 17)
0 of 5 Stars
VIDEOWIRED.COM FEATURED