Thread: How to render a video file using SDL?

  1. #1
    Registered User
    Join Date
    Jul 2007
    Posts
    2

    Question How to render a video file using SDL?

    Hi all, I have to write a program that can draw lines, shapes, display images and most important can render video files.
    The requirement is that the application must be cross-platform and that means I can not use DirectX to render video files. I think that SDL is good. However, I still don't know how to render a video file (MPEG file, for example) with SDL. I've found some libraries like SMPEG or LibMPEG2 but there is no documents about how to use them.
    Please show me how to use them or let me know if you have other solutions.
    I'm looking forward to your answers.
    Thanks alot.

  2. #2
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,057
    I plugged "smpeg tutorial" into Google and found this: http://www.gamedev.net/community/for...opic_id=348801
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  3. #3
    Registered User Frobozz's Avatar
    Join Date
    Dec 2002
    Posts
    546
    Quote Originally Posted by dwks View Post
    I plugged "smpeg tutorial" into Google and found this: http://www.gamedev.net/community/for...opic_id=348801
    Nice job! You found a site that has links to a tutorial on the subject. Too bad you didn't verify the links - they're dead.

    Edit: Oh and before you bother, the Wayback Machine at the Internet Archive is lacking them as well.

  4. #4
    Registered User
    Join Date
    Jul 2007
    Posts
    2
    I've visited that site, but as Frobozz said, the links are dead. Is there any other website that gives a tutorial for those libraries?

  5. #5
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,057
    I don't know, I just use Google.

    The links may be dead, but there's some code at the end from which you might be able to tell how SMPEG works.

    There's also some source code here: http://www.codase.com/search/display...off=1894+4847+
    (It's part of dumpmpeg.)

    The Wikipedia entry doesn't say much, but here it is: http://en.wikipedia.org/wiki/SMPEG

    How much experience do you have with this sort of programming? I learned how to use SDL_gfx and SDL_ttf just by looking at the examples and the header files, but I had been using the SDL for quite a while before then.

    You could subscribe to the mailing list at the SMPEG home page: http://icculus.org/smpeg/
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  6. #6
    Registered User
    Join Date
    Oct 2006
    Posts
    250
    Nehe has a tutorial on playing AVI files in OpenGL (lesson 35). May be helpful to you.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Newbie homework help
    By fossage in forum C Programming
    Replies: 3
    Last Post: 04-30-2009, 04:27 PM
  2. Problems passing a file pointer to functions
    By smitchell in forum C Programming
    Replies: 4
    Last Post: 09-30-2008, 02:29 PM
  3. Formatting a text file...
    By dagorsul in forum C Programming
    Replies: 12
    Last Post: 05-02-2008, 03:53 AM
  4. multiple file loading. so fruturated! help!
    By psychopath in forum Game Programming
    Replies: 5
    Last Post: 05-09-2005, 05:13 PM
  5. System
    By drdroid in forum C++ Programming
    Replies: 3
    Last Post: 06-28-2002, 10:12 PM