I use libvlc library version 1.0.6, I can not figure out how to get the aspect ratio of the video being played. Tried to use this method.
@Override public void setSurfaceLayout(int width, int height, int visible_width, int visible_width, int visible_height, int sar_num, int sar_den) } In theory, sar_num and sar_den are the correlation data, but when playing video, the ratio of which is approximately 16: 9 (by eye), gives sar_num=16 , sar_den=15 at the first video and sar_num=1 , sar_den=1 second