Setting the DAR of a video stream?
Nicolas Dufresne
nicolas at ndufresne.ca
Thu May 14 15:54:42 UTC 2020
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
> 1-aps
>
>
> _______________________________________________gstreamer-devel mailing
> listgstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20200514/0b839ffb/attachment.htm>
More information about the gstreamer-devel
mailing list