[FFmpeg-devel] [PATCH] write AC-3 metadata
Tue Dec 21 22:56:22 CET 2010
This patch adds writing of AC-3 metadata to the AC-3 encoder.
I chose to use AVOption instead of trying to move the metadata API to
libavcodec because the AC-3 metadata isn't just regular metadata. Even
though it is not audio data, many of the fields actually affect decoding.
Some of the options use integers to set a specific code value rather
than using a float value directly (e.g. mixing levels). It looks a bit
ugly, but I chose to do this because there are only a few valid values.
Trying to determine which value the user wants by comparing floats
seems more complicated. Plus this allows the help text to tell the user
what the valid values are for those options.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 15436 bytes
Desc: not available
More information about the ffmpeg-devel