You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
Merge pull request #371 from SuslikV/lossless-color-format
Use non-subsampled color format for lossless encoding with the h264 encoder
This commit is contained in:
@@ -438,6 +438,7 @@ void FFmpegWriter::SetOption(StreamType stream, std::string name, std::string va
|
||||
av_opt_set_int(c->priv_data, "qp", std::min(std::stoi(value), 51), 0); // 0-51
|
||||
if (std::stoi(value) == 0) {
|
||||
av_opt_set(c->priv_data, "preset", "veryslow", 0);
|
||||
c->pix_fmt = PIX_FMT_YUV444P; // no chroma subsampling
|
||||
}
|
||||
break;
|
||||
case AV_CODEC_ID_HEVC :
|
||||
@@ -498,6 +499,7 @@ void FFmpegWriter::SetOption(StreamType stream, std::string name, std::string va
|
||||
av_opt_set_int(c->priv_data, "crf", std::min(std::stoi(value), 51), 0); // 0-51
|
||||
if (std::stoi(value) == 0) {
|
||||
av_opt_set(c->priv_data, "preset", "veryslow", 0);
|
||||
c->pix_fmt = PIX_FMT_YUV444P; // no chroma subsampling
|
||||
}
|
||||
break;
|
||||
case AV_CODEC_ID_HEVC :
|
||||
|
||||
Reference in New Issue
Block a user