Quasar icon indicating copy to clipboard operation
Quasar copied to clipboard

Remote Desktop performance improvements

Open ValonK opened this issue 8 years ago • 43 comments
trafficstars

Hej, i'm currently working a lot with ffmpeg at Work writing basically a Desktop Stream Software something like Teamviewer without control. It's really amazing what you can do with ffmpeg (30-60fps x1080p). So I was thinking and want to know from @MaxXor would this be something you might want? :)

ValonK avatar Dec 25 '16 20:12 ValonK

@ValonK possible to get 4bit and 1bit streams with ffmpeg?

chico-depressive avatar Dec 26 '16 09:12 chico-depressive

Yeah its possible ! ffmpeg is very powerful its been developed by so many people. https://ffmpeg.org/

ValonK avatar Dec 26 '16 14:12 ValonK

@ValonK Out of curiosity, would this be applicable to webcam streaming as well? I'm not sure why the current implementation of that seems so slow/bandwidth intensive when programs like skype seem to be able to handle it fine (and even meterpreter's method seems to give higher fps video with better quality)

Either way, improving the desktop streaming would be a really nice improvement! Especially if you could set some parameters on it.

ghost avatar Dec 31 '16 10:12 ghost

Among other things the current implementation of remote desktop is passed on PULL model instead of traditional PUSH based model which actually results in low performance because the server requests the next frame. See https://github.com/quasar/QuasarRAT/issues/502

abdullah2993 avatar Dec 31 '16 17:12 abdullah2993

@Cowboy-Curtis with FFmpeg you can stream everything that is streamable ;) I will start with a prototype and show some of the capabilities of FFmpeg. The only problem is that the ffmpeg.exe needs to be on the victims Pc. So basically if the stream gets started we first need to upload ffmpeg.exe ~40.mb, but believe me its worth it!!! As an example I streamed a whole movie from my work PC to my Home PC without an issue!!

ValonK avatar Jan 01 '17 01:01 ValonK

Question for you guys who are interested before I Start to implement. Do you guys prefer to receive the stream inside Quasar or start just Vlc only player window? Vlc does work much better than the .NET Control.

ValonK avatar Jan 01 '17 01:01 ValonK

We can keep the current implementation and add the FFmpeg method along side with it but we need to try to find a lite version of FFmpeg to decrease the size

DragonzMaster avatar Jan 01 '17 08:01 DragonzMaster

I will see if I can find some lite version.

ValonK avatar Jan 01 '17 12:01 ValonK

@ValonK can you give us a proof of concept? I am very interested in this idea, I need faster remote desktop sessions

chico-depressive avatar Jan 04 '17 21:01 chico-depressive

Hej,

I'm working on it. it takes time and it is a lot of work. I did find a video with Linux but it's the same with windows. When I have a working build I will post it here. https://www.youtube.com/watch?v=SDU0vb5KVqo if anybody wants to help me would be appreciated (i hate windows forms :) ) I'm a wpf/MVVM guy.

ValonK avatar Jan 05 '17 16:01 ValonK

Work is in progress guys http://imgur.com/a/5sPzl :)

ValonK avatar Jan 12 '17 21:01 ValonK

@ValonK i would be very happy to see this! I also started working on a small codec....involving few techniques...stuck somewhere...haha

itapi avatar Jan 16 '17 17:01 itapi

@ValonK thank you sir! can you provide us with 4bit and 1bit lossless/lossy compression?

chico-depressive avatar Jan 19 '17 11:01 chico-depressive

@ValonK sir, I can help you with something? Got some free time and want to learn

chico-depressive avatar Jan 23 '17 15:01 chico-depressive

@ValonK any progress this days?

chico-depressive avatar Jan 30 '17 14:01 chico-depressive

@chico-depressive there isn't much left , we have a deadline currently at Work. I will try to complete it this Weekend.

ValonK avatar Jan 30 '17 18:01 ValonK

@ValonK sir, if you need any help please tell me

how did you get this knowledge? you read a lot of books?

chico-depressive avatar Jan 31 '17 11:01 chico-depressive

Thanks @chico-depressive Yeah I went to university and now I'm working as a dev :) You can help me with Testing because I'm not using Quasar and I don't have any Machines that i "control", so testing this is not possible for me when I complete the Feature you could Test and Report any bugs or improvements to me.

ValonK avatar Jan 31 '17 15:01 ValonK

@ValonK consider it tested :)

It will suport for 1bit/4bit compression lossless/lossy?

Do you know if we can speed it up by using the gpu to render the video stream?

chico-depressive avatar Feb 01 '17 11:02 chico-depressive

@ValonK @chico-depressive the main boost will come from devleoping a smart scanning algorithm which can easily detect changed regions...fast and accurate..i'm working on somthing like that.. we can work on it together if you want guys...

itapi avatar Feb 02 '17 19:02 itapi

@chico-depressive it all depends on internet connection on both sides , the Connection is the most important thing!

@itapi Sure sound very interesting, we can when this feature is finished

ValonK avatar Feb 02 '17 19:02 ValonK

Im glad to know youre still around and working on this, and I don't mean to sound like a beggar, but do you have any ETA on when this might be finished? It's something I'm really looking forward to!

ghost avatar Feb 19 '17 01:02 ghost

@Cowboy-Curtis @ValonK me too, any help you need to speed it up, just tell me

chico-depressive avatar Feb 20 '17 05:02 chico-depressive

Ok guys yeah, here's my discord so we can talk tomorrow and you can help me.. https://discord.gg/8Nt45 :)

ValonK avatar Feb 21 '17 19:02 ValonK

@ValonK great! but invite expired for this link

chico-depressive avatar Feb 23 '17 02:02 chico-depressive

Sorry I'm new in discord I will give you new one when I'm home or you give us yours

ValonK avatar Feb 23 '17 07:02 ValonK

@ValonK hi, do you have skype or some kind of contact? thinking about donating to speed up the project, do you accept bitcoin?

chico-depressive avatar Mar 12 '17 22:03 chico-depressive

@ValonK Are you still working on this? i have some free time and some knowledge regarding ffmpeg

Send us a discord link when you have some time :)

knackrack615 avatar Mar 30 '17 15:03 knackrack615

@knackrack615 @chico-depressive i'm working on self implemented codec ,using libjpgTurbo library,and many other improvments. your welcome help. my skype name is Itamar.Yehezkel2

itapi avatar Mar 30 '17 15:03 itapi

great guyz, let's make remote desktop as fast as possible, challenge accepted, lol

chico-depressive avatar Mar 30 '17 17:03 chico-depressive