<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, May 14, 2020 at 11:54 AM Nicolas Dufresne <<a href="mailto:nicolas@ndufresne.ca">nicolas@ndufresne.ca</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div 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:0px 0px 0px 0.8ex;border-left:2px solid rgb(114,159,207);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:0px 0px 0px 0.8ex;border-left:2px solid rgb(114,159,207);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></blockquote><div><br></div><div>Nicolas, as always, thank you, I will try!</div><div><br></div><div>(I feel better it wasn't too obvious)<br></div><div><br></div><div>-aps<br></div></div></div>