Creating AVI movies with C Code

This is a discussion on Creating AVI movies with C Code within the C Programming forums, part of the General Programming Boards category; Hi, I am endeavouring to make a C program that displays animation based on a set of data. I would ...

  1. #1
    Registered User
    Join Date
    Aug 2004
    Posts
    5

    Creating AVI movies with C Code

    Hi,

    I am endeavouring to make a C program that displays animation based on a set of data. I would like to be able to output this animation into an AVI movie. Is this possible in C, and if so, does anyone have a link to a tutorial that might illustrate this?

    Thanks

    Sara

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,588
    Well the easiest format for generating in code will be BMP format.
    You just 'draw' into a 2D array of pixels then save that lot to a file.

    When you have a series of them, then use something like this
    http://www.am-soft.ru/aviedit.html
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Registered User
    Join Date
    Aug 2004
    Posts
    5
    Thanks for your reply,

    I would really like my program to be able to output AVI files, instead of using 3rd party software. I have found tutorials for C++ and I was just wondering if it's also possible in C.

    Thanks

    Sara

  4. #4
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,588
    Sure it is.

    How about searching for a pre-built library to do some of the work for you.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Explain this C code in english
    By soadlink in forum C Programming
    Replies: 16
    Last Post: 08-31-2006, 12:48 AM
  2. Binary Search Trees Part III
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 10-02-2004, 03:00 PM
  3. True ASM vs. Fake ASM ????
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 7
    Last Post: 04-02-2003, 03:28 AM
  4. Interface Question
    By smog890 in forum C Programming
    Replies: 11
    Last Post: 06-03-2002, 05:06 PM
  5. Replies: 4
    Last Post: 01-15-2002, 11:04 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21