Desktop TCP Streaming (java)

前端 未结 2 1695
夕颜
夕颜 2021-01-22 08:06

I want to stream desktop screen captures using sockets. I don\'t know the exact way to do this, so I went with AWT\'s robot :)

Robot robot = ne         


        
相关标签:
2条回答
  • 2021-01-22 08:37

    I think you'll need external library to create video (may be platform dependent).

    The approach with images is simple but you'll need to send each frame. When you use video codec size is smaller because it sends some of frames in full size and other contain only changed part of the picture See here:

    http://en.wikipedia.org/wiki/Key_frame

    http://en.wikipedia.org/wiki/I-frame


    Here some open-source libs I just googled:

    https://code.google.com/p/java-screen-recorder/

    http://www.xuggle.com/xuggler/


    I think You also can find some libs to create video stream from images...

    0 讨论(0)
  • 2021-01-22 08:59

    How are HD video streams transferred?

    Typically as a video stream, which a 'group of images' is not. Video codecs often have clever ways to compress groups of images further, e.g. by only showing the part of the next frame that is different to the previous one.

    You might also want to look into encoding the images as a high compression JPEG.

    Having said that, I doubt you'll get a very good transfer rate at that size in pixels.

    0 讨论(0)
提交回复
热议问题