VideoWriter - How to set SAR (DAR)?

Reading a video with VideoCapture I can retrieve SAR etc. as CAP_PROP_SAR_NUM.

But when saving the modified video with VideoWriter (ffmpeg backend)
I haven’t found a supported property for setting it…

How can I achieve it?

you can’t.

you must use ffmpeg’s libraries yourself.

1 Like