FFmpegSource Documentation

Changes

Usage

FFVideoSource(string source, int track = -1, int seekmode = 1, string timecodes, bool cache = true, string cachefile)
A video source that is frame accurate for most popular containers

FFAudioSource(string source, int track = -1)
Very unreliable attempt at sample accurate seeking in audio files

FFAudioRefSource(string source, int track = -1, string cachefile)
Decodes all audio to a temporary file which ensures that it will always be sample accurate

source: source file

track: track number as seen by the relevant demuxer, starts from 0, -1 means it will pick the first suitable track

seekmode: force how seeking is handled, has no effect on matroska files which always use the equivalent of seekmode=1
0: linear access, the definition of slow but should make some formats "usable"
1: safe normal, bases seeking decisions on the reported keyframe positions
2: unsafe normal, same as 1 but no error will be thrown if the exact destination has to be guessed
3: aggressive, seek in the forward direction even if no closer keyframe is known to exist, only useful for containers where avformat doesn't report keyframes properly and testing

timecodes: file to output timecodes to, if the file exists it will always be overwritten

cache: write indexing information to a file for later use

cachefile: if specified the file to store the index information or raw audio in, if nothing is specified (source).ffcache is used for video and (source).ffracache for audio

Compatibility - Video

Compatibility - Audio

Compiling

zlib from http://www.zlib.net/

FFmpeg svn from http://ffmpeg.mplayerhq.hu/

Required Configuration: ./configure --enable-shared --disable-static --enable-memalign-hack --enable-gpl --enable-swscaler

Suggested Additional Options: --disable-encoders --disable-muxers --enable-small