Convert video to image

This is a discussion on Convert video to image within the C Programming forums, part of the General Programming Boards category; Hello, I'm not new to C but I am new to this concept. I wish to convert a video file ...

  1. #1
    Registered User
    Join Date
    Nov 2007
    Posts
    4

    Convert video to image

    Hello,

    I'm not new to C but I am new to this concept.

    I wish to convert a video file (.vob) to an image file using C.

    No idea where to start so any help greatly appreciated.

  2. #2
    Captain Crash brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,239
    Quote Originally Posted by rwcradio View Post
    I wish to convert a video file (.vob) to an image file using C.

    No idea where to start so any help greatly appreciated.
    You'll get far better responses asking in a video-specific forum. C is only incidental to your question.

    Kind of like asking a forum dedicated to the discussion of the human hand, about how to bake a cake. Yeah, you use your hands when making a cake, but that doesn't mean we know the specifics

  3. #3
    Registered User kroiz's Avatar
    Join Date
    Jun 2007
    Posts
    116
    When I am making a home DVD from my video camera movies I use tovid which converts my movies and extract images from them to create a nice menu.
    I know it extract the images with Image Magick.
    so you might want to look into that.

  4. #4
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    To extract one still-frame from an MPEG, you need code that can read MPEG format. The format itself is loosely described in Wikipedia:
    http://en.wikipedia.org/wiki/MPEG-2

    Maybe some of this free software will work as a base for you:
    http://www.mpeg.org/MPEG/video/mssg-...-software.html
    http://bmrc.berkeley.edu/courseware/...ignment/2.html
    [I have no idea if those are good resources or not - they were just on the first page of the 2.2 million hits that google found]

    It is quite an undertaking to do this, that's for sure - it is far from trivial to decode MPEG.

    --
    Mats
    Last edited by matsp; 11-19-2007 at 01:46 PM.
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  5. #5
    Registered User
    Join Date
    Nov 2007
    Posts
    4
    Quote Originally Posted by brewbuck View Post
    You'll get far better responses asking in a video-specific forum. C is only incidental to your question.

    Kind of like asking a forum dedicated to the discussion of the human hand, about how to bake a cake. Yeah, you use your hands when making a cake, but that doesn't mean we know the specifics
    You're probably right although I had to ask.

    I need to use C (possibly C++ or another language) to fulfill this task though.

  6. #6
    Registered User
    Join Date
    Nov 2007
    Posts
    4
    Quote Originally Posted by kroiz View Post
    When I am making a home DVD from my video camera movies I use tovid which converts my movies and extract images from them to create a nice menu.
    I know it extract the images with Image Magick.
    so you might want to look into that.
    Thanks but I need to write my own software.

  7. #7
    Registered User
    Join Date
    Nov 2007
    Posts
    4
    Quote Originally Posted by matsp View Post
    To extract one still-frame from an MPEG, you need code that can read MPEG format. The format itself is loosely described in Wikipedia:
    http://en.wikipedia.org/wiki/MPEG-2

    Maybe some of this free software will work as a base for you:
    http://www.mpeg.org/MPEG/video/mssg-...-software.html
    http://bmrc.berkeley.edu/courseware/...ignment/2.html
    [I have no idea if those are good resources or not - they were just on the first page of the 2.2 million hits that google found]

    It is quite an undertaking to do this, that's for sure - it is far from trivial to decode MPEG.

    --
    Mats
    Thanks for the reply. Format to be converted from is VOB but nearly sure it is easily converted to MPEG. Certainly have my work cut out for me, but thats a good thing.

  8. #8
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,537
    VOB is MPEG-2 with a special DVD-ish container format.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem reading tiff image files?
    By compz in forum C++ Programming
    Replies: 9
    Last Post: 10-30-2009, 04:17 AM
  2. how to convert a bitmap image to a jpg image file using C++?
    By nomer in forum Windows Programming
    Replies: 4
    Last Post: 06-04-2006, 07:40 PM
  3. Hi, how to convert a grayscale image into 8 bit image?
    By Alexanderbinich in forum C++ Programming
    Replies: 3
    Last Post: 03-15-2005, 06:50 PM
  4. Replies: 6
    Last Post: 03-03-2005, 02:52 AM
  5. video convert..."hack" on a genesis
    By Shadow in forum Tech Board
    Replies: 3
    Last Post: 12-06-2003, 12:30 PM

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