File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,12 @@ IOutputStream& OutputFile::addVideoStream(const VideoCodec& videoDesc)
42
42
stream.codec ->level = videoDesc.getAVCodecContext ().level ;
43
43
stream.codec ->field_order = videoDesc.getAVCodecContext ().field_order ;
44
44
45
+ stream.codec ->colorspace = videoDesc.getAVCodecContext ().colorspace ;
46
+ stream.codec ->color_primaries = videoDesc.getAVCodecContext ().color_primaries ;
47
+ stream.codec ->color_range = videoDesc.getAVCodecContext ().color_range ;
48
+ stream.codec ->color_trc = videoDesc.getAVCodecContext ().color_trc ;
49
+ stream.codec ->chroma_sample_location = videoDesc.getAVCodecContext ().chroma_sample_location ;
50
+
45
51
setOutputStream (stream, videoDesc);
46
52
47
53
// need to set the time_base on the AVCodecContext and the AVStream
Original file line number Diff line number Diff line change @@ -173,9 +173,9 @@ std::string VideoProperties::getColorRange() const
173
173
case AVCOL_RANGE_UNSPECIFIED:
174
174
return " unspecified" ;
175
175
case AVCOL_RANGE_MPEG:
176
- return " Head " ;
176
+ return " Limited " ; // < legal TV range: 16-235 with 8bits
177
177
case AVCOL_RANGE_JPEG:
178
- return " Full" ;
178
+ return " Full" ; // full range: 0-255 with 8bits
179
179
case AVCOL_RANGE_NB:
180
180
return " Not ABI" ;
181
181
default :
You can’t perform that action at this time.
0 commit comments