summaryrefslogtreecommitdiff
path: root/src/lib/dcp_video.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-06-17 01:08:48 +0200
committerCarl Hetherington <cth@carlh.net>2020-06-17 01:08:48 +0200
commit54ca5a01f0648d2a5101fab0f50b41d8c90612e4 (patch)
treed792cc132ab51f102883d737ac26788427abac19 /src/lib/dcp_video.cc
parent30e262f486c8390b7c9a1a797471082f90adf61b (diff)
Allow more complete control over the libdcp/DCP-o-matic metadata written to various places.
Diffstat (limited to 'src/lib/dcp_video.cc')
-rw-r--r--src/lib/dcp_video.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/dcp_video.cc b/src/lib/dcp_video.cc
index 5416f2ae7..7b06f8cfc 100644
--- a/src/lib/dcp_video.cc
+++ b/src/lib/dcp_video.cc
@@ -115,12 +115,15 @@ DCPVideo::convert_to_xyz (shared_ptr<const PlayerVideo> frame, dcp::NoteHandler
Data
DCPVideo::encode_locally ()
{
+ string const comment = Config::instance()->dcp_j2k_comment();
+
Data enc = compress_j2k (
convert_to_xyz (_frame, boost::bind(&Log::dcp_log, dcpomatic_log.get(), _1, _2)),
_j2k_bandwidth,
_frames_per_second,
_frame->eyes() == EYES_LEFT || _frame->eyes() == EYES_RIGHT,
- _resolution == RESOLUTION_4K
+ _resolution == RESOLUTION_4K,
+ comment.empty() ? "libdcp" : comment
);
switch (_frame->eyes()) {