How do I add many videos programmatically into one video? - c#

I have 1000 videos in MPEG4 H.264 AAC format. They are named 1.mp4, 2.mp5, ..., 1000.mp5. How can I add them programmatically in order into one big video? I suppose I need a video editor that supports a scripting language. I found AviSynth which might be a possibility. I would love to hear your suggestions.
(I am on Windows7 or Linux Mint.)

Probably can be done on Mac using QuickTime Pro and Automator. QuickTime will combine the videos into one. Automator can be used to add all files in a directory into one video in Quicktime.

Bogdan provided the following link: http://trac.ffmpeg.org/wiki/How%20to%20concatenate%20(join,%20merge)%20media%20files. This program works like a charm (on Linux).

Related

How to add a Video Encoder to windows to be recognized by DirectShow

i don't understand somethings about video encoder if you could help me clarify:
where the encoders exist in the system?
how's directshow recognize them?
what's the encoders supported by directshows and how to add them?
thank you for reading my questions, and for any help.
See Choosing a Compression Filter:
To enumerate the video or audio compressors available on the user's system, do the following: [...]
There is also a code snippet there to enumerate and instantiate the compressors/encoders.
You tagged the question as c# and not directshow.net, so you might also need to look at DirectShow.NET for accessing DirectShow API from managed code. DirectShow.NET also provides you with samples.
A very usefull tool for things like that is GraphEdit (part of DirectShow SDK and can be downloaded for example here: http://www.videohelp.com/tools/GraphEdit)
If you click Graph -> Insert Filters you see a list of all installed filters and can see their file location.
To register a filter you can use (in command prompt): regsvr32 filter.dll (As described here: How to use/install custom Directshow filter)

Windows Phone 8 Video to MP3 converter

I did some research on converting video's to audio (MP3) on Windows Phone, but I can't find any converter or even basic functionality on the Windows Phone core to do this. Is this even possible?
You have a NuGet package named: MediaToolkit which is available with the NuGet package manager and also here: https://www.nuget.org/packages/MediaToolkit/
The library exposes features which convert video files into various other video formats. Grab images from videos. Perform a range of other audio / video transcoding tasks, even cutting / splitting videos.
To find the source code / code examples, visit GitHub: https://github.com/AydinAdn/MediaToolkit
To download it straight in to your project, use the Project Manager Console for NuGet: PM> Install-Package MediaToolkit.
There are no classes inside the Windows Phone 8 framework, the best thing to do is to go with an external library (like the one #Gaurav Deochakke) posted.
I've looked at the supported Win32 and COM APIs inside the WP8 framework, there are lots of API's that can help you (dis)playing media files, but none of them will help you either capture the desired audio or convert the video file to an audio file.
Although you might want to look at IAudioCaptureClient and IAudioClient (less documented), they might be able to help you with capturing the output of a file that has audio (a video for example). The only downside of this will be that you will have to loop through the video per second.
As stated above I'd go with a simple library to complete your task, but if you have time and you are interested in creating the solution yourself, I'd go with the links I posted.

Retrieve some part of video without using software. Is it possible?

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.

Video Streaming using C#

I'm starting a new project to play the video on my LAN, actually if I enter an IP on my browser I got a m3u file with the following info:
http://192.168.1.101:31344
So, if I open that file Im able to see the video using VLC Media Player. However in the school, I proposed to implement my own video player. I know there are some options, like DirectX, Silverlight, etc.. so I'm looking for recommendations on which technology use so any advice is welcome.
I don't have any restriction, the only one is to use C# on VS 2010 Professional.
Thanks,
m0dest0.
Well, I've used Silverlight with an embedded MediaElement and just set the source to the address of the video file. It was simple to use. I wouldn't call it "writing your own video player", but it should do.
There's plenty of examples in the link I gave you.

how to convert sequence of jpeg image into video format?

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.

Categories