How can the windows phone use the .pls format? - c#

Can the windows phone use the .pls format?
I have search the answer on the internet already, but I didn't found it. If somebody know it please write me an something.
I read at here http://msdn.microsoft.com/en-us/library/ff462087(v=vs.92).aspx that the WP7 doesn't supported the .pls format, but in this situation How can I use it?
Where Do I have to start?

A Pls file isn't a media codec, it's a play list file, so it wouldn't be listed in the list you've linked to. But no it doesn't support a Pls play list, see the play lists section in Supported Media Codecs.
If you need to support the pls format you'll have to write support for it yourself. A pls file is just a text, so you should be able to parse it easily. See the .Pls Wikipedia page.

Related

How to convert video files to H.264 in C#

I've searched without any luck about how this can be done in C#. What i'm trying to archieve is a program that accepts video files and converts them to H.264. Here is an example of a page where you can do this interactively:
http://www.ofoct.com/video-converter/convert-to-h-264-video.html
Question:
How can I in .NET create a program that can do something similar to whats being done from that homepage I shared? Any help or input is highly appreciated, thanks!
EDIT:
The reason i want to do this is because it seems like videos play in both iOS and Android devices when this is done, perhapps there is another way to make sure videos can play in both iOS and Android?
EDIT again:
Lets say i film a Video on a phone Android/iOS, now I'm using a ASP.NET web api that I'd like to convert theese movies to H.264 before storing in Azure, Is this possible? If so, any pointers on how?
There is a wrapper available http://www.ffmpeg-csharp.com/
The main point is that no one is going to write an encoder due to how slow it would be in .NET
Encoding/decoding are provided by the OS, through Direct Show (in the past) or Microsoft Media Foundation. For example, the Microsoft Media Foundation already contains a [H.264 Video Encoder](H.264 Video Encoder).
The SDK is appropriate for C++ and Microsoft hasn't released a wrapper. There are wrapper projects available though, eg. MF.Net, DirectShow.NET, WindowsMedia.NET although it doesn't have any activity since 2012.
There are also similar questions in StackOverflow, that propose other options, like using Microsoft's Encoder, although H.264 support is available only in the Pro version
The only plausable way would be to call out to an encoding application such as ffmpeg.
I'm not sure that this what you need but you can download a nuget called
NR.VideoConverter :> then you can write this code to convert the type of video
like from mp4 to mvo or anything I'm not sure what is h264 but I did find it when I wanted to change my videos so it could help y
var converter = new NReco.VideoConverter.FFMpegConverter();
converter.ConvertMedia(FilePath, FilePath, NReco.VideoConverter.Format.h264);

Playing videos in a C# desktop application

I have a C# desktop application that needs to play video files.
I am currently using the WMPlib, along with Interop.WMPLib and AxInterop.WMPLib.
Using this I can play WMV videos, but I need to be able to play more formats, such as MKV, MP4, AVI, OGV and MOV.
Digging through MSDN I found a comment that said that it only supported the "default codecs", but didn't specify which ones they were... I can't seem to find a list of the supported codecs for this lib online either..
How can I implement multiple format playing? Am I even able to do it? The documentation for this isn't exactly very clear and my googling only got me this far..
thanks in advance!
VLC is a media player that can play just about any unencrypted audio/video file. You can use its functionality as a library in .NET, e.g. with libvlcSharp.

How to convert an wav file to mp3 file in windows phone?(Details Inside)

I've searched for 2 days and I'm not getting how to convert the recorded wav file to an mp3 file; seen many questions even on stack overflow itself but no one gave the solution.
We can't execute System.Diagnostics.Process in Windows Phone.
there are many encoders like Lame, NAudio and so on; but don't know how to use that. .
recently I found example in codeproject named "mp3 Compressor", I tried use those classes but now i'm getting the below error,
Somebody please tell me how to achieve it. .
Why are you trying to do that?
I'm afraid you can't and mustn't do that. at least with tools like those ones you mention. Note, for example, that Zune transform a media before transfering it to the devices.
As an idea, you could upload your file to a service online and make the conversion there. It's more difficult of course and providing you have a host you can use.

video/audio downloader and format convertor

I want to create video downloader using C#. It will download videos from youtube, metacafe and me other websites. It should be able to download audios as well. Also, It need to convert videos to different formats.
Examples are:
http://www.vso-software.fr/products/downloader/vso-downloader.php
http://xviservicethief.sourceforge.net/index.php?action=informatio
Please suggest any third party libraries that I can use or how to do it?
Thanks.
For Youtube, take a look at YoutubeExtractor
Since Flagbug's library is a bit dated, I've written one from the ground-up. It's called libvideo, and you can find it on GitHub here. Please enjoy!

Video Conversion to WMV

A project I am currently working on at work requires the ability to convert videos from other formats to the WMV format. We need to be able to convert virtually any video format that is commonly used to a WMV format. I am looking for a solution allot like On2's flix engine converts other video types to .flv videos. I am aware of the encoder that windows offers, but it has a very limited list of video types that it can convert from. Please let me know if you have any suggestions or opinions, or recommendation of software I can use to do this. I need to be able to do the conversions in batch and I need to be able to do them programmatically with C#.
Have you had a look at ffmpeg?
It seems to be at the core of many open source video conversion utilities, so I imagine you could use it in the scenario you describe.
SUPER, the name is really covering the load!
Well, first you have to be able to decode the file format. You need to set this up with directshow, which is very hard to work with. You can take a look at the mediaportal project for a directshow file player written in C#. Instead of using the video renderer at the end of the directshow graph, you would reencode the video and audio and mux them into a .wmv file. This is a very involved project to get right. You essentially have to mimic a player's ability to play any format and handle failure.
I've been very satisfied using Quick Media Converter.

Categories

Resources