I am newbie to c#. I have functionality of concatenating two or more video files using directshow.net. I have seen the documentation form http://msdn.microsoft.com/en-us/library/windows/desktop/dd375143(v=vs.85).aspx but i didn't understand how to start. I will be having two video files in the server in some folder. I want to combine those two video files and save as single video file. How can i do that using directshow.net. I am struct at this. Any help is appreciated.
DES can work good, but keep in mind it has been discontinued. Maybe this page describing how to append two wav files can help you get started. See the Time Line Model page on MSDN for an overview.
Related
I am making an app in which I want to create pdfs out of the images I store in the Isolated storage. Many opensource libraries are available for solving the purpose but unfortunately none expresses their comparability with windows phone 8.
then I came across this link
the post explains about writing the pdf file by making the pdf header. But, this only creates a pdf with some text written in it. I, now want to add some images in it. How shall I proceed for the same?
I have found the answer myself. These are the links which would be very much helpful if you are looking to make a pff
with text and images without the usage of opensource libraries.
http://www.codeproject.com/Articles/18623/Add-Images-and-Textboxes-to-PDF
http://www.codeproject.com/Articles/7627/PDF-Library-for-creating-PDF-with-tables-and-text
http://en.wikipedia.org/wiki/Portable_Document_Format#Imaging%5Fmodel
Understanding the PDF file format – how are images stored
http://blog.idrsolutions.com/2010/04/understanding-the-pdf-file-format-how-are-images-stored/
Check the above links. They might be helpful.
Is there any API available by which I can embed my own images in a any Video file at certain points in the Video or between certain video frames ?
If not, I would like to study the formats of the files, e.g. study the format of an mp4 file and create the API myself. Please point me to any sites that reveals the MP4 files format that can be easily understood.
Please do not tell me the Applications already doing it. I want to do it myself through programming.
Any help is greatly appreciated.
Thanks!
Check this site Here It might help you and its free..
also check this One, but it not free.
I have two audio files that I need to merge on top of each other. Each mp3 is one side of a conversation, so in theory when I merge these two files together I should hear a complete conversation. Has anybody ever accomplished this in .Net?
I've seen examples of people concatenating audio files together, but I repeat, I don't want to do that. I want to merge/mix two audio tracks so the are on the same audio file.
Any help would be appreciated.
I am looking at the NAudio library. Actual code answers would be very helpful as well.
This should get you started with nAudio.
Convert the mp3's to wav32*
Mix the 2 wav (check this code)
Convert the mixed wav to mp3*
*the samples/discussion at nAudio shows how to convert between formats
I ended up using Sox to do the merge.
http://sox.sourceforge.net/
sox.exe -m fileone.mp3 filetwo.mp3 output.mp3
Sox doesn't have support for mp3s so you need to download this version which has those references compiled into the executable. Additionally you can search for the dll and the latest should pick them up.
http://www.codeproject.com/KB/aspnet/Compiling_SOX_with_Lame.aspx
Use a Process class to call this from .Net.
I have searched for this issue, for at least one week and I did not find something helpful.
The question is that I want to grab a frame from a video uploaded using C#. I used some APIs but they only grab frame from avi, mpeg and mpg files but when the client uploads an m4v, 3gp, mov, m2v or mp4 file, the respective APIs found on the web do not support retrieving the frames from these types of videos.
Am I missing something or is there an API that can handle retrieving frames from all types of videos in C#.
Thanks in advance
Solutions to this will vary per video encoding type. You will be hard-pressed to find one system to support them all.
You might consider executing a call to ffmpeg to generate the output you desire as it supports a very large variety of formats. See this question for a few .NET-based ffmpeg wrappers that may be helpful.
I did read the following posts:
Pause/Resume Upload in C#
resume uploads using HTTP?
But didn't got a perfect solution to my problem.
In the above posts, one of the answers says "client and server needs to identify the file some how i suggest the use of a Guid so the server knows what file to append the extra data too." Request you to plz visit the first link of the aobve and find that answer. This answer is all about streaming. Can someone plz provide links using which I can build such kind of code?
In these posts one of the answer said "you can send several small file pieces and rebuild them server side"...HOW?
Can't I use something like checksum etc to detect how much part is uploaded and how much more needs to be and append it to that file? If yes, how?
Streams are a fairly fundemental concept in working with files on the .NET platform (as it is in Java, C and other languages). You should start by reading about them and how to use them. See the Stream class on MSDN.
HOW? By using streaming - you stream parts of the file, in small chunks (using an offset into the file and the size of chunk). Again, see Stream documentation.
You could, but checksums of different files may be the same - with a GUID the chance of a collision is pretty small compared to checksums.