<div><br></div><div><tincludetail><div>Thank you for the compliment.</div><div>"[1] https://www.linux-kvm.org/page/SPICE" is what I want. At first, I running Windows 7 as the guest, not clear how to use streaming agent. Next I will try CentOS as the guest.</div><div><br></div><div>now spice-server deal with stream like </div><div><img src="cid:82EAACBF@4A276B79.8E8CD45A"></div><div>In the future, I want to send video stream to client direct, and decode in client side.</div><div><img src="cid:4EE73722@E4504127.8E8CD45A"></div><div><br></div><div>Thank you so much for all the help that you had given me!</div><div><br></div><div>BR.</div><div><br></div><div><br></div><div> </div><div style="font:Verdana normal 14px;color:#000;"><div style="FONT-SIZE: 12px;FONT-FAMILY: Arial Narrow;padding:2px 0 2px 0;">------------------ Original ------------------</div><div style="FONT-SIZE: 12px;background:#efefef;padding:8px;"><div id="menu_sender"><b>From: </b> "Lukáš Hrázký"<lhrazky@redhat.com>;</div><div><b>Date: </b> Mon, Apr 16, 2018 04:20 PM</div><div><b>To: </b> "孙得霖"<kong.delin@embedway.com>; "spice-devel"<spice-devel@lists.freedesktop.org>; <wbr></div><div></div><div><b>Subject: </b> Re: [Spice-devel] not clear how to use streaming agent</div></div><div> </div><div style="position:relative;">On Mon, 2018-04-16 at 10:33 +0800, 孙得霖 wrote:<br>> Hi,<br>> Thanks for your response.it is first time to communicate in English,to be frank, my English is not very good and there may be points expressed poorly in my reply. I hope you will pardon me for this.<br><br>Your english is very good, don't worry (比我汉语更好 ;)). However, the<br>information you provide is not what I asked, see below.<br><br>> I want to capute guest video stream(encode it) and to client with spice protocol direct (like above figure ),at present, it is in the stage of technical pre-research.<br>> So my question is, can i use streaming agent to capture guest video stream and encode it?<br><br>That you want to capture the video and send it to the client is too<br>vague and low-level. What do you want to use it for, the high-level use<br>case?<br><br>SPICE alone without the streaming agent can do what you are describing,<br>you should probably start with that: Install SPICE from your<br>distribution packages, follow a guide like [1], there are some more<br>information in [2]. If you know you need more than regular SPICE can<br>offer, please describe it.<br><br>Cheers,<br>Lukas<br><br>[1] https://www.linux-kvm.org/page/SPICE<br>[2] https://www.spice-space.org/spice-user-manual.html<br><br><br>>  <br>> ------------------ Original ------------------<br>> From:  "Lukáš Hrázký"<lhrazky@redhat.com>;<br>> Date:  Fri, Apr 13, 2018 07:24 PM<br>> To:  "孙得霖"<kong.delin@embedway.com>; "spice-devel"<spice-devel@lists.freedesktop.org>; <br>> <br>> Subject:  Re: [Spice-devel] not clear how to use streaming agent<br>> <br>>  <br>> Hello Delin,<br>> <br>> On Thu, 2018-04-12 at 10:37 +0800, 孙得霖 wrote:<br>> > hi,<br>> >     I use spice for remote view, I want to captures the guest video output, encodes it and send through, so I choose streaming agent, how to build and run it is not clear, can you help me?<br>> <br>> Sure, first off, what exactly do you want to achieve? If you just want<br>> to remotely access your VM (see the graphical desktop and interact with<br>> it), you don't need the streaming agent for that, SPICE can do that for<br>> a long time without it.<br>> <br>> Streaming agent is designed for a very specific case of capturing and<br>> encoding the desktop from within the guest, which only has an advantage<br>> to the regular old SPICE approach if you have a physical GPU or a vGPU<br>> assigned to the guest to accelerate the process.<br>> <br>> If you still think streaming agent is what you need, please describe in<br>> detail what is your use case.<br>> <br>> > 1.host environment and Software version:<br>> > centOS(Mini install)<br>> > GVT-g kernel:      https://github.com/intel/gvt-linux/  (branch: topic/dmabuf)<br>> > QEMU:              https://github.com/intel/igvtg-qemu  (branch: qa/dma_buf)<br>> > streming agent:    https://gitlab.com/spice/spice-streaming-agent    <br>> > spice-server       version:0.13.3<br>> > spice-protocol     version:0.12.12<br>> > <br>> > <br>> > 2.build info<br>> > kernel:<br>> > make -j 8<br>> > make modules_install && make install<br>> > reboot<br>> > <br>> > <br>> > qemu:<br>> > ./configure --prefix=/usr --enable-kvm --disable-xen --enable-debug-info --enable-debug --enable-sdl --enable-vhost-net --enable-spice --disable-debug-tcg --enable-numa --enable-libusb --enable-curl --enable-usb-redir --enable-linux-aio --target-list=x86_64-softmmu --enable-gtk --with-gtkabi=3.0<br>> > make -j 8<br>> > cd roms/seabios<br>> > make -j 8<br>> > cd -<br>> > make install<br>> > cp roms/seabios/out/bios.bin /usr/bin/bios.bin<br>> > <br>> > <br>> > spice-protocol:<br>> > ./configure --prefix=/usr<br>> > make -j 8<br>> > make install<br>> > <br>> > <br>> > spice-service:<br>> > ./configure  --prefix=/usr --enable-manual=no --disable-silent-rules --disable-smartcard --disable-celt051 --enable-client CFLAGS="-g -O0" CXXFLAGS="-g -O0"<br>> > make -j 8<br>> > make install<br>> > <br>> > <br>> > streming agent<br>> > ./autogen.sh<br>> > make -j 8<br>> > make install<br>> > <br>> > <br>> > 3.run qemu<br>> > /usr/bin/qemu-system-x86_64 \<br>> > -m 8192 \<br>> > -smp 4,sockets=1,cores=4,threads=1 \<br>> > -M pc \<br>> > -name win71 \<br>> > -hda /Image/vm/win7_base.img \<br>> > -bios /usr/bin/bios.bin -enable-kvm \<br>> > -k en-us \<br>> > -vga none \<br>> > -display egl-headless \<br>> > -spice disable-ticketing,port=6901,streaming-video=off \<br>> > -machine kernel_irqchip=on,usb=on \<br>> > -global PIIX4_PM.disable_s3=1 -global PIIX4_PM.disable_s4=1 \<br>> > -cpu host -device usb-tablet \<br>> > -device vfio-pci,sysfsdev=/sys/bus/pci/devices/0000:00:02.0/5b8d581a-2dc9-11e8-8238-000906258002,x-display=on,x-igd-opregion=on<br>> > -device virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel1,id=channel1,name=org.spice-space.stream.0 -chardev spiceport,name=org.spice-space.stream.0,id=charchannel1<br>> <br>> Are you running Windows 7 as the guest? The streaming agent is designed<br>> to run in the guest and only supports Linux atm.<br>> <br>> Cheers,<br>> Lukas<br>> <br>> > questions:<br>> > I am not clear How to use streaming agent and validate it, can you help me?<br>> > <br>> > thank you!<br>> > _______________________________________________<br>> > Spice-devel mailing list<br>> > Spice-devel@lists.freedesktop.org<br>> > https://lists.freedesktop.org/mailman/listinfo/spice-devel</div></div></tincludetail></div><!--<![endif]-->