<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Uri Lublin <<a href="mailto:uril@redhat.com">uril@redhat.com</a>> 于2021年2月2日周二 下午10:32写道:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">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></blockquote><div>Hi all: </div><div> I know ICA/RDP is better than spice, when they redirect the USB camera devices. This is beacuse</div><div> ICA/RDP encode video stream, so the effect is so good? Or how can we optimize spice to achieve their results?</div><div><br></div><div>Thank you</div><div><br></div><div>btw: I know ICA/RDP support few devices. </div><div><br></div><div><br></div><div> </div></div></div>