Hi all,
I need to write some code that opens an AVI file and rewrite an AVI file compressed (i.e. with MJPEG). I tried using GraphEdt to plan the code as suggested in this forum, but I cannot figure out how to translate a graphedt project into some code (vb or c#). Can anyone help on this? do you have any code sample (other that the one included in the DS code)?
many thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
DirectShow is a relativelly low-level API. You must make some efforts to understand how it works and how to use it. Don't espect us to provide you the code you need. We wrote samples to help peoples to understand this technology. Also, the DirectShow's MSDN section is fairly complete, so read it.
What you want to do is a classic transcoding scenario that can be splited in two parts : The reading (and decoding) of the source media file and the writing (and the compression) of the destination file. There is plenty of web resources that explain how to write them...
When you will have a more specific problem, feel free to post a message her.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi all,
I need to write some code that opens an AVI file and rewrite an AVI file compressed (i.e. with MJPEG). I tried using GraphEdt to plan the code as suggested in this forum, but I cannot figure out how to translate a graphedt project into some code (vb or c#). Can anyone help on this? do you have any code sample (other that the one included in the DS code)?
many thanks
DirectShow is a relativelly low-level API. You must make some efforts to understand how it works and how to use it. Don't espect us to provide you the code you need. We wrote samples to help peoples to understand this technology. Also, the DirectShow's MSDN section is fairly complete, so read it.
What you want to do is a classic transcoding scenario that can be splited in two parts : The reading (and decoding) of the source media file and the writing (and the compression) of the destination file. There is plenty of web resources that explain how to write them...
When you will have a more specific problem, feel free to post a message her.
Also, this book is a must read, when you start working with DirectShow : https://www.amazon.com/Programming-Microsoft-DirectShow-Digital-Television/dp/0735618216