<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Frediano Ziglio <<a href="mailto:freddy77@gmail.com">freddy77@gmail.com</a>> 于2021年2月4日周四 下午9:47写道:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Il giorno gio 4 feb 2021 alle ore 12:56 lx <<a href="mailto:lxlenovostar@gmail.com" target="_blank">lxlenovostar@gmail.com</a>> ha scritto:<br>
><br>
><br>
><br>
> Uri Lublin <<a href="mailto:uril@redhat.com" target="_blank">uril@redhat.com</a>> 于2021年2月2日周二 下午10:32写道:<br>
>><br>
>> On 2/2/21 2:50 PM, lx wrote:<br>
>> ><br>
>> ><br>
>> > Uri Lublin <<a href="mailto:uril@redhat.com" target="_blank">uril@redhat.com</a> <mailto:<a href="mailto:uril@redhat.com" target="_blank">uril@redhat.com</a>>> 于2021年1月31日周<br>
>> > 日 下午9:48写道:<br>
>> ><br>
>> >     On 1/30/21 1:25 PM, lx wrote:<br>
>> >      > Frediano Ziglio <<a href="mailto:freddy77@gmail.com" target="_blank">freddy77@gmail.com</a> <mailto:<a href="mailto:freddy77@gmail.com" target="_blank">freddy77@gmail.com</a>>><br>
>> >     于2021年1月29日周五 下午6:39写道:<br>
>> >      ><br>
>> >      >> Il giorno gio 28 gen 2021 alle ore 01:45 lx<br>
>> >     <<a href="mailto:lxlenovostar@gmail.com" target="_blank">lxlenovostar@gmail.com</a> <mailto:<a href="mailto:lxlenovostar@gmail.com" target="_blank">lxlenovostar@gmail.com</a>>> ha<br>
>> >      >> scritto:<br>
>> >      >>><br>
>> >      >>><br>
>> >      >>> Uri Lublin <<a href="mailto:uril@redhat.com" target="_blank">uril@redhat.com</a> <mailto:<a href="mailto:uril@redhat.com" target="_blank">uril@redhat.com</a>>> 于2021年1<br>
>> >     月27日周三 下午11:47写道:<br>
>> >      >>>><br>
>> >      >>>> On 1/27/21 4:22 AM, lx wrote:<br>
>> >      >>>>> Hi all:<br>
>> >      >>>>>          If I redirect USB camera to virtual machine, I think<br>
>> >     we send<br>
>> >      >>>>> original URB to virtual machine by USB channel.<br>
>> >      >>>>> Is this understanding correct? If we want to improve the user<br>
>> >      >> experience,<br>
>> >      >>>>> we need to compress URB data?<br>
>> >      >>>><br>
>> >      >>>> Hi,<br>
>> >      >>>><br>
>> >      >>>> If you build with lz4 enabled (both client and server),<br>
>> >      >>>> then it should use lz4 to compress the data.<br>
>> >      >>>><br>
>> >      >>>> There is no functionality to create<br>
>> >      >>>> a video stream out of raw data.<br>
>> >      >>>><br>
>> >      >>>> Can the USB camera be configured to send a compress stream?<br>
>> >      >>>><br>
>> >      >>>> Uri.<br>
>> >      >>>><br>
>> >      >>><br>
>> >      >>>    Hi:<br>
>> >      >>>     USB camera can support MJPG and YUV.   I think H264 is<br>
>> >     better than<br>
>> >      >> MJPG. So Can we<br>
>> >      >>> let spice support H264 ? Is this feasible?<br>
>> >      >>><br>
>> >      >><br>
>> >      >> This is independent from SPICE, if the camera send compressed data<br>
>> >      >> already SPICE will just<br>
>> >      >> forward compressed data in whatever format is in USB.<br>
>> >      >> If the camera supports MJPEG and YUV choose MJPEG, YUV is not<br>
>> >      >> compressed (just a different color<br>
>> >      >> space than RGB, often taking less bits but still not compressed).<br>
>> >      >><br>
>> >      >> Frediano<br>
>> >      >><br>
>> >      ><br>
>> >      > If the camera chooses YUV, can we encode it to H264 in SPICE? Is this<br>
>> >      > feasible?<br>
>> ><br>
>> >     Currently, SPICE does not do look at USB data.<br>
>> ><br>
>> ><br>
>> > Hi:<br>
>> ><br>
>> > What do you mean spice just forward USB protocol data?<br>
>><br>
>> SPICE does look at USB headers, configurations, etc.<br>
>><br>
>> I meant that SPICE does not look at data that is<br>
>> being transferred. So for example, it does<br>
>> not know if the data coming from the camera is YUV,<br>
>> RGB, MJPEG or other.<br>
>><br>
>> To answer your question above more clearly:<br>
>> Currently it's not possible to H264-encode the<br>
>> YUV data coming from the camera.<br>
>> It is feasible to add code that does it.<br>
>> If possible, it's best if the camera sends an encoded video stream.<br>
>><br>
>> Uri.<br>
>><br>
> Hi all:<br>
>         I know ICA/RDP is better than spice, when they redirect the USB  camera devices. This is beacuse<br>
>  ICA/RDP encode video stream, so the effect is so good? Or how can we optimize spice to achieve their results?<br>
><br>
> Thank you<br>
><br>
> btw: I know ICA/RDP support few devices.<br>
><br>
<br>
Hi,<br>
   what exactly do you mean by "I know ICA/RDP is better than spice",<br>
I mean, did you<br>
personally try and works better? Did you do some measurement? Is just<br>
some comments<br>
on Internet?<br></blockquote><div>Hi :</div><div>I get some inforamtion from this page: <a href="https://forum.huawei.com/enterprise/zh/thread-324721.html">https://forum.huawei.com/enterprise/zh/thread-324721.html</a></div><div>ICA/RDP complete USB redirection through virtual USB device driver. And SPICE complete USB redirection</div><div>through virtual USB host controller driver. SPICE client read/write URB by libusb. </div><div><br></div><div>I will test RDP and perform analysis betwwen RDP and SPICE.</div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
I didn't try personally (I don't have ICA solution installed) but you<br>
could run a test to check for<br>
compression:<br>
- run a program in the VM to record camera video without showing on the screen<br>
- start monitoring traffic (like tcpdump, or just some network<br>
statistic program)<br>
- let the recording goes for a predefined amount of time<br>
- stop monitoring.<br>
- look at the amount of traffic generated.<br>
If the amount of traffic is less they are compressing (not said they<br>
are video compressing,<br>
maybe only as raw data better than us). If they are compressing A LOT<br>
(like 5 times)<br>
probably they are using video compression (unless they found a way to<br>
reduce frame rate).<br>
<br>
It could be that they detect camera and optimize specifically the<br>
dialog with the VM.<br>
<br>
Other reasons could be less pipeline having a lower latency or some<br>
sort of QoS for the<br>
network.<br>
<br>
Frediano<br>
</blockquote></div></div>