Skip to content

FFMPEG 0.11-4.4/LibAV 0.8-11 example application with byte exact reading

License

Notifications You must be signed in to change notification settings

illuusio/ffmpeg-example

Repository files navigation

FFmpeg-example

FFmpeg 0.11-4.0 or Libav 0.8-11 example application with byte exact reading

FFmpeg/Libav example program

This program is example how to use FFmpeg or Libav library with Byte exact reading (Audio only!). Tested with 'gcc'. Currently it only outputs 'out-for.pcm' and 'out-rev.pcm' files that are in Stereo 16-bit raw audio files (s16) that can be opened with Audacity audio editor or similar which imports raw PCM audio.

Compiling with CMake

You need to have FFmpeg or Libav installed. You need CMake and pkg-config.

cmake .

If everything goes fine

make

Compiling with autotools

You need to have FFmpeg or Libav installed. You need have GNU autotools, pkg-config and libtools installed.

./autogen.sh
./configure

If everything goes fine

make

Compiling with scons

You need to have FFmpeg or Libav installed. You need have SCons and pkg-config.

scons

Compiling with script

You need to have FFmpeg or Libav installed. You need have pkg-config.

./compile-pkgconfig.sh

Running application

Currently tested files are OGG/Vorbis,MP3 and MP4 (also acc).

./FFmpeg-example-bin audio-file

You get as output 'out-for.pcm' and 'out-rev.pcm' files that contains played forward byte exact and reverse played file (as audio is normal!)