<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hi,<br>
    </p>
    <br>
    <div class="moz-cite-prefix">Le 14/03/2018 à 09:32,
      <a class="moz-txt-link-abbreviated" href="mailto:jeremy.vignelles@dev3i.fr">jeremy.vignelles@dev3i.fr</a> a écrit :<br>
    </div>
    <blockquote type="cite"
      cite="mid:001801d3bb6e$ecd8bc60$c68a3520$@dev3i.fr">
      <pre wrap="">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) :
<a class="moz-txt-link-freetext" href="https://github.com/ZeBobo5/Vlc.DotNet/issues/386">https://github.com/ZeBobo5/Vlc.DotNet/issues/386</a> 
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:
<a class="moz-txt-link-freetext" href="https://github.com/ZeBobo5/Vlc.DotNet/files/1784317/AAA.zip">https://github.com/ZeBobo5/Vlc.DotNet/files/1784317/AAA.zip</a> 

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?</pre>
    </blockquote>
    <br>
    <span style=" color:#800080;">You may find which track is playing
      from the </span><span style=" color:#800080;"><span style="
        color:#800080;">libvlc_MediaPlayerESSelected event. on libvlcpp
        you get this with onESAdded and onESSelected.<br>
        <br>
        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.<br>
        <br>
      </span></span>
    <blockquote type="cite"
      cite="mid:001801d3bb6e$ecd8bc60$c68a3520$@dev3i.fr">
      <pre wrap="">
Thanks for your answers,
Jérémy

_______________________________________________
vlc-devel mailing list
To unsubscribe or modify your subscription options:
<a class="moz-txt-link-freetext" href="https://mailman.videolan.org/listinfo/vlc-devel">https://mailman.videolan.org/listinfo/vlc-devel</a></pre>
    </blockquote>
    <br>
  </body>
</html>