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

livestream (to youtube) does not start until accessing web UI #985

Open
kratsg opened this issue Sep 4, 2023 · 2 comments
Open

livestream (to youtube) does not start until accessing web UI #985

kratsg opened this issue Sep 4, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@kratsg
Copy link

kratsg commented Sep 4, 2023

Thanks for a great project, just curious if it is expected behavior that you access the web UI to see the cameras first before the livestream enables? When restarting after docker-compose up -d , I see this while tailing the logs

🚀 DOCKER-WYZE-BRIDGE v2.3.17

[WyzeBridge] 📚 Using 'auth' from local cache...
[WyzeBridge] 📚 Using 'user' from local cache...
[WyzeBridge] 📚 Using 'cameras' from local cache...
[WyzeBridge] [+] Adding The Night’s Watch [HL_PAN3]
 * Serving Flask app 'frontend'
 * Debug mode: off
[WyzeBridge] WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
 * Running on all addresses (0.0.0.0)
 * Running on http://127.0.0.1:5000
 * Running on http://172.18.0.2:5000
[WyzeBridge] Press CTRL+C to quit
[WyzeBridge] starting MediaMTX 1.0.3
[WyzeBridge] 🎬 1 stream enabled

then accessing the web UI, with some delay, I see

[WyzeBridge] 172.18.0.1 - - [04/Sep/2023 22:41:07] "GET / HTTP/1.1" 200 -
[WyzeBridge] 172.18.0.1 - - [04/Sep/2023 22:41:07] "GET /static/site.css HTTP/1.1" 304 -
[WyzeBridge] 172.18.0.1 - - [04/Sep/2023 22:41:08] "GET /static/site.js HTTP/1.1" 304 -
[WyzeBridge] 172.18.0.1 - - [04/Sep/2023 22:41:08] "GET /img/the-nights-watch.jpg HTTP/1.1" 304 -
[WyzeBridge] 172.18.0.1 - - [04/Sep/2023 22:41:08] "GET /img/the-nights-watch.jpg HTTP/1.1" 304 -
[WyzeBridge] 172.18.0.1 - - [04/Sep/2023 22:41:08] "GET /api/sse_status HTTP/1.1" 200 -
[WyzeBridge] 172.18.0.1 - - [04/Sep/2023 22:41:08] "GET /img/the-nights-watch.jpg HTTP/1.1" 304 -
[WyzeBridge] 🎉 Connecting to WyzeCam Pan V3 - The Night’s Watch on 10.0.0.99
[the-nights-watch] 📡 Getting 180kb/s HD stream (H264/20fps) via LAN mode (WiFi: 37%) FW: 4.50.4.4767 🔒 (DTLS) (2/3)
[the-nights-watch] 📺 YouTube livestream enabled
[the-nights-watch] WARNING: Skipping smaller frame at start of stream (frame_size=1)
[WyzeBridge] ✅ '/the-nights-watch stream is UP! (3/3)
[WyzeBridge] 📖 New client reading from the-nights-watch
[WyzeBridge] 172.18.0.1 - - [04/Sep/2023 22:41:44] "GET /snapshot/the-nights-watch.jpg?1693867298623 HTTP/1.1" 200 -
[WyzeBridge] 📖 New client reading from the-nights-watch
[WyzeBridge] 📕 Client stopped reading from the-nights-watch
[WyzeBridge] 172.18.0.1 - - [04/Sep/2023 22:41:46] "GET /snapshot/the-nights-watch.jpg?1693867298623 HTTP/1.1" 200 -
[WyzeBridge] 📕 Client stopped reading from the-nights-watch

it's not clear to me how it's meant to be enabled without manual intervention?

@kratsg
Copy link
Author

kratsg commented Sep 4, 2023

Somewhat related -- the wyze-bridge service seems to stop sending to YouTube when I close my browser (and not running in the background). Am I using the wrong solution?

@kratsg
Copy link
Author

kratsg commented Sep 4, 2023

I believe the solution here is that ON_DEMAND is disabled by default (meaning an active client needs to be there to connect the camera), so adding ON_DEMAND=False seems to work. I'll leave this open until someone can confirm the expected behavior.

@mrlt8 mrlt8 added the bug Something isn't working label Sep 11, 2023
mrlt8 added a commit that referenced this issue Oct 10, 2023
* audio latency #388

* Motion Events

* Log number of cams from API #974

* Store and reuse s3 thumbnail from events #970

* better error handling

* Increase MTX_WRITEQUEUESIZE #984

* MOTION_START for HA

* limit login attempts

* pass exceptions upstream

* motion images for webhooks/ntfy in header

* REST API motion endpoint

* Additional audio codecs

* keep stream alive if livestream enabled #985

* Catch RuntimeError #994

* assert bitrate value

* refactor av_send_io_ctrl

* Refactor API client and use battery from device_info

* motion_ts endpoint

* use .pipe instead of .wav for audio pipe

* update frame size if not preferred_frame_size

* Exclude battery cams from RTSP snapshots #970

* revert changes

* buffer mtx event data #990

* Match all 11.x or newer firmware #975

* MOTION_WEBHOOKS

* clean

* revert changes

* Media MTX changes

* ffmpeg v6

* Use ffmpeg-for-homebridge in QSV build #736

* remove unneeded packages

* don't return none

* Adjust queue size and compression #388

* Adjust sleep, queue, and fifo for lag

* Catch other HTTPErrors for events

* Revert "Adjust sleep, queue, and fifo for lag"

* Update ffmpeg.py

* Update tutk.py

* adjust thread_queue_size #388

* Add build date time

* Update ffmpeg.py

* Additional queue tweaks and fifo options #388

* Catch RequestException in motion events

* Update MediaMTX version from v1.1.0 to v1.1.1 (#1007) (#1008)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: mrlt8 <mrlt8@users.noreply.github.com>

* Fix ETag header for MediaMTX 1.1.1

* Don't use wallclock  #388

* remove asetpts

* audio #388

* Update ffmpeg.py

* allow wallclock flag in FFMPEG_FLAGS #388

* changelog

* Update .env
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants