Skip to main content
Home Forums Silverlight Design Video and Media Playing MPEG4 from silverlight
3 replies. Latest Post by loarabia on November 19, 2008.
(1)
raghuj
Member
3 points
8 Posts
11-18-2008 3:33 AM |
Hi,
My video camera streams video in MPEG4 format. Is there any way to play this stream using Silverlight?
If yes, then what are the possible ways to do this.
Thanx in advance..
Regards,
Raghu
loarabia
80 points
25 Posts
11-18-2008 2:40 PM |
There is no native support for playingback Mpeg4 cotnent in Silverlight 2 but there have been multiple announcements about Silverlight 3's upcoming support for Mp4/H264/AAC (Scott Gu's latest post with a Glipse of Silverlight 3 features but searching should turn up more information).
The best bet I can think of in the short term is to transcode the video into WMV on the fly before streaming it to Silverlight or to capture the files and then reencode them.
Please reply if you need more information than this.
11-19-2008 2:28 AM |
Hi Loarabia,
Thanx for the quick reply.
I could try the first option of transcoding the video into WMV on the fly. could you please tell me how to do this?
and suggest any examples i can take look at if possible.
briefly about my project: I want to build a web based application to view the video from my camera which supports only MPEG4.
11-19-2008 3:30 PM |
If you're talking abot transcoding a live stream . . . generally, you would need to find a product that can re-encode content from Mpeg4 to WMV (Expression Encoder or one of a number of 3rd party encoders). However, if you want this to happen in real time typically you need a more specialized solution.
One thing that could work would be to look at the AviSynth project. AviSynth has the notion of small scripts which can take in content from many different sources. It then takes that content and makes it appear to be a RawAVI which you can then pass into an encoder for live encoding as WMV.
If you are going to capture the video and then deliver it via an on demand progressive download , for example: go out and film a concert and then stream it over the web as a soapbox/youtube type solution, then you should just need the encoder and to reencode the files.
That is the theory at a *very* high level anyway. I am sorry that I don't have any live code or examples that I could offer you right now. Maybe someone else on the forum has already prototyped a solution similar to this or if you can offer some more details I could think of a more detailed solution.