Skip to content

Commit

Permalink
Fix Color Discrepancies In Ut Video Convert To Edit-friendly Option
Browse files Browse the repository at this point in the history
  • Loading branch information
bmatherly committed Mar 9, 2024
1 parent adaabee commit e216788
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/transcoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,9 @@ void Transcoder::convertProducer(Mlt::Producer *producer, TranscodeDialog &dialo
}
if (dialog.get709Convert()) {
args << "-colorspace" << "bt709" << "-color_primaries" << "bt709" << "-color_trc" << "bt709";
} else if (dialog.format() == 2 && producer->get_int("meta.media.colorspace") == 709) {
// Work around a limitation that FFMpeg does not pass colorspace for utvideo
args << "-colorspace" << "bt709";
}

args << "-y" << filename;
Expand Down

0 comments on commit e216788

Please sign in to comment.