The problem is that after applying flip-method to nvvidconv, the output file will have correctly rotated and resized frames (I think so), but the display_aspect_ratio value returned from the ffprobe command still states that it is 16:9 - which I guess should also be rotated? Because of this, the video is stretched in many video players that use this value.
Another problem is that the orientation value from the input file is also preserved in the output one. As far as I know, there is no autorotate like method/property that I can use to get rid of it and rotate the video. Therefore is there something that I can do to remove video orientation/rotation metadata in the GStreamer pipeline?
Right now, I’m using FFmpeg after the GStreamer pipeline is finished and fixing those metadata, but this is tricky and, I think, redundant. Can I achieve something similar using GStreamer?
That is correct, and this is indeed what I did there. I rotate the width and height values every time the flip-method is set to 1 and 3.
The problem is with an aspect ratio value that can be read using the ffprobe command. The returned aspect_ratio value is 16:9 after rotating. Therefore multiple players are stretching the video.
So my question is whether it is possible to rotate (or even drop) the aspect_ratio value, which is returned from the ffprobe command in GStreamer? Same for the orientation value.