phenest said: But this has nothing to do with the files if other players don't exhibit this behaviour. Also, as you have explained, this is because gstreamer is favouring one ratio over the other (container or stream). If other players don't have this 'issue', then clearly there is a better way to do it. Gstreamer should follow this, as the current behaviour is undesirable. If something is not consistent, then it is a bug.
Good luck finding someone to fix it.
The aspect ratio of the stream is determined by the codec. The aspect ratio of the container is determined by the muxer. One of these goofed up and put a wrong value into the file. Maybe the tools required you to specify aspect ratios manually, so you were the one who goofed up. Anyway, for some reason, the wrong value happened to end up where GStreamer looks for it. That's why you think there is a bug in GStreamer.
Now here's what you don't understand:
Someone else may be using a different codec and a different muxer. In that case the wrong aspect ratio may end up where VLC looks for it, so that the video will show up wrong in VLC but correct in GStreamer.
Conclusion: This "bug" is unfixable.
If there are conflicting aspect ratios in a video file, there is no way for media players to tell which one is correct. Either choice has a 50% chance of being wrong. If you create video files, you are responsible for making the aspect ratio values match. If you find that difficult, rescale the video to PAR 1:1 and use a container such as AVI which does not have an aspect ratio field.