GIDForums  

Go Back   GIDForums > Computer Programming Forums > C++ Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 19-Jul-2005, 04:36
shvalb
 
Posts: n/a
Smile

Avi Creation


Hi.

I'm looking for a good tutorial that will help me to understand how to use C++ api to create an avi file.

Thanks.
  #2  
Old 19-Jul-2005, 17:58
Jeremiah Jeremiah is offline
New Member
 
Join Date: Jul 2005
Posts: 11
Jeremiah is on a distinguished road
Do you know much about video? Do you know the difference between i frames and p frames. PAL? NTSC? Frame groups? Inverse telecine?

I am actually working on audio/video sychronization right now and let me tell you. Things can get pretty tricky sometimes. And this is just editing, we're talking about here.

I don't mean to discourage you, but if you're justing messing around, I highly recommend you start off with wave files. If you can hex edit, you can pretty much handle that with ease. Video is complicated, mostly because of renderers and codecs. But pure avi by itself, is just bitmaps laced together,
with sound samples at each frame.
I think it may be more fun for you, if you do as much as you can by yourself

You'll probably want a hex editor by the way

Here are some basic steps for video
--this is before your delve into avi

1) write a program that read and render bitmaps
2) write a program that can stream bitmaps into an animation

--familiarize yourself with avi

3)if you have an avi recorder, use it. make simple little videos. change the resolution, see what happens. change the sound quality. change the picture.
change the fps
4)learn the parameters, somewhere in the header of the file i do believe. (as far as i know the frames in an avi have no connection with each other.)
5)write a program that isolates video from sound(demuxer in other words)
6)write a program that plays both the video and the sound. tadaa!!!
7)write a program that captures video. if you don't want to bother with capture drivers and all that, then trying using the printscreen then copy the contents of the clipboard and dump it into a bmp.(atleast 24fps, but you'll probably want to make that adjustable anyway.)

If you can actually make an avi player or editor with just the information above, I salute you. Because to be honest, I have'nt made a functional one yet. I know more about video than C, sadly. Which is pretty bad considering, I'm not even studying to become a video editor.
 
 

Recent GIDBlogPython ebook by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
multiple file creation with fopen? robin C Programming Language 6 16-Aug-2006 23:38
Free cPanel hosting. Up to 600mb & 12GIGS of bandwidth. INSTANT SIGNUP!! & Forum Host Raizan Free Web Hosting 5 06-Aug-2006 13:36
AVI creation tutorial shvalb Graphics Forum 1 30-Jul-2005 19:33
menu creation kumaran MS Visual C++ / MFC Forum 13 28-Feb-2005 04:32

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 06:47.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.