I want convert video from .wmv to .mp4 in c#. I was search around google and the result is ffmpeg library. But i don't know use it in c#. Please show me solution or source demo for this problem.
There is a number of .NET wrapper libraries for ffmpeg. A quick search gives these results:
Video Converter for .NET
fflib.net
AVBlocks
Another approach may be simply calling the ffmpeg executable from within your application and providing the proper command line arguments. Here is an example
Also, your question could be framed a bit better. Check out how to ask a question
Related
I am building a program(in C#) and I need to download the audio from a youtube video(using the URL). I found two libraries which allow me to do it:
YotubeExtractor and libvideo(Also known as VideoLibrary), but I don't know how to use them, I mean I tried using their documentation but non of them worked.
Do you know another way which I can download or maybe explain me how to do this?
Thank you and have a nice day!
Don't use other people's code unless it's large and popular or your only option, I recommend, so that you both learn more and know how it works, as well as know how to maintain it if it breaks.
Retrieve the page using standard .NET functionality, parse out the HTML to find the video URL, download it using the same standard functionality, and then convert it to MP3 as a separate logical unit of your software.
For converting to MP3 you may well want to use someone else's library or call an external program like FFMPEG since that's not as trivial as parsing a webpage.
I'd like to be able to write some code so that given a name and a video, I can personalize the video with that person's name in it.
Eg, I want to send my family's Christmas message which is a video of us doing silly things and with a video overlay that says Merry Christmas, !
Ideally, I'd like to do this in C#.NET but am open to other technologies if they exist.
Many thanks.
The ffmpeg utility (https://www.ffmpeg.org) can do this type of thing - you should be able to find examples if you Google text or video overlays with ffmpeg:
Overlaying images on a video:
https://video.stackexchange.com/a/12111
https://superuser.com/a/683696
Overlaying text:
https://stackoverflow.com/a/10919953/334402
https://superuser.com/a/701206 (includes a watermark)
The above are all done on the command line. To include them into your c# program you can:
invoke the command line from your program
use a c# wrapper around the ffmpeg command line functionality
Directly use the libraries that ffmpeg uses
The best compromise may be the wrapper option. These exist for different languages and environments, but some examples for c#:
http://www.codeproject.com/Articles/774093/Another-FFmpeg-exe-Csharp-Wrapper
http://www.ffmpeg-csharp.com (this one is not free so check the licence...)
I am working on a project which is related to videos.
I need to cut part of a video (I want to retrieve that part of video which lies from 00:30:00 to 00:40:00).
I have searched about it and found it can be done by using ffmpeg (This is a command line tool which is used to edit and convert videos.) But I don't want to use any tool.
Is it possible to do this with code, rather then with another tool?
If what you actually want is to build the capability to cut samples out of existing video material into a .net program the splicer project might be what you're looking for.
Good day everyone and happy holidays.
I'm trying to create a "simple" program that allows me to create a list of video files (Youtube video's to be precise) that are then run through by my program and converted any given format to pure MP3 audio. For this purpose I'm trying to use the BASS.dll and well it isn't going so well.
I was wondering if anyone has used BASS to convert from one audio format to another?
Or is there another library better suited for this?
If I understand correctly then the input files are YouTube videos which are FLV or F4V (MP4). Does BASS even support those formats?
Depending on your requirements, the easiest way might be to use Process.Start with ffmpeg to perform the extraction/conversion. Windows builds here: http://sourceforge.net/projects/mplayer-win32/files/FFmpeg/
hi
I am developing a video capture application using C#.net. i captured
video through webcam and saved it as a JPEG images then i want to make a
wmv file with those images. how can i do that what are the basic steps needed for that can any body help
I am working on this myself. I have found two ways that may be possible - both require the purchase of an outside library.
The first one looks to be the easiest but costs the most, although it will allow you to use it for free you will just have to deal with a pop up telling you to purchase the library: http://bytescout.com/products/developer/imagetovideosdk/imagetovideosdk_convert_jpg_to_video.html
The other involves using Microsoft Encoder 4. I am still working on this one. You can get the free version here: http://www.microsoft.com/download/en/details.aspx?id=18974
C# doesn't natively support much in the way of sound or video so outside reference assemblies seem to be a necessity.
Right now that is the best help I can offer until I figure it out.