Skip to main content

Microsoft Silverlight

Answered Question Playing MPEG4 from silverlightRSS Feed

(1)

raghuj
raghuj

Member

Member

3 points

8 Posts

Playing MPEG4 from silverlight

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 

 

Regards,
Raghu

loarabia
loarabia

Member

Member

80 points

25 Posts

Re: Playing MPEG4 from silverlight

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.

Larry Olson
Silverlight PM
Microsoft

raghuj
raghuj

Member

Member

3 points

8 Posts

Re: Playing MPEG4 from silverlight

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. 

Regards,

Raghu 

 

Regards,
Raghu

loarabia
loarabia

Member

Member

80 points

25 Posts

Answered Question

Re: Playing MPEG4 from silverlight

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.

Larry Olson
Silverlight PM
Microsoft
  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities