HELP!! Video Coding in C++

Nov 19, 2012 at 2:37am
Folks I need your urgent help. I am working on a project and I need to read Video files and play them. I need to do this in Turbo C++. Is this possible? Can somebody please help me with the code? I am new to programming and this is my first assignment. Please help me.
Nov 19, 2012 at 3:43am
I am working on a project and I need to read Video files and play them.
I am new to programming and this is my first assignment.
You have a bit of a problem. You see, these two conditions aren't really compatible. Even a basic video player is an extremely complicated piece of software.

Why do you need to do this? Is it possible to make something else instead?
Nov 19, 2012 at 3:58am
You've got to think about formats, what kind of video file are you trying to open? A simple visual studio application could be made to open files pretty easily, you're just going to need the libraries and headers for the video format you're trying to open. Implement a file loading system, the microsoft website should have documentation on how to do that, and find the files for the video format you're trying to open. Chances are the items you need are out there somewhere, you're just going to have to start digging.
Nov 19, 2012 at 6:48am
Folks I need your urgent help. I am working on a project and I need to read Video files and play them. I need to do this in Turbo C++. Is this possible? Can somebody please help me with the code? I am new to programming and this is my first assignment. Please help me.


Please, tell us more about your problem.

Project :
Type : Console program, or Windows API?
Description? Why do you need to read and play Video files?
Type of video file : avi, or anything else?
Your first assignment?

Hope this helps.
Nov 23, 2012 at 10:07am
Okay folks....here's the thing...am working on an experiment for which I need to load files (.RAW), play them and then write it to the hard disk. At the moment, they have asked to write it for any simple video file...could be .flv,.mp4..etc
At the moment, I am doing it by creating forms...like load a video in windows media player and then playing it.....but I am not sure how to save it disk thru a form. It would be really great if I could do this by creating forms as helps everyone I need to explain to later. In windows API. Thanks.
Nov 23, 2012 at 10:35am
If you're able to read the raw files as images (given that raw essentially means whatever unprocessed state the camera manufacturer feels like and the only hard and fast rule is that there is no standard), there's no problem using a simple tool like ffmpeg and a basic script to just jam all the images into a new video file. Does it have to be a hardmade C++ solution, or can you just use existing tools?
Nov 23, 2012 at 11:17am
Unfortunately yes....need to do it through C++....just came back from the meeting and they explained to me again... Need to code in Visual C++(so I guess it should be GUI)...to get the .RAW file and then play them and then stack it to disk.....There are tools to do it I agree, but they want it to be done in C++.... :(( Please help me.... :(
Nov 23, 2012 at 2:43pm
Help!
Nov 23, 2012 at 2:54pm
Pick a library, get coding.

I recommend FFMPEG. Here's some code. http://cekirdek.pardus.org.tr/~ismail/ffmpeg-docs/api-example_8c-source
Nov 23, 2012 at 2:57pm
I can paste this code in Visual C++ 2010 rite? and I can build and run it? I am really sorry for asking such basic questions... Please forgive me for my ignorance.
Thanks for the code though.
Nov 23, 2012 at 3:05pm
You might need to learn how to use libraries first. If this isn't something you're familiar with, as Helios implied above, you've got a lot of ground to cover.
Last edited on Nov 23, 2012 at 3:06pm
Topic archived. No new replies allowed.