summaryrefslogtreecommitdiff
path: root/src/as-02-wrap.cpp
diff options
context:
space:
mode:
authorjhurst <jhurst@cinecert.com>2016-12-02 18:17:25 +0000
committerjhurst <>2016-12-02 18:17:25 +0000
commit6f5cb81faa06f80b07e2d641732b2a8b692e14d8 (patch)
tree1fd4ee9f7f8b543609b3c63694e30ebf4fa7e07c /src/as-02-wrap.cpp
parent65c102640dea51a709bd4c25ef6ca006edcbee71 (diff)
o The NamespaceURI property of AS-02 timed text files has been exposed in the API
and via as-02-wrap -P. This behavior replaces previous bad behavior, but puts responsibility for selecting the correct value on the operator.
Diffstat (limited to 'src/as-02-wrap.cpp')
-rwxr-xr-xsrc/as-02-wrap.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/as-02-wrap.cpp b/src/as-02-wrap.cpp
index 98ff21e..50f2665 100755
--- a/src/as-02-wrap.cpp
+++ b/src/as-02-wrap.cpp
@@ -150,6 +150,7 @@ Options:\n\
-M - Do not create HMAC values when writing\n\
-m <expr> - Write MCA labels using <expr>. Example:\n\
51(L,R,C,LFE,Ls,Rs,),HI,VIN\n\
+ -P <string> - Set NamespaceURI property when creating timed text MXF\n\
-p <ul> - Set broadcast profile\n\
-r <n>/<d> - Edit Rate of the output file. 24/1 is the default\n\
-R - Indicates RGB image essence (default)\n\
@@ -228,7 +229,7 @@ public:
//
MXF::LineMapPair line_map;
- std::string out_file; //
+ std::string out_file, profile_name; //
//
bool set_video_line_map(const std::string& arg)
@@ -426,6 +427,11 @@ public:
}
break;
+ case 'P':
+ TEST_EXTRA_ARG(i, 'P');
+ profile_name = argv[i];
+ break;
+
case 'p':
TEST_EXTRA_ARG(i, 'p');
if ( ! picture_coding.DecodeHex(argv[i]) )
@@ -888,7 +894,8 @@ write_timed_text_file(CommandOptions& Options)
Kumu::FortunaRNG RNG;
// set up essence parser
- Result_t result = Parser.OpenRead(Options.filenames.front().c_str());
+ Result_t result = Parser.OpenRead(Options.filenames.front().c_str(),
+ Options.profile_name);
// set up MXF writer
if ( ASDCP_SUCCESS(result) )