Setting the DAR of a video stream?
Alexander Sack
pisymbol at gmail.com
Thu May 14 17:43:43 UTC 2020
On Thu, May 14, 2020 at 11:54 AM Nicolas Dufresne <nicolas at ndufresne.ca>
wrote:
> Le jeudi 14 mai 2020 à 10:23 -0400, Alexander Sack a écrit :
>
> I have a pipeline that crops a video to a resolution (3040x3040) but I
> noticed that
> when I play back the video the DAR is listed as the original native
> resolution of the camera.
>
>
> DAR is a property of your display HW, we use PAR, or pixel-aspect-ratio=
> in caps.
>
>
> Is there a way to fix/set the display aspect ratio in the final MKV?
>
> So the streams leading to the muxer look like this:
>
> ,, ! 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
>
> I want the DAR to be 1:1 when the video is played back etc.
>
>
> You can try and add the missing field with a acapssetter element, would be
> capssetter caps=video/x-h264,pixel-aspect-ratio=1/1
>
Nicolas, as always, thank you, I will try!
(I feel better it wasn't too obvious)
-aps
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20200514/c47f72da/attachment.htm>
More information about the gstreamer-devel
mailing list