" --j2k-bandwidth <Mbit/s> J2K bandwidth in Mbit/s\n"
" --left-eye next piece of content is for the left eye\n"
" --right-eye next piece of content is for the right eye\n"
- " --channel <channel> next piece of content should be mapped to audio channel L, R, C, Lfe, Ls or Rs\n"
+ " --channel <channel> next piece of content should be mapped to audio channel L, R, C, Lfe, Ls, Rs, BsL, BsR, HI, VI\n"
" --gain next piece of content should have the given audio gain (in dB)\n"
" --cpl <id> CPL ID to use from the next piece of content (which is a DCP)\n"
" --kdm <file> KDM for next piece of content\n";
return dcp::Channel::LS;
} else if (channel == "Rs") {
return dcp::Channel::RS;
+ } else if (channel == "BsL") {
+ return dcp::Channel::BSL;
+ } else if (channel == "BsR") {
+ return dcp::Channel::BSR;
+ } else if (channel == "HI") {
+ return dcp::Channel::HI;
+ } else if (channel == "VI") {
+ return dcp::Channel::VI;
} else {
return {};
}
film->set_j2k_bandwidth (*cc.j2k_bandwidth);
}
+ int channels = 6;
+ for (auto cli_content: cc.content) {
+ if (cli_content.channel) {
+ channels = std::max(channels, static_cast<int>(*cli_content.channel) + 1);
+ }
+ }
+ if (channels % 1) {
+ ++channels;
+ }
+
+ film->set_audio_channels(channels);
+
for (auto cli_content: cc.content) {
auto const can = boost::filesystem::canonical (cli_content.path);
vector<shared_ptr<Content>> film_content_list;