Comments (7)
Hi there,
I have the feeling that there was on issue with the orientation, but it is a really painfull subject 🧠
Could you check that tapping on StreamPack Preview properly set the focus on the same place as the preview (with your patch).
Do you have in mind an easy way to test this?
Best regards,
Thibault
from streampack.
Hi
Thank you for taking this issue.
Just did the test with my webcam and sensor orientation is also 90 degrees...
I apologize that it did not behave as expected. I will conduct further investigation on my end as well.
From a technical point, I believe it is possible to build an emulator image with Angle other than 90 from AOSP. However, I consider that as a last resort..
from streampack.
As the preview and the stream are 2 different things, there might be 2 issues.
To display the preview on your device, what view do you use?
from streampack.
Hello.
The combination of device orientation and camera mount angle is a headache.
The patch I created focuses only on the stream.
The preview is not fixed and needs additional work. (sry...)
I will try more when I have time.
A simple test... This is also difficult.
Probably, you hard to get a reproducible device.
I think it would be better to do it on an android emulator, but i have to examine emulator's configuration.
from streampack.
Sorry I haven't had much time to do this....
I tried to build a simple environment.
It may be possible to build it with an "android emulator" and "external usb camera".
Some devices for auto (vehicles) like alps YT9213AJ support external usb camera and it returns 0 camera sensor orientation
android/camera-samples#361
The report says "YT9213AJ supports external usb camera and it returns 0 camera sensor orientation > ".
So,
- Connect an external usb camera (sensor orientation = 0) to the PC
- On the PC, specify the camera device when starting the emulator.
e.g.emulator.exe -avd PixelC -camera-back webcam1
.
This may work.
However, I do not have an external usb camera at hand,
so I installed the virtual camera driver and confirmed that the emulator even uses the camera.
Unfortunately, the virtual camera driver recognized sensor orientation = 90, so it may not work.
Thank you.
from streampack.
Hi,
Sorry I missed you last messages.
The combination of device orientation and camera mount angle is a headache.
Agreed! It is not clear at all.
I will try to test with an android emulator and an external USB camera. Thanks for the information.
In the meantime, I reworked the management of the orientation. It is not going to fix your issue but it might be easier to debug.
Everything is in https://github.com/ThibaultBee/StreamPack/blob/5ae4592ecfe2e6f5ebcc1d49296bf5f1a068cbf0/core/src/main/java/io/github/thibaultbee/streampack/internal/sources/camera/CameraSource.kt#L130C14-L130C14
I guess your issue has a link with the default buffer size. But it is still unclear how to set setDefaultBufferSize
.
from streampack.
I will try to test with an android emulator and an external USB camera. Thanks for the information.
Just did the test with my webcam and sensor orientation is also 90 degrees...
Looking for a way to test or for a clear explanation of https://developer.android.com/training/camera2/camera-preview
from streampack.
Related Issues (20)
- [Bug]: MP4 File appears to have time duration 00:01 in video player HOT 4
- [Bug]: When the higher video bit rate is used for SRT streaming, the video will frequently appear green screen or mosaic HOT 4
- Socket Exception while connect with encrypted srt server HOT 8
- Is it possible to use a dns to broadcast the streaming, say no-ip or others? HOT 2
- Connection Error HOT 2
- [Bug]: SrtProducer.connect(url) always throws "unknown host" when onConnectionListener is null HOT 2
- [Feat]: Get current bitrate of the stream HOT 3
- Video Capture Mirroring HOT 8
- [Feat]: Background RTMP Streaming HOT 4
- [Feat]: Lock resolution to starting orientation HOT 10
- [Feat]: Add SRTLA (SRT transport proxy with link aggregation for connection bonding) HOT 1
- [Bug]: Streaming the SRT video has a lot of lag HOT 2
- [Bug]: App crashes with "eglMakeCurrent failed" error HOT 2
- [Bug]: app crashes when start running HOT 2
- [Feat]: High latency when using the RTMP HOT 2
- [Bug]: When using SRT to push 1080P video, the latency is severe, about 7 seconds! HOT 3
- [Bug]: There are severe mosaics at higher bit rates(>2Mb/s). HOT 5
- [Bug]: tap to focus while zoomed out causes crash HOT 7
- [Bug]: "demo-camera" app crashes at startup HOT 7
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 streampack.