2 Copyright (C) 2012 Carl Hetherington <cth@carlh.net>
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 /** @file src/make_mxf_job.cc
21 * @brief A job that creates a MXF file from some data.
25 #include "make_mxf_job.h"
27 #include "film_state.h"
31 using namespace boost;
34 * @brief A job that creates a MXF file from some data.
37 MakeMXFJob::MakeMXFJob (shared_ptr<const FilmState> s, shared_ptr<const Options> o, Log* l, Type t)
38 : ShellCommandJob (s, o, l)
45 MakeMXFJob::name () const
50 s << "Make video MXF for " << _fs->name;
53 s << "Make audio MXF for " << _fs->name;
63 set_progress_unknown ();
65 /* We round for DCP: not sure if this is right */
66 float fps = rintf (_fs->frames_per_second);
69 c << "opendcp_mxf -r " << fps << " -i ";
72 c << "\"" << _opt->frame_out_path () << "\" -o \"" << _fs->file ("video.mxf") << "\"";
75 c << "\"" << _opt->multichannel_audio_out_path () << "\" -o \"" << _fs->file ("audio.mxf") << "\"";