• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

C/C++ program to read an AVI file

Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well i am pretty much new to C++. I need a C/C++ program that can run in Linux to read an AVI file and print out all the attributes of the file ( e.g. frame rate, video width, height, .... ) and separate the video and audio data into two files. If not Please refer me to a site where i can get sample codes.

It would be great if you can respond quicker.

Thanks Sam
author and iconoclast
Posts: 24203
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is actually a pretty tall order. Can't you just use transcode?
Saloon Keeper
Posts: 22503
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
avidemux2 can probably do what you want. Also, if you run mplayer on video, it prints a synopsis of the video program(s) in the stream.

I burn DVDs frequently (ironically, because my NTSC-out video card has copy protection so I can't just output straight video to my wireless TV link after I "tivo" stuff to disk from late-night shows). The primary stream-processing tools I use are mencoder, ffmpeg, and "tovid".
He was expelled for perverse baking experiments. This tiny ad is a model student:
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic