MediaElement and RTSP - wpf

Does MediaElement support RTSP?
I've got a stream going and I'm able to consume the stream with VLC Player via:
rtsp://192.168.1.17:554/stream
However, when trying to use Windows Media Player, I'm not able to stream it. Which begs the question, does MediaElement support RTSP?
I'm working with WPF on .NET 4.0.

VLC has comprehensive support for RTSP (through live555 library), while support in Windows Media Player is limited.
You might want to check this article on MSDN: Supported Media Formats, Protocols, and Log Fields.
Supported Codecs
Below is a rollup list of formats codecs supported by the
MediaElement. These encodings are supported regardless of the file
name extension.
See also: MediaElement and custom RTSP stream.

Related

Does Silverlight 5 support Dolby Digital (AC-3) 5.1 surround sound playback?

Does playing video with Silverlight 5 support the playback of Dolby Digital (AC-3) 5.1 surround sound, or will it always downmix the channels to stereo?
I'm streaming a Smooth Streaming video, but the Silverlight Smooth Streaming Sample Player doesn't seem to support Dolby audio playback.
No with default players.
Source: http://msdn.microsoft.com/en-us/library/cc189080%28v=vs.95%29.aspx#delivery_method_containers_and_codecs
Quote:
(For WMA audio, the only one mentioning surround sound)
Multichannel (5.1 and 7.1 surround) audio content is automatically mixed down to stereo.
And for Smooth Streaming:
http://www.iis.net/learn/media/smooth-streaming/smooth-streaming-client-readme
Not many details here, supported audio codec is AAC.
See also here:
http://www.iis.net/learn/media/smooth-streaming/smooth-streaming-primer#create_piff
Supported codecs are AAC and WMA/WMA Pro.

How to play Youtube or Real Time Streaming Protocol Videos in Windows 8 Metro apps?

I am building one app which can pick videos from our channel and list and play from within the application.
I have done all the json parsing and have everything ready but the only problem
is that I am not able to play the rtsp videos coming from the Youtube API.
I have read that it is possible to play rtsp videos using the MediaElement control
but its not working, my sample XAML code is as below.
<MediaElement Width="500" Height="500" AutoPlay="True" Source="rtsp://v6.cache5.c.youtube.com/CiQLENy73wIaGwkNCW3rSEjLahMYDSANFEgGUghzdGFuZGFyZAw=/0/0/0/video.3gp"/>
I have also looked at Player Framework for Windows 8 Metro Style Applications and Smooth Streaming Client SDK
Using these I am able to play a direct video stored in the server(http://localhost/video.mp4), but not videos streamed via rtsp.
Please help. I want mainly youtube videos via rtsp to be played
I have searched a lot but not finding any solution, please help.
The rtsp stream is also working I have tried playing via VLC, its playing there.
OS: Windows 8 Release Preview w/ VS 2012 Express for Windows 8
I'm pretty sure there's more to playing YouTube videos than just the RTSP protocol. Your example shows a file of type .3gp, which is traditionally treated as QuickTime and not playable by MediaElement. MediaElement can, however, play MP4s and with a codec installed and a custom DirectShow graph it's even able to play FLVs. There's even a sample WPF YouTube player discussed here and it looks like the source is still available for download.

Can MediaElement play QuickTime (.mov) files?

I'm building a Windows Phone 7.5 app that needs to play videos that are pulled from a remote XML feed. Some of these videos are in .mov format, while others are in .mp4 format. The .mp4's play just fine, but the .mov's don't play (just a blank screen). I'm using MediaElement to play these files. Is there any way to make MediaElement play .mov files?
On a Windows Phone? No.
The MediaElement uses whatever codecs are available and installed. Since you can't install your own codecs and only ships with a certain number of codecs, you cannot play them.
The QuickTime Format is just a container around MPEG-4 - it should be very simple to transcode them to MP4 (Which is supported) if you have control over the source.

Media codec flv play in Windows Phone 7 in Media Element

I want to streaming flv video in Media Element in WP7. I can play wmv format but flv not. I found this link. So MediaElement doesn´t support flv right? Is there a way how can I play this format?
You are right. WP7 doesn't support Flash Video.
The only solution available is to convert the video. I'd recommend doing this off the device and not trying to do the conversion on the phone.

play video in silverlight?

How do yo play a video with silverlight?
does Visual Studio come with a video player component build in? or do I need to make a video player?
As often is the case, it depends what you're requirements are.
You can use the media element which comes with Silverlight (msdn info here) , however, that means building everything from scratch, it does not come with a "player chrome", as in buttons and visual styles.
If you want a pre-built "player", there's at least a couple of options, the Expression Encoder tool (a free version is available), comes with a number of Silverlight players that you can freely use and modify if you wish. You find them under the "templates" section in expression encoder tool.
Another option is to use the "Microsoft Media Platform: Player Framework" (formerly known as Silverlight Media Framework (SMF)), which is a open source project which Microsoft is involved in, it comes with a fully featured "player" and is built on industry standards, you can find it at http://smf.codeplex.com.
Good luck!
In SL:
<MediaElement x:Name="MyVid"
Source="http://abc.xyz.com/MyVid.wmv"
Height="250"
Width="350"
AutoPlay="True"/>
Server-side needs to support MMS (RTSP protocol - streaming) or progressive downloads (MMS on the MediaElement's side takes care of both). Videos should conform to the SMPTE 421M video codec standard (VC-1).

Resources