<div dir="ltr"><br><div class="gmail_extra">Hi, <br>thanks for answers.<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">Hi,<div class="im"><br>
On 07/01/2013 04:27 AM, Matilde Yanez wrote:<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">
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 to detect<br>
video and start the mjpeg_encoder process.<br>
Thus, the display is slows down.<br>
<br>
</blockquote></div>
What vm are you using? We encountered such behaviour with gnome-shell, due to high frequency updates of regions over the primary surface.</blockquote><div><br></div><div style>On CentOs and Windows VMs, indeed with high frequency updates of regions it considers that is video. Such as large Excel documents or web page with many images. Adding log I can see that spice server starts stream, and does the same treatment as video. </div>
<div> </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"><div class="im">
<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">
With argument streaming-video=off, the CPU consomation goes up.<br>
</blockquote></div>
This is unexpected. On which guest scenarios?</blockquote><div><br></div><div style>When I play a movie, with default "streaming-video" arguments, on windows VM, I am around 60% of CPU consomation of VM's qemu process ("top" command), and with "streaming-video=off" I am around 120%.</div>
<div style>Due to all images that are send to refresh client display?<br> <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">
 </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">
<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", 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 images?<br>
</blockquote></div>
I'm afraid there is no simple answer for this<br>
(1) Why does the driver send frequent updates? Does the rectangles that are being updated really change? Can it be prevented on the driver side?<br>
(2) If the area that is being refreshed doesn't change much, we can apply a quick comparison of sampled regions of 2 successive "frames", and if most of the pixels stay the same, we won't consider those "frames" as part of a video stream. (for such scenarios we would also like to improve and employ the GLZ encoding, or change our caching mechanism, to be applied on slices of bitmaps)</blockquote>
<div><br></div><div style>I think I will investigate on the 2nd point. </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">
<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">
  On what part of the spice-server code can i make changes?<br>
</blockquote></div>
Code that is related to video streams is located in red_worker.c, in routines with "stream|upgrade" in their names.<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>
Thanks,<br>
Matilde.<br>
<br>
</blockquote>
Regards,<br>
Yonit.</blockquote><div><br></div><div style>Matilde. </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 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">
______________________________<u></u>_________________<br>
Spice-devel mailing list<br>
<a href="mailto:Spice-devel@lists.freedesktop.org" target="_blank">Spice-devel@lists.freedesktop.<u></u>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>
<br>
</blockquote>
<br>
</blockquote></div><br></div></div>