Video Tools - Tipps and Tricks

Here you can find some maybe helpful C++ example programs and bash commands to manipulate (cut, resize, convert, ...) videos under linux.

FFmpeg C/C++ Example Code

You can download my C/C++ source code example software ffmpegReader (v2009-11-11 GPL) which uses the current SVN ffmpeg version to read, seek, and process single frames from a videofile. The source code can be used as an example if you want to write your own interface. You need to download and install first FFmpeg SVN version and libargtable2. It also contains a README and INSTALL instruction file.

To try the compiled example program just run the ffmpeg info option:

This will return only some maybe usefull information about the length, the streams, frame numbers, fps, etc. Output example:

  Input #0, mpegvideo, from 'inputfile.mpg':
    Duration: 00:00:03.0, start: 0.000000, bitrate: 1228 kb/s
    Stream #0.0: Video: mpeg1video, yuv420p, 336x312, 1228 kb/s, 30.00 fps(r)
    Full Duration: 3.019600
    Total Frames: 90  
Bash Scripts

Philippe Dreuw
Last modified: Thu May 19 17:47:24 CEST 2011 Disclaimer. Created Wed Dec 22 18:04:32 CET 2004

Valid HTML 4.01! xemacs logo debian logo