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.
Related
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
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...)
Is there a way to edit videos using c# without using a media library eg. Microsoft Expression Encoder etc.
Just need to be able to cut out unwanted parts or insert other videos into a specified time of the original video.
Can I edit the raw video file by perhaps converting it into a binary file and then cutting/pasting the code?
Most video formats have a container and a codec--that might be a good place to start
http://www.pitivi.org/manual/codecscontainers.html
If one were interested in implementing a program modifying video sans libraries a good place to start might be looking at the existing open source video libraries(eg FFMPEG https://www.ffmpeg.org/download.html ) as a reference
No there is no way to edit a video without using anything that would be considered a "library". You either must write your "library" or use a existing 3rd party one.
The only thing that could possibly not be thought of as a "library" is a full external tool that does what you want and your code would just be a front end GUI for it. For example writing a GUI front end for FFmpeg.
I'm building a video system, and have came across a problem of accessing a video held in a remote location. Now predicament is that I don't want to mess around with the zip file by extracting the data, this would take too long from a user perspective and would rather be able to open video file directly from within side the zip. My question is, is this possible? The ability to open a file is not something I've found within the DotNetZip library.
The only solution I've found is pointing VideoLAN at the zip file and playing it from there. However, doing this programmatically is something I'm massively struggling with, through the VideoLan DotNet for WinForm & WPF C# plugin and it's lack of examples. Just wondering is there any alternative means?
Why dont you use the VLC ActiveX Directly ,just import the AxVlc.dll to you're project ,than you can select the VLC Plugin from Toolbox in VS (VLC Plugin v2 prefered).
Than you can do something vlc.playlist.add("FileName",Null,""); than use vlc.playlist.play(); version's under 0.9.9 works with Loop ,new version's you should build the Loop Function by you're self.
What's the reason of compressing video files? They are already compressed, and far better than zip can do.
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.