Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

C/C++ program to read an AVI file

 
samantha katam
Greenhorn
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
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24208
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is actually a pretty tall order. Can't you just use transcode?
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18094
48
Android Eclipse IDE 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".
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic