diff options
author | compn <compn@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-11-08 00:28:28 +0000 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2010-11-14 12:23:42 +0200 |
commit | 13902c2967a0d146f24443dfdc14010accc2b2da (patch) | |
tree | 3bd0d3b6c1bd9fa180a1d34d8e92712b5f963c31 /DOCS/tech | |
parent | cd66de0b8abb4187ae2242ea9279ed30fb75ee7f (diff) | |
download | mpv-13902c2967a0d146f24443dfdc14010accc2b2da.tar.bz2 mpv-13902c2967a0d146f24443dfdc14010accc2b2da.tar.xz |
DOCS/tech/codecs.conf.txt: document how to add ffmpeg codecs
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32604 b3059339-0415-0410-9bf9-f77b7e298cf2
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32615 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'DOCS/tech')
-rw-r--r-- | DOCS/tech/codecs.conf.txt | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/DOCS/tech/codecs.conf.txt b/DOCS/tech/codecs.conf.txt index bc24c73030..9f1eefa9e2 100644 --- a/DOCS/tech/codecs.conf.txt +++ b/DOCS/tech/codecs.conf.txt @@ -167,4 +167,44 @@ Apple's "rle " codec). The "flags" keywords identifies any additional abilities of this codec. Currently, seekable is the only supported flag. + +Adding FFmpeg Codecs +------------------- +example codec: + +videocodec ffmdec + info "FFmpeg Sony PlayStation MDEC (Motion DECoder)" + status working + fourcc MDEC ; internal MPlayer FourCC + driver ffmpeg + dll mdec + out YV12 + +The "videocodec" name should start with ff to differentiate it from other +libraries or binary codecs. + +The "dll" name comes from the codec source file or the libavcodec/allcodecs.c +file. + +The "out" colorspace can be found in the codec source file in the PIX_FMT +struct. Note that some codecs may have several pix_fmt structs. +The pix_fmt can be converted to the codecs.conf "out" format by reading +the fmt_conversion.c file. + +libmpdemux/mp_taglists.c +-------------- +Sometimes the lavf demuxer will not pass on a fourcc (mostly video game +formats or other containers that do not support isom/riff tags). You will have +to make one based on the codec_id listed in the codec source file. + +Note that it is a good idea to mark any fourcc you create as +' ; internal MPlayer FourCC'. In case another codec uses that fourcc, +you can easily change the internal one. Also this will stop other projects +from thinking of the internal tag as a real fourcc found in the wild. + +libmpdemux/demuxer.c +-------------- +Some audio codecs require a parser, you can see which ones do +by reading the parsers section in libavcodec/allcodecs.c. + EOF |