any way to get REAL aspect-ratio?

This forum is about all development around libVLC.
r21514
Blank Cone
Blank Cone
Posts: 50
Joined: 17 Sep 2009 08:45

any way to get REAL aspect-ratio?

Postby r21514 » 30 Oct 2017 08:24

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?

Rémi Denis-Courmont
Developer
Developer
Posts: 15135
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: any way to get REAL aspect-ratio?

Postby Rémi Denis-Courmont » 30 Oct 2017 17:16

libvlc_media_tracks_get()
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 10 guests