<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">2013/7/2 Yonit Halperin <span dir="ltr"><<a href="mailto:yhalperi@redhat.com" target="_blank">yhalperi@redhat.com</a>></span><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div class="im">On 07/02/2013 10:22 AM, Matilde Yanez wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
Hi,<br>
thanks for answers.<br>
<br>
2013/7/2 Yonit Halperin <<a href="mailto:yhalperi@redhat.com" target="_blank">yhalperi@redhat.com</a> <mailto:<a href="mailto:yhalperi@redhat.com" target="_blank">yhalperi@redhat.com</a>>><div class="im"><br>

<br>
    Hi,<br>
<br>
    On 07/01/2013 04:27 AM, Matilde Yanez wrote:<br>
<br>
        Hello,<br>
<br>
        I need some information about video detection, on VM.<br>
        When I am on web pages, or documents, with images the VM seems<br>
        to detect<br>
        video and start the mjpeg_encoder process.<br>
        Thus, the display is slows down.<br>
<br>
    What vm are you using? We encountered such behaviour with<br>
    gnome-shell, due to high frequency updates of regions over the<br>
    primary surface.<br>
<br>
<br>
On CentOs and Windows VMs, indeed with high frequency updates of regions<br>
it considers that is video. Such as large Excel documents or web page<br>
with many images. Adding log I can see that spice server starts stream,<br>
and does the same treatment as video.<br>
</div></blockquote>
Have you used the default setting of streaming-video (streaming-video=filter), or did you use streaming-video=on? Can you send me an example document and the Microsoft Office version you are using?</blockquote><div><br></div>
<div style>Using the default setting of streaming-video, scroling on "<a href="http://www.lemonde.fr/">http://www.lemonde.fr/</a>" for exemple.</div><div style>The Microsoft version is 14.0.4730.1010 (Office Professional Plus 2010).</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"> </blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div class="im"><br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
        With argument streaming-video=off, the CPU consomation goes up.<br>
<br>
    This is unexpected. On which guest scenarios?<br>
<br>
<br>
When I play a movie, with default "streaming-video" arguments, on<br>
windows VM, I am around 60% of CPU consomation of VM's qemu process<br>
("top" command), and with "streaming-video=off" I am around 120%.<br>
Due to all images that are send to refresh client display?<br>
<br>
</blockquote></div>
Ok, it is expected for movie playback. I thought you meant that it happens for the document browsing.<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
        Increasing the value of "RED_STREAM_FRAMES_START___<u></u>CONDITION",<div class="im"><br>
        does not<br>
        launch the video detection on these documents and keep fluidity on<br>
        videos and documents<br>
<br>
        How can i make difference between real video, and documents with<br>
        images?<br>
<br>
    I'm afraid there is no simple answer for this<br>
    (1) Why does the driver send frequent updates? Does the rectangles<br>
    that are being updated really change? Can it be prevented on the<br>
    driver side?<br>
    (2) If the area that is being refreshed doesn't change much, we can<br>
    apply a quick comparison of sampled regions of 2 successive<br>
    "frames", and if most of the pixels stay the same, we won't consider<br>
    those "frames" as part of a video stream. (for such scenarios we<br>
    would also like to improve and employ the GLZ encoding, or change<br>
    our caching mechanism, to be applied on slices of bitmaps)<br>
<br>
<br>
I think I will investigate on the 2nd point.<br>
<br>
           On what part of the spice-server code can i make changes?<br>
<br>
    Code that is related to video streams is located in red_worker.c, in<br>
    routines with "stream|upgrade" in their names.<br>
<br>
<br>
        Thanks,<br>
        Matilde.<br>
<br>
    Regards,<br>
    Yonit.<br>
<br>
<br>
Matilde.<br>
<br></div>
        ______________________________<u></u>___________________<br>
        Spice-devel mailing list<br>
        Spice-devel@lists.freedesktop.<u></u>__org<br>
        <mailto:<a href="mailto:Spice-devel@lists.freedesktop.org" target="_blank">Spice-devel@lists.<u></u>freedesktop.org</a>><br>
        <a href="http://lists.freedesktop.org/__mailman/listinfo/spice-devel" target="_blank">http://lists.freedesktop.org/_<u></u>_mailman/listinfo/spice-devel</a><br>
        <<a href="http://lists.freedesktop.org/mailman/listinfo/spice-devel" target="_blank">http://lists.freedesktop.org/<u></u>mailman/listinfo/spice-devel</a>><br>
<br>
<br>
<br>
</blockquote>
<br>
</blockquote></div><br></div></div>