ScreenStream icon indicating copy to clipboard operation
ScreenStream copied to clipboard

H264/AAC mode

Open treakiandroid opened this issue 6 years ago • 10 comments

Hi,

very grate app, i use that to teach/show things on android (there are many neet apps for school environments 😉) from my physical device to the big wall. But is it possible to add an H264 mode with additional sound support so it can be also used for high framerates and does not require that much bandwith, our school wifi is much times quite over loaded when 30 pupils are online?

Grate

treakiandroid avatar Feb 27 '18 16:02 treakiandroid

Hi, hi speed H264 is not a simple thing. I'd like to do this but ithis is my free time project, so feture wil not be avalible soon. But it's an open project too, so anyone my implement it )

dkrivoruchko avatar Feb 27 '18 16:02 dkrivoruchko

While this is a different approach it is still a good read on how scrcpy transfers H264: https://blog.rom1v.com/2018/03/introducing-scrcpy/ ("No buffering" part) @treakiandroid if you need streaming performance have a look at scrcpy. You need to connect over adb and run the client on your machine though. It is not as standalone as this app

m1ga avatar Mar 12 '18 16:03 m1ga

Thank you dkrivoruchko

MilanPithadia avatar Apr 19 '18 05:04 MilanPithadia

Could you link to https://github.com/Genymobile/scrcpy somewhere in README for now?

pzmarzly avatar Jan 12 '19 18:01 pzmarzly

@m1ga adb is not necessary in this case, scrcpy use adb to grant permission, in order to write touch event into a system file, which cannot be done by third-part app. ScreenStream doesn't include touch event pass function.

kyze8439690 avatar May 21 '20 10:05 kyze8439690

@kyze8439690 ok, thanks for the info (the post is two years old :smile: )

m1ga avatar May 21 '20 14:05 m1ga

the new codec will help reduce the load on the network. h.264 compression is better than mjpeg. a useful and necessary function, and if there is hardware compression h.264, it is generally excellent.

OmlineEditor avatar Aug 02 '21 22:08 OmlineEditor

i have done it with h.264 simple one .java file server and one .cs file client https://github.com/qaisbayabani/ANDROID-SCREEN-STREAM-CAST-MIRROR

qaisbayabani avatar Apr 09 '22 06:04 qaisbayabani

@qaisbayabani there is one problem – user has to install some software on pc. The mail idea for Screen Stream app is to simplify for user and minimize amount of software to install/use. And one more thing – there are no sources for your apps.

dkrivoruchko avatar Apr 09 '22 11:04 dkrivoruchko

one time instal app on mobile and copy paste the pc client application directory to pc and you are good to go. as regarding other about sources as you can debug and get the code, if u cant do it, sources are available at my other repo.

qaisbayabani/SCRCPY-C-Sharp-Client (github.com) https://github.com/qaisbayabani/SCRCPY-C-Sharp-Client

https://github.com/qaisbayabani/SCRCPY-C-Sharp-Client/blob/master/Sra6.java for server on android phone. https://github.com/qaisbayabani/SCRCPY-C-Sharp-Client/blob/master/clientformyserver.cs for pc client

"there is never any need of jumbled class libraries to execute the a thread" :)

qaisbayabani avatar Apr 09 '22 19:04 qaisbayabani