<html dir="ltr"><head></head><body style="text-align:left; direction:ltr;"><div>Le jeudi 14 mai 2020 à 10:23 -0400, Alexander Sack a écrit :</div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><div>I have a pipeline that crops a video to a resolution (3040x3040) but I noticed that</div><div>when I play back the video the DAR is listed as the original native resolution of the camera.</div></div></div></blockquote><div><br></div><div>DAR is a property of your display HW, we use PAR, or pixel-aspect-ratio= in caps.</div><div><br></div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><div><br></div><div>Is there a way to fix/set the display aspect ratio in the final MKV?<br></div><div><br></div><div>So the streams leading to the muxer look like this:</div><div><br></div><div>,, ! video/x-h264, width=(int)3040, height=(int)3040, stream-format=(string)byte-stream ! h264parse ! muxer.video_0 ! matroskamux name=muxer streamable=true ! filesink name=fsink location=whatevermp4</div><div><br></div><div>I want the DAR to be 1:1 when the video is played back etc.<br></div></div></div></blockquote><div><br></div><div>You can try and add the missing field with a acapssetter element, would be capssetter caps=video/x-h264,pixel-aspect-ratio=1/1</div><div><br></div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><div><br></div><div>1-aps<br></div></div></div>
<pre>_______________________________________________</pre><pre>gstreamer-devel mailing list</pre><a href="mailto:gstreamer-devel@lists.freedesktop.org"><pre>gstreamer-devel@lists.freedesktop.org</pre></a><pre><br></pre><a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel"><pre>https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</pre></a><pre><br></pre></blockquote></body></html>