]> git.sesse.net Git - mlt/commit
Add audio channel mapping.
authorDan Dennedy <dan@dennedy.org>
Sun, 11 Oct 2009 05:58:43 +0000 (22:58 -0700)
committerDan Dennedy <dan@dennedy.org>
Sun, 11 Oct 2009 05:58:43 +0000 (22:58 -0700)
commitf0c3ee4eea5058a8d00d96fbc7d568b9f9ec1c04
tree9b40a1927ff21c115ce0593a95edc9e5da4994ce
parent6c55216b0c4bbc262f71f9892937118fafd7653b
Add audio channel mapping.

This uses meta properties on the producer:
meta.map.audio.<N>.channels=<integer>
meta.map.audio.<N>.start=<integer>
where 8 > N >= 0.
The consumer loops over N, consumes meta...channels and outputs them
from channel meta...start. The channel index starts at 0. For example,
if the first audio track of the clip is stereo English and the second
audio track is stereo French, then this will swap them:
$ melt someclip audio_index=all meta.map.audio.0.channels=2
meta.map.audio.0.start=2 meta.map.audio.1.channels=2
meta.map.audio.1.start=0 -consumer linsys_sdi.

However, the last pair of meta properties in this example are actually
optional. The algorithm outputs the remaining channels at the start
channel you specify. But since getting an unspecified property yields 0,
the last meta properties is unnecessary as well.
src/modules/linsys/consumer_SDIstream.c