Click here to Skip to main content
15,912,897 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

My name is Harish. I am doing my project work.

I couldn't get a start on my project work. So someone could guide me, how to start:
here is my project description:
I need to develop a player using directshow. language is win32. I should need to play MPEG4 content. While playing I need to get the cpu utilization.
This I have to use direct show.

Could someone help me in this programming.

Thanks
Harish.
Posted

How does 'help' differ from us doing your project for you ? Who set you this project ? You're using Win32 C++, not MFC ? I assume this is homework, I can't see why anyone in the real world would choose to do that.

To play mpeg4 content, you need to buy/install an mpeg4 codec. To play videos is trivial and there's tons of articles on this site on how it's done, although most probably use MFC, I'm sure they are easy to convert.
 
Share this answer
 
As I am new to this Directshow. I am not sure where to and how to start.
Ok, If I use MFC, is that possible to decode the MPEG4 content??
 
Share this answer
 
Comments
Christian Graus 10-Aug-11 1:22am    
Please don't push answer to ask questions. MPEG4 content is copyrighted AFAIK. Even then, it's POSSIBLE to do it in C, but either way, it's a complex task, you don't come across as someone who would stand a chance of doing it. Is this paid work or homework ?
Its the homework.... But I need to start as soon as possible..
 
Share this answer
 
Comments
Christian Graus 10-Aug-11 2:19am    
Again, please don't push 'answer' to ask questions. See how I keep pushing 'comment' ? Surely your teacher knows that you need a codec to play MPEG4 content ? Why are you doing a class in C ? You know that very few people use it, and that's been the case for a long, long time. What are you hoping to use it for ? Your teacher is who you need to talk to about how to start your project. Perhaps he's given you this task b/c no sane person would choose to write what you've been asked to write in the real world, so he can google for people asking for help with playing MPEG4 files in C, so he can find out who is asking other people to do their work for them ? Either way, your media player will ultimately just be Windows Media Player wrapped up through DirectX. It will play MPEG4s if you have a codec installed. Odds are low that you are capable of writing your own decoder in a reasonable amount of time. I think your teacher is making stuff up or you have misunderstood the task at hand.
harvmvm 10-Aug-11 2:26am    
OK got it...
I can go with player wrapped up through DirectX, where I should be able to provde functionality like, ram usage, cpu utilaztion through this applicataion.
I think you should just install the DirectX SDK and check the different examples available.

You can get this SDK freely available in the net. Search for DirectX SDK.
 
Share this answer
 
Comments
harvmvm 10-Aug-11 7:10am    
I have done that, and came to know that I should use direct show.
But coming to coding part, I am unaware of how to start.. from where,etc..
Christian Graus 10-Aug-11 22:17pm    
If you have no idea how to do this, then it's sort of an insane project for you to be given, don't you think ?
Have a look at DShowPlayer[^]

The SDK includes a debug tool called GraphEdit - you can build a dshow graph with that and then understand what code you're going to have to write to achieve it

You're going to have to understand FilterGraphs and how to use COM - there are no short cuts
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900