<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 10:23 AM Alexander Sack <<a href="mailto:pisymbol@gmail.com">pisymbol@gmail.com</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 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><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><br></div></div></blockquote><div><br></div><div>I should qualify this a bit - all of the recording, cropping, and encoding is being done in hardware. So GStreamer doesn't have real access to the frame until after the encoder which is the pipeline sample you see above.</div><div><br></div><div>I looked at "aspectratiocrop" but that seems to deal with raw frames pre-encode.<br></div><div><br></div><div>But the fact is the frames out of the encoder are 3040x3040 but the stream created still has a DAR of the original camera resolution and I really want it to be 1:1.</div><div><br></div><div>Thanks!<br></div><div><br></div><div>-aps<br></div></div></div>