Hello Jérémy,<br><br>On Tue, Jun 21, 2011 at 1:16 PM, Jérémy <span dir="ltr"><<a href="mailto:jeremy.lauraire@gmail.com">jeremy.lauraire@gmail.com</a>></span> wrote:<br><blockquote style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;" class="gmail_quote">
Take advantage of CPU in decoding MPEG2 / H264<br></blockquote><blockquote style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;" class="gmail_quote"><div>I am actually writing an app that uses libavcodec to take fully advantage of my<br>

NVidia graphic card (GeForce ENGTX470) to decode MPEG2 / H264 videos... <br></div></blockquote>You probably means GPU nor CPU.<br><br><blockquote style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;" class="gmail_quote">

The app work well but the CPU is still used and no work seems to be done by the<br>
grahique card.... :/<br></blockquote>Graphic card should render the video isn't it ;)?<br><br><blockquote style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;" class="gmail_quote">


Here is part of my code :<br></blockquote>The main problem is that most GPU-accelerated video decoding APIs strongly interleaved with rendering decoded result.<br>Using FFmpeg you can use some system/vendor specific APIs but you will be obligated to adopt the decoding routines<br>
and your <b><i>rendering routines</i></b> to display the results (their will NOT be available as in generic CPU-based decoding case!).<br><br>Sorry I can not help you with code because I don't want to use ugly system/vendor APIs in my player<br>
but you can look on some other open-source applications to fish ideas.<br>As I remember mythtv can use vdpau within FFmpeg.<br><span style="color:rgb(192, 192, 192)">-----------------------------------------------</span><br style="color:rgb(192, 192, 192)">
<span style="color:rgb(192, 192, 192)">Kirill Gavrilov,</span><br style="color:rgb(192, 192, 192)"><span style="color:rgb(192, 192, 192)">Software designer.</span><br><a href="mailto:kirill@sview.ru" target="_blank"></a><br>