Page 1 of 1

any way to get REAL aspect-ratio?

Posted: 30 Oct 2017 08:24
by r21514
libvlc_video_get_aspect_ratio returns only aspect-ratio if previously set by user or libvlc_video_set_aspect_ratio

libvlc_video_get_size returns width/height without considering aspect-ratio flags in the stream.
Example - for typical SD MPEG-TS stream result is 720x576, even if it actualy is displayed as 768x576 or 1024x576.

So is there any way to get actual width/height or aspect ratio, maybe through libvlccore functions?

Re: any way to get REAL aspect-ratio?

Posted: 30 Oct 2017 17:16
by RĂ©mi Denis-Courmont
libvlc_media_tracks_get()