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

"error: NotReadableError: Could not start video source" when pushing by Android Pixel 4A5G of back camera with Chrome #2698

Closed
12 tasks
iesv opened this issue Nov 14, 2023 · 5 comments · Fixed by #2842
Labels
bug Something isn't working webrtc

Comments

@iesv
Copy link

iesv commented Nov 14, 2023

Which version are you using?

v1.3.0

Which operating system are you using?

  • Linux amd64 standard
  • Linux amd64 Docker
  • Linux arm64 standard
  • Linux arm64 Docker
  • Linux arm7 standard
  • Linux arm7 Docker
  • Linux arm6 standard
  • Linux arm6 Docker
  • [x ] Windows amd64 standard
  • Windows amd64 Docker (WSL backend)
  • macOS amd64 standard
  • macOS amd64 Docker
  • Other (please describe)

Describe the issue

when pushing by Android Pixel 4A5G of back camera with Chrome, it high probability dones't work.
1 (1)
1 (2)

Describe how to replicate the issue

  1. start the server
  2. publish with Android Chrome
  3. read with OBS browers source

Did you attach the server logs?

no

Did you attach a network dump?

no

@aler9 aler9 added bug Something isn't working webrtc labels Dec 16, 2023
@aler9
Copy link
Member

aler9 commented Dec 16, 2023

Hello, after doing some research it seems that that error is thrown when the camera is already in use. The server indeed requests the camera twice, the first call is performed in order to get all available codecs and devices, and the second call is performed in order to perform the streaming.

I've edited the code in order to stop the first camera request before starting the second one, please test this nightly release and let me know if it works (click on artifacts, binaries):

https://github.com/bluenviron/mediamtx/actions/runs/7234099772

@iesv
Copy link
Author

iesv commented Dec 25, 2023

YES! It works! Thank you aler9!
However, it cannot show 1920x1080 size in chrome. Moreover, is it possible to reduce the latency a bit?

MERRY CHRISTMAS!!! GOD BLESS YOU!

@aler9
Copy link
Member

aler9 commented Dec 26, 2023

Thanks for providing the feedback and merry christmas to you too from Italy :)

Regarding the size issue, open another issue and provide details.

Regarding latency, the server doesn't introduce any latency, it just routes packets from an end to the other. Try to debug your streaming pipeline and to find the point in which latency is introduced. For instance, try to publish with a desktop browser and check whether latency is lower - it that is the case, it means that the problem lies in the smartphone, otherwise, the problem lies in something in the server side, and so on.

Copy link
Contributor

github-actions bot commented Jan 7, 2024

This issue is mentioned in release v1.4.2 🚀
Check out the entire changelog by clicking here

Copy link
Contributor

This issue is being locked automatically because it has been closed for more than 6 months.
Please open a new issue in case you encounter a similar problem.

@github-actions github-actions bot locked and limited conversation to collaborators Jul 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working webrtc
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants