diff options
| author | jhurst <jhurst@cinecert.com> | 2016-12-02 18:17:25 +0000 |
|---|---|---|
| committer | jhurst <> | 2016-12-02 18:17:25 +0000 |
| commit | 6f5cb81faa06f80b07e2d641732b2a8b692e14d8 (patch) | |
| tree | 1fd4ee9f7f8b543609b3c63694e30ebf4fa7e07c /src/as-02-wrap.cpp | |
| parent | 65c102640dea51a709bd4c25ef6ca006edcbee71 (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-x | src/as-02-wrap.cpp | 11 |
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) ) |
