Thread: Video Manipulation with C

  1. #1
    Registered User
    Join Date
    Dec 2010
    Posts
    2

    Question Video Manipulation with C

    Hello Everyone,

    I am beginner with C and wanted to write a program to handle video files (like image extraction; sampling) and conversion between file formats.

    Could anyone advise on how to proceed?

    Thanks

  2. #2
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    You'll have to learn the basics of C, before you can tackle any project like this. I suggest you google up some tutorials on the Web, and also get a good book for reference purposes, at least.

    You'll need to understand arrays, how they're created and passed to other functions as pointers, for sure.

    You need to know the file format's that you want to work with, quite well. You can google for that info.

    This is a rather daunting task for a beginner in C to tackle, imo. Be patient. Joining a forum dedicated to video programming would surely be a big plus, if you can find one.

  3. #3
    Registered User
    Join Date
    Dec 2007
    Posts
    2,675
    Hello Everyone,

    I'm taking an introductory biology course and want to perform a neurosurgical procedure (like tumor extraction; lobotomy) on my kid sister. Can anyone advise on to proceed?

    Thanks

  4. #4
    Registered User
    Join Date
    Dec 2010
    Posts
    2

    Smile

    You'll have to learn the basics of C, before you can tackle any project like this. I suggest you google up some tutorials on the Web, and also get a good book for reference purposes, at least.

    You'll need to understand arrays, how they're created and passed to other functions as pointers, for sure.

    This is a rather daunting task for a beginner in C to tackle, imo. Be patient. Joining a forum dedicated to video programming would surely be a big plus, if you can find one.

    Thanks a lot for a supportive reply Adak, but I am familiar with the basics of C; arrays , pointers, structures; I did write quite a few programs in C++ but all of them were simple practice ones. It is the part about the file formats you mentioned that I need help with. I need to start with a simple video file. If you can give me a good starting point I 'd be much obliged. I am googling stuff as I look for help on this forums as well.

    I know there exist libraries to do this job for me but want to make my own simple library.

    I am sorry I should have given more information about my programming skills: C++, VB.NET, PHP.

    Thanks again.

    @rags_to_riches, very funny.

  5. #5
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    I found 461 usenet groups which included the title "video", but there were none with "video programming" in the title.

    Aside from Google and Wikipedia searches, (as well as the other search engines), try searching through sourcenet.forge for any open source project that may deal with video formats. Google probably wouldn't list them since they're very low in popularity.

    Good to hear that you do have more experience.

  6. #6
    Registered User
    Join Date
    Oct 2006
    Posts
    250
    Quote Originally Posted by Adak View Post
    Joining a forum dedicated to video programming would surely be a big plus, if you can find one.
    What about doom9?
    iMalc: Your compiler doesn't accept misspellings and bad syntax, so why should we?
    justin777: I have no idea what you are talking about sorry, I use a laptop and there is no ascii eject or something

  7. #7
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by mkace View Post
    I need to start with a simple video file.
    Trust me on this... there is no such thing as a simple video file.

    I've been working C at the WinAPI level for a few years now, done some console stuff that's in regular use, etc. I've looked at what you need to do to simply show a video (DirectX, MCI, etc.) and said "pass"...

    It's not that it can't be learned. But it is definately the stuff of very advanced programmers.
    I don't want to discourage you. What I'm suggesting is that you don't skip the intermediate steps between "practice exercises" and "some of the most convoluted code possible".

  8. #8
    Registered User carrotcake1029's Avatar
    Join Date
    Apr 2008
    Posts
    404
    Quote Originally Posted by MWAAAHAAA View Post
    What about doom9?
    /vote

    Great community and some extremely smart professionals that lurk.

  9. #9
    Registered User
    Join Date
    Sep 2010
    Posts
    25
    If you could get the still out of the video somehow, then maybe it'd be plausible to use some system commands to edit the still, once it's already out of the video file. I think that would be a do-able beginner project. You could use SIPS or maybe ImageMagick, for example, that way. The C program would just be a gloss of what the user would type into the Terminal on their own. It'd be closer to a scripting project, and would be plausible to get something like that done on your own since it'd be exploiting already existing commands on the system.

    As a tip, maybe you could store some images in an organized way by using the file commands like fopen to hold the images in various stages of development, instead of having to pick through them pixel by pixel.

    Beyond that, I guess you'd have to start getting into the real deal.
    Last edited by agxphoto; 12-11-2010 at 03:40 PM.

  10. #10
    Registered User hellork's Avatar
    Join Date
    Nov 2010
    Posts
    39
    I have used the development library for ffmpeg with some success. The .MOV container is pretty simple, I think. Just some basic atoms to store audio and video. But if I were to do this again, I would look into using open formats, e.g. raw, flac, matroska, or WebM. Speaking of which, has anybody used it?

    Google Introduces the WebM Video Format

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem With My Box
    By HaVoX in forum Tech Board
    Replies: 9
    Last Post: 10-15-2005, 07:38 AM
  2. video convert..."hack" on a genesis
    By Shadow in forum Tech Board
    Replies: 3
    Last Post: 12-06-2003, 01:30 PM
  3. Codec Bitrates?
    By gvector1 in forum C# Programming
    Replies: 2
    Last Post: 06-16-2003, 08:39 AM
  4. OpenGL .dll vs video card dll
    By Silvercord in forum Game Programming
    Replies: 14
    Last Post: 02-12-2003, 07:57 PM

Tags for this Thread