How can I get the DAR of a video?
Posted: 02 Nov 2010 13:03
When I use
it returns an empty string.
But I would like to know the Display Aspect Ratio of the file, so I can decode it to another size than the original, compensating for the aspect ratio while decoding already. For example PAL 16:9 has 720x576 should be displayed on a square pixel screen as 720x405.
What am I doing wrong, is there another place or function where I should get this information?
Thanks
Code: Select all
libvlc_video_get_aspect_ratio( mediaPlayer )
But I would like to know the Display Aspect Ratio of the file, so I can decode it to another size than the original, compensating for the aspect ratio while decoding already. For example PAL 16:9 has 720x576 should be displayed on a square pixel screen as 720x405.
What am I doing wrong, is there another place or function where I should get this information?
Thanks