Comments (12)
Using these options by default is not an options.
I'm thinking about using profile=1,level=1
automatically on Android 10+ and keeping -
for others, but I haven't decided yet.
Also I want to add possibility to change "codec options" (and new encoder
parameter) at runtime same way as video settings.
from ws-scrcpy.
To be clear, all three other decoders work for me on mac/linux/windows on chrome/firefox and safari. I don't know where to look at.
Any help or additional info (maybe there are logs in the console in dev-tools) appreciated.
from ws-scrcpy.
This situation may be caused by a special device(Android mobile phone), because the three decoders work for my first device, but not work for another.
Another reason is because broadway.js only support low quality video streaming.
from ws-scrcpy.
@LeeGenD @pigass0512
Can you share the first two video frames that come over the websocket?
They have 0000 0001 67
and 0000 0001 65
bytes at the beginning.
Upd: base64 is prefered.
from ws-scrcpy.
Also please try to change this line to const CODEC_OPTIONS = 'profile=1,level=1';
:
ws-scrcpy/src/server/Constants.ts
Line 17 in 79098c6
You will need kill app_process
, this parameter is passed as an argument to the scrcpy-server.
from ws-scrcpy.
@LeeGenD @pigass0512
Can you share the first two video frames that come over the websocket?
They have0000 0001 67
and0000 0001 65
bytes at the beginning.Screenshot.
Upd: base64 is prefered.
Hi master,
But I can not using any decoders after I build the service with v0.4.1.....OMG!!
I had reboot my device and using the same wifi network, but still cannot launch the screenshot....lol
from ws-scrcpy.
But I can not using any decoders after I build the service with v0.4.1.....OMG!!
I had reboot my device and using the same wifi network, but still cannot launch the screenshot....lol
After reboot do you open "device list" page first or directly /#!action=stream&
? Server is installed after devices detection, which happens only when "device list" page requested.
from ws-scrcpy.
But I can not using any decoders after I build the service with v0.4.1.....OMG!!
I had reboot my device and using the same wifi network, but still cannot launch the screenshot....lolAfter reboot do you open "device list" page first or directly
/#!action=stream&
? Server is installed after devices detection, which happens only when "device list" page requested.
Hi master,
My steps as below :
- Reboot my mobile device.
- Git clone the project with v0.4.1
- npm install and start the service.
- Go to Device list web page.
- Click one of decoder in list.
from ws-scrcpy.
Also please try to change this line to
const CODEC_OPTIONS = 'profile=1,level=1';
:
ws-scrcpy/src/server/Constants.ts
Line 17 in 79098c6
You will need kill
app_process
, this parameter is passed as an argument to the scrcpy-server.
Tried on OnePlus 6 (Android 10): with profile=1,level=1
Broaway and TinyH264 work just fine.
Will add fix to the next release.
UPD: but it breaks encoder on some devices with android 6...
from ws-scrcpy.
Also please try to change this line to
const CODEC_OPTIONS = 'profile=1,level=1';
:
ws-scrcpy/src/server/Constants.ts
Line 17 in 79098c6
You will need kill
app_process
, this parameter is passed as an argument to the scrcpy-server.Tried on OnePlus 6 (Android 10): with
profile=1,level=1
Broaway and TinyH264 work just fine.
Will add fix to the next release.UPD: but it breaks encoder on some devices with android 6...
works,better write in README.MD
from ws-scrcpy.
I have implemented a configuration dialog in the develop
branch.
Now, before opening the stream, you can configure video settings, including codec options and encoder.
Changing encoder look like a simpler solution than setting codec options.
If anyone can test it, please let me know the results.
from ws-scrcpy.
To summarize:
- Broadway.js and Tiny H264 are capable to decode only video encoded with Baseline profile
- To change profile you can:
- specify codec option (not necessary exactly
profile=1,level=1
, but it seems to work in some cases, for more information see--codec-options
option in scrcpy) - select different encoder (hoping it has Baseline as default profile)
Otherwise you can use MSE
based player, at the momen we use here xevokk/h264-converter.
from ws-scrcpy.
Related Issues (20)
- Not able to use remotelly HOT 1
- rotation HOT 3
- Embedding in a project
- error while setting up HOT 2
- Error when pull files from sdcard folder in "list files" HOT 4
- The service crashed because of an error HOT 2
- REQUEST HELP - With spread action from one to multiple devices
- "createSetClipboardCommand" HOT 2
- issues with Android 14 HOT 7
- 这么传文件啊,就只有浏览器打开adb怎么连接 HOT 2
- unable to start project HOT 4
- TS2344: Type 'TE' does not satisfy the constraint 'EventMap'.
- Not able to use Remotely HOT 1
- Not be able to start app
- [StreamReceiver]. WS closed unexpectedly after a while HOT 1
- Cannot display adb connected devices HOT 1
- can't configure stream HOT 6
- Firefox exhibits lag when using player=mse (H264 Converter)
- can not restart device scrcpy server via adb wifi connection
- Issue with Android 14 display in pixel device HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ws-scrcpy.