<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb18030">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Hi,<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 07/10/2018 03:25 PM, molo wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:tencent_5285D3FC0F8D92F4598D07DF0C6519280007@qq.com">
      <div>hi,</div>
      <div>   I am sorry to trouble you!</div>
      <div>   We encountered the problem of video picture jam in the
        process of using the spice protocol, and the audio and video out
        of sync problem also appeared in the drag and drop player
        window. When trying to solve the problem, we changed the
        encoding method from mjpeg to h264, but the problem didn't seem
        to improve. After that we tried to encode with hardware, but it
        failed. It seems that kvm can't access NVIDIA's device driver.</div>
      <div>   Two question as follows:</div>
      <div>   1、I want to confirm whether kvm can access the hardware
        driver and perform hardware coding?</div>
      <div>   2、Have you ever encountered video jams, audio and video
        out of sync? How to solve it? Wouldn't it be better to decode on
        the client side via hardware?</div>
    </blockquote>
    <br>
    As Victor mentioned video encoding is using x264enc. if i'm not
    mistaken it's predefined to ultrafast encoding<br>
    which may cause video jams (since it is sw encoding high quality
    encoding will probably be too slow and high cpu<br>
    consumer).<br>
    IIRC audio and video should be synchronized in both cases.<br>
    Client side should use hw decoding in case hw gstreamer decoder
    plugin is available (although some additional<br>
    sw graphical operations may be done by spice after the decoding
    phase)<br>
    <br>
    Snir.<br>
    <br>
    <blockquote type="cite"
      cite="mid:tencent_5285D3FC0F8D92F4598D07DF0C6519280007@qq.com">
      <div>   </div>
      <div>    spice-protocol:0.12.14 release</div>
      <div>    client:our  software based spice-gtk(0.35 release)  </div>
      <div>    spice-server:0.14 release</div>
      <div><br>
      </div>
      <div>Hope that I will receive your reply soon。ths!</div>
      <div>                                                             
                                                                     
        Sincerely:yxh</div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Spice-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Spice-devel@lists.freedesktop.org">Spice-devel@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="https://lists.freedesktop.org/mailman/listinfo/spice-devel">https://lists.freedesktop.org/mailman/listinfo/spice-devel</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>