video/audio downloader and format convertor - c#

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!

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.

C# Line In Capture

I wanna record audio from line in (not from a microphone), is it the same way as microphone?
I found some information from the net, but seem all about using microphone.......
thank you.
You may take a look at .NET Voice Recorder application which uses NAudio. And here's a nice article about it.

How can I create an H.264 encoded movie from a set of images in c#?

I have been doing a lot of searching today for C# libraries which will allow me to create H.264 encoded video files. Does anyone know if any such libraries or 3rd party components exist?
Use ffmpeg. I suggest to run a ffmpeg process directly, like in this sample: http://jasonjano.wordpress.com/2010/02/09/a-simple-c-wrapper-for-ffmpeg/
While the sample doesn't deal with the operation you need, I suggest to adapt it to your needs.
ffmpeg-sharp is probably a good starting point.

C# capture screen to small video files

Does someone knows how can I capture my computer screen to a video file? I need the file to be as small as possible. I'm using C#. Third party components also welcome.
TY
I think you are referring to creating a screen cast, if so this is the best I have used.
http://www.techsmith.com/camtasia.asp
It can produce many formats including FLV which can be configured to small file size.
You could take a look at ScapLib, and see if that suits your needs.
Directly capturing video from the desktop in .net does not seem to be a simple task. Here's an article from c-sharpcorner that might help you out: Link.

Categories

Resources