Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NativeDecoder] Playback stops after settings changing #23

Closed
pigass0512 opened this issue Jun 4, 2020 · 17 comments · Fixed by xevojapan/h264-converter#4
Closed

[NativeDecoder] Playback stops after settings changing #23

pigass0512 opened this issue Jun 4, 2020 · 17 comments · Fixed by xevojapan/h264-converter#4
Labels
bug Something isn't working external Caused by dependency

Comments

@pigass0512
Copy link

Hi master,

Now I got another question that after I clicked Native Decoder stream link and change video setting, the device stream had started, but after few seconds, the stream had stop... How can I fix it? Thanks!

@drauggres drauggres added bug Something isn't working help wanted Extra attention is needed labels Jun 4, 2020
@drauggres
Copy link
Collaborator

Hi. Yeah, I can reproduce it, will investigate.

@drauggres
Copy link
Collaborator

BTW, in my tests broadway decoder always was more efficient and stable than native.

@pigass0512
Copy link
Author

BTW, in my tests broadway decoder always was more efficient and stable than native.

I only can use Native as decoder, the other two still display black screen on my web page...haha this is my another question..

@hzms
Copy link

hzms commented Jun 8, 2020

I have the same problem and only the native works, the other decoders are black screen

@drauggres
Copy link
Collaborator

@pigass0512 @hzms What operating system and browser do you have?

@pigass0512
Copy link
Author

@pigass0512 @hzms What operating system and browser do you have?

Hi master, windows 10 and chrome latest version.

@drauggres
Copy link
Collaborator

Tested on Chrome 83.0.4103.97 on Win10 x64, works fine here.

@pigass0512
Copy link
Author

Tested on Chrome 83.0.4103.97 on Win10 x64, works fine here.

I had upgrade Chrome version and Native stream become fluently, but the other two still black...

@drauggres
Copy link
Collaborator

drauggres commented Jun 9, 2020

but the other two still black...

Try to move or open something, so picture on the screen is changed (I usually run clock/stopwatch for tests).
Encoder does not send frames when there are no changes on the screen (shouldn't be a problem on very first connection).

@pigass0512
Copy link
Author

pigass0512 commented Jun 10, 2020

but the other two still black...

Try to move or open something, so picture on the screen is changed (I usually run clock/stopwatch for tests).
Encoder does not send frames when there are no changes on the screen (shouldn't be a problem on very first connection).

The method seems not works for me, and the stream still stop playing in the few seconds..
And the other two decoders are still black after I launch an APP.

@pigass0512
Copy link
Author

Hi @drauggres master,
Does any update of this issue?

@drauggres
Copy link
Collaborator

Nope. No luck and no ideas.
Only thing I was able to find is that you can resize window (e.g. press F11 to open browser in fullscreen), press change video settings and player will unfreeze. But still don't why it freezes in the first place.

I'm thinking about different approach:

  1. use original scrcpy instead of my fork
  2. create web socket proxy server
  3. configure all streaming parameters before connection

Downsides here are:

  • unable to change video setting on the fly, it will require reconnection
  • maybe be problems with simultaneous access of a device from more than one client (probably I can make it work)

@pigass0512
Copy link
Author

Unfortunately, after I resize my device window, it still freeze in the further seconds..that's weird..

@drauggres drauggres changed the title Device stream stop after few seconds [NativeDecoder] Playback stops after settings changing Jun 29, 2020
@drauggres
Copy link
Collaborator

drauggres commented Jun 29, 2020

I changed default frame rate value for native decoder. In my tests it is more stable now.

@pigass0512, please try again (master branch).

UPD: just tried it on linux/chrome, still freezing.

@drauggres
Copy link
Collaborator

I have the same problem and only the native works, the other decoders are black screen

@hzms, @pigass0512, @jiahuanyu
Hey guys, try develop branch with broadway or tinyh264 decoders. If problem is still there, please open a new issue and specify OS, browser version and everithing that you think might be relevant.

@pigass0512
Copy link
Author

Hi master @drauggres ,

After I pull develop branch and build the service, still only native decode can work..others are black screen..
I will open another issue for discuss with other decoder can not work problem, is that okay?

@drauggres
Copy link
Collaborator

drauggres commented Jul 10, 2020

I will open another issue for discuss with other decoder can not work problem, is that okay?

Yes, please.

@drauggres drauggres added external Caused by dependency and removed help wanted Extra attention is needed labels Jul 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working external Caused by dependency
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants