<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">Ignoring levels is obviously not safe. That's why VLC does not use that flag.<br><br><div class="gmail_quote">Le 20 février 2019 13:07:42 GMT+02:00, Manoj Bonda <mbonda@nvidia.com> a écrit :<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="WordSection1">
<p class="MsoNormal">Hi, <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">VLC with VDPAU is falling back to s/w decoding for vc1 simple and Main profile clips.
<o:p></o:p></p>
<p class="MsoNormal">i.e. with cmd ./vlc --avcodec-hw=vdpau /home/bondamanoj/VideoClips/Amazing_Caves_720.wmv<o:p></o:p></p>
<p class="MsoNormal">and error is reported as, "Failed setup for format vdpau: hwaccel initialisation returned error"<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">This failure is due to level check in function ff_vdpau_common_init() in ffmpeg/libavcodec/vdpau.c
<o:p></o:p></p>
<p class="MsoNormal">The level is not populated in ffmpeg for vc1 simple and main profile clips.<o:p></o:p></p>
<p class="MsoNormal">As the level will be communicated via transport layer, as per section D.4 Syntax (Informative) from vc1 spec<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-family:"Courier New"">“The Simple and Main profiles are communicated to the decoder by the syntax element PROFILE as part of the<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-family:"Courier New"">initialization metadata as described in Annex J.1.1. The Advanced profile is signaled to the decoder in the bitstream,<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-family:"Courier New"">by the syntax element PROFILE, which is included in the sequence header as described in Section 6.1.1.<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-family:"Courier New"">The levels for Simple and Main profile are to be communicated to the decoder by the Transport Layer. The levels for<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-family:"Courier New"">Advanced profile are indicated in the syntax element LEVEL, which is included in the sequence header, as described in Section 6.1.2.<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-family:"Courier New"">The following codes are used to signal the levels in this profile:”<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><o:p> </o:p></p>
<p class="MsoNormal">I see, ffmpeg sets 'AV_HWACCEL_FLAG_IGNORE_LEVEL' flag. Hence, the level is initialized to zero<o:p></o:p></p>
<p class="MsoNormal">while using ffmpeg. This lets standalone ffmpeg application and Mplayer to decode the clip with VDPAU hw acceleration.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I observed that VLC is not setting AV_HWACCEL_FLAG_IGNORE_LEVEL flag, level gets initialized to -99,<o:p></o:p></p>
<p class="MsoNormal">and eventually fails the check in ff_vdpau_common_init() resulting in the failure reported above.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Attaching the patch for setting AV_HWACCEL_FLAG_IGNORE_LEVEL flag in VLC as well.<o:p></o:p></p>
<p class="MsoNormal">I am curious what others think about this issue.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks,<o:p></o:p></p>
<p class="MsoNormal">ManojGuptaBonda.<o:p></o:p></p>
</div>
<div>
<hr>
</div>
<div>This email message is for the sole use of the intended recipient(s) and may
contain confidential information. Any unauthorized review, use, disclosure
or distribution is prohibited. If you are not the intended recipient,
please contact the sender by reply email and destroy all copies of the original
message. </div>
<div>
<hr>
</div>
</blockquote></div><br>-- <br>Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.</body></html>