<div dir="ltr">I use ffmpeg command directly to decode hevc file to yuv. There is also a thread       taking a whole cpu core until the decode process end.<br></div><div class="gmail_extra"><br><div class="gmail_quote">2017-07-10 10:39 GMT+08:00 张晶 <span dir="ltr"><<a href="mailto:zhangjing.lm@gmail.com" target="_blank">zhangjing.lm@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <p>Hi all,</p>
    <p>I'm trying to use h264_cuvid and hevc_cuvid decoders. <br>
    </p>
    <p>There is a cuda thread taking a whole cpu core, like some kind of
      busy waiting. The stack looks like:</p>
    <blockquote>
      <p>Thread 1 (process 9104):<br>
        #0  0x00007f6697702e60 in ?? () from /usr/lib64/libcuda.so.1<br>
        #1  0x00007f66976f639d in ?? () from /usr/lib64/libcuda.so.1<br>
        #2  0x00007f66977038a8 in ?? () from /usr/lib64/libcuda.so.1<br>
        #3  0x00007f672a63583d in start_thread () from
        /lib64/libpthread.so.0<br>
        #4  0x00007f6729a00fcd in clone () from /lib64/libc.so.6</p>
    </blockquote>
    <p>If I create multiple decoders in a proccess, only one cuda thread
      occupy a single cpu core.</p>
    <p>If I create a decoder in one proccess, each proccess has a thread
      taking a whole cpu core.</p>
    <p>Even when I delete the decoder, this thread remains. Only when I
      kill the proccess, this thread quit.<br>
    </p>
    <p>I have test several versions of ffmpeg: 3.3.1, 3.3.2, git snap
      shot  of 2017-07-07,</p>
    <p>And test two nvidia cards: quadro k1200, gtx 1060.</p>
    <p>This situation remains the same.</p>
    <p>Is this a problem? Are there some work arounds?<br>
    </p>
    <p><br>
    </p>
    <p>Jing Zhang<br>
    </p>
  </div>

</blockquote></div><br></div>