<div dir="ltr">I am using GES to embed a jpeg file into a timeline.  When I view the output video, the color is slightly off.  I believe the problem is related to colorimetry.<div><br></div><div>I attached the graph (as pipeline_graph.svg).<br><div><br></div><div>When I analyze the JPEG file using ffprobe, I can see some properties related to colorimetry.</div><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>ffprobe -show_streams file.jpg</div><div><br></div><div>color_range=pc<br></div><div>        color_space=bt470bg</div><div>      color_transfer=unknown</div><div>   color_primaries=unknown</div><div>  chroma_location=center</div><div><br></div></blockquote>I can see that jpegdec has the following coming from its source pad ...<div><br></div><div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>video/x-raw:<br></div></blockquote></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>   ...</div></blockquote></div><div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>      chroma-site: mpeg2</div></blockquote></div><div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>       colorimetry: 1:4:0:0</div></blockquote></div><div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>     ...</div></blockquote></div></blockquote><div><br></div><div>... where the colorimetry information is basically:</div><div><br></div><div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>GST_VIDEO_COLOR_RANGE_0_255<br>GST_VIDEO_COLOR_MATRIX_BT601  (probably equivalent to bt470bg)<br>GST_VIDEO_TRANSFER_UNKNOWN<br>GST_VIDEO_COLOR_PRIMARIES_UNKNOWN<br></div></blockquote></div><div><br></div><div>I can see in the graph that these caps are exposed all the way through GstUriDecodeBin (within the GESVideoTrack of the GESTimeline).</div><div><br></div><div>But the GstUriDecodeBin passes its output to a GstVideoScale, and the colorimetry data gets removed from the caps at that point.</div><div><br></div><div></div></div><div>My questions are:<br></div><div><ol><li><div><div>Without colorimetry information in the caps, there would be no way for subsequent elements to perform the correct color transformation, right?</div></div><div></div></li><li>Is this a bug in GES?<br></li><li>Can anyone provide hints about fixing this bugin GES?  (If it is a bug.)</li><li>Can anyone recommend a simple workaround?</li></ol></div></div>