[vlc-devel] [question] anamorphic video using vmem
jeremy.vignelles at dev3i.fr
Sun Mar 18 21:53:22 CET 2018
Thanks Steve for your reply.
I did get the track Id as you suggested, and retrieved the correct track.
However the SAR that I get is 589824:414720, which reduces to 64:45, which is coherent with that log:
> main debug: original format sz 720x576, of (0,0), vsz 720x576, 4cc DX11, sar 64:45, msk r0x0 g0x0 b0x0
However, another log, in the media description reads:
> mkv debug: | | | | + display width=1024
> mkv debug: | | | | + display height=576
Which is the correct ratio (16:9)
VLC seems to take that aspect ratio correctly, but I don't know where to find it with libvlc. Am I missing something? Did I misunderstand the definition of what the SAR is?
> Le 14 mars 2018 à 10:49, Steve Lhomme <robux4 at ycbcr.xyz> a écrit :
> Le 14/03/2018 à 09:32, jeremy.vignelles at dev3i.fr a écrit :
> > Hello,
> > Following the question I asked last week on IRC :
> > I have a user of Vlc.DotNet that has an anamorphic video (4:3 image buffer
> > that should be displayed as 16:9) :
> > https://github.com/ZeBobo5/Vlc.DotNet/issues/386
> > The WPF control he's using uses libvlc_video_set_format_callbacks and
> > libvlc_video_set_callbacks to render the video, but it's displayed as 4:3 .
> > Here is the sample file:
> > https://github.com/ZeBobo5/Vlc.DotNet/files/1784317/AAA.zip
> > As per j-b suggestion, I used `libvlc_media_get_codec_description` to get
> > the description of the first Video track I found. The codec is "mpgv",
> > description : "MPEG-1/2 Video".
> > j-b also suggested that I could get the the video aspect ratio by getting
> > the video track. Is it safe to assume that there is only one video track?
> > Otherwise, how can I get the video track that is currently playing?
> You may find which track is playing from the libvlc_MediaPlayerESSelected event. on libvlcpp you get this with onESAdded and onESSelected.
> So file formats do have many video tracks, the first one may not even be the default one. So it's better to keep track of which track (ID) is playing.
> > Thanks for your answers,
> > Jérémy
> > _______________________________________________
> > vlc-devel mailing list
> > To unsubscribe or modify your subscription options:
> > https://mailman.videolan.org/listinfo/vlc-devel
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
More information about the vlc-devel