-
-
Notifications
You must be signed in to change notification settings - Fork 71
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
Unsupported Operation Exception #11
Comments
Hi! Which Android version do you have? |
I'm on version 11. |
In CameraExtensions.kt, in Context.getCameraOrientation, can you remove:
|
That fixed the issue! However, I can't get the stream to play. The server is receiving it, but ffplay is unable to display the stream. After maybe 10-20 seconds, ffplay displays the following messages:
|
Ok, then I will temporary rollback 87b0f3d About your second issue, I have never seen it. It seems that ffmpeg can't demux. |
Have you change the settings? |
Do you have specific settings for ffplay? |
I'm using the command you provided.
I'm on version 1.4.3 |
I found this: Haivision/srt#409
But in both case, I don't see why I don't have the same issue. |
Can you switch to srt 1.4.4 in ffplay so we get a better log message? |
…anager.defaultDisplay." Reason: causes exception on Android 11: Tried to obtain display from a Context not associated with one. Only visual Contexts (such as Activity or one created with Context#createWindowContext) or ones created with Context#createDisplayContext are associated with displays. Other types of Contexts are typically related to background entities and may return an arbitrary display. See #11 This reverts commit 87b0f3d.
I got the stream to play, but there's a delay of about 1-2 minutes before it starts playing. What version of SRT are you on? Isn't 1.4.3 the latest? |
You are right, 1.4.3 is the latest. |
Do you have any issue in logcat? |
Here's my logcat output:
|
There is nothing concerning SRT messages in here. |
I tried with an emulated Pixel 4A (Android 11). I had no issue with the stream. |
I changed the endpoint to write to a file, but that didn't work either, the file doesn't get created. Are you using SRT v1.4.3 on your server? |
Yes, I also use SRT v1.4.3 on my ffmpeg server. |
Okay so the file is generated! It looks okay. But for some reason it is not being delivered properly via SRT. |
It seems to be an SRT configuration issue (not sure if it is on TX or on RX). Could be that RX recv buffer is too small... You can try to reduce quality (resolution + video bitrate). I have only tested on Wi-Fi. Are you on Wi-Fi aswell? |
I think it's a TX issue, because I have tested with a different library on iOS, and the Larix Broadcaster app on Android, and it works fine. I tried reducing the quality, and I'm on a very good Wi-Fi connection, still the same issue. |
Do you have access to on these library configuration? |
I used the default configuration on the Larix Broadcaster app. All I setup was the server address. |
Hi, Can you test branch https://github.com/ThibaultBee/StreamPack/tree/test/clock_source? And join logcat? |
Yup that works much better! There is an issue with the audio sync, as you mentioned. |
Hi, Your camera timestamp source is from SENSOR_INFO_TIMESTAMP_SOURCE_REALTIME source whereas mine is from SENSOR_INFO_TIMESTAMP_SOURCE_UNKNOWN. |
I closed this issue because the timestamp bug should probably be filed as a separate issue. |
If you look at the code for Android's CameraX project, it might help you. Specifically, lines 348 to 387 of https://github.com/google/mediapipe/blob/master/mediapipe/java/com/google/mediapipe/components/CameraXPreviewHelper.java. |
You are right! The timestamp issue has been moved to #12. |
First off, I'm super excited about this project! Good luck!
I was trying to test the demo app in the first beta release on my Pixel 4a, but I'm getting the following error:
Thanks!
The text was updated successfully, but these errors were encountered: