question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Support]: Wyze v2 RTSP config

See original GitHub issue

Describe the problem you are having

I seem to be having issues with my wyze v2 rtsp feeds into Frigate i’ve stripped the config down to a min and still seeing the errors in the logs

any help would be appreciated

Version

0.9.1-800F33E

Frigate config file

mqtt:
  host: ip
  user: username
  password: password

cameras:
  FrontCam:
    ffmpeg:
      inputs:
        - path: rtsp://username:password@ip/live
          roles:
            - detect
    detect:
      width: 1920
      height: 1080
      fps: 10

detectors:
  coral:
    type: edgetpu
    device: usb

Relevant log output

[2021-10-11 06:31:46] frigate.app                    INFO    : Starting Frigate (0.9.1-800f33e)
[2021-10-11 06:31:46] frigate.app                    WARNING : Camera FrontCam has rtmp enabled, but rtmp is not assigned to an input.
Starting migrations
[2021-10-11 06:31:46] peewee_migrate                 INFO    : Starting migrations
There is nothing to migrate
[2021-10-11 06:31:46] peewee_migrate                 INFO    : There is nothing to migrate
[2021-10-11 06:31:46] frigate.mqtt                   INFO    : MQTT connected
[2021-10-11 06:31:46] detector.coral                 INFO    : Starting detection process: 218
[2021-10-11 06:31:46] frigate.app                    INFO    : Output process started: 220
[2021-10-11 06:31:46] frigate.edgetpu                INFO    : Attempting to load TPU as usb
[2021-10-11 06:31:46] ws4py                          INFO    : Using epoll
[2021-10-11 06:31:46] frigate.app                    INFO    : Camera processor started for FrontCam: 226
[2021-10-11 06:31:46] frigate.app                    INFO    : Capture process started for FrontCam: 228
[2021-10-11 06:31:46] ws4py                          INFO    : Using epoll
[2021-10-11 06:31:48] frigate.edgetpu                INFO    : TPU found
[2021-10-11 06:31:57] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:32802]
[2021-10-11 06:32:12] ws4py                          INFO    : Terminating websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:32802]
[2021-10-11 06:32:33] frigate.video                  INFO    : FrontCam: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
[2021-10-11 06:32:33] frigate.video                  INFO    : FrontCam: ffmpeg process is not running. exiting capture thread...
[2021-10-11 06:32:36] watchdog.FrontCam              ERROR   : FFMPEG process crashed unexpectedly for FrontCam.
[2021-10-11 06:32:36] watchdog.FrontCam              ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2021-10-11 06:32:36] watchdog.FrontCam              ERROR   : You may have invalid args defined for this camera.
[2021-10-11 06:32:36] ffmpeg.FrontCam.detect         ERROR   : Guessed Channel Layout for Input Stream #0.1 : mono
[2021-10-11 06:32:36] ffmpeg.FrontCam.detect         ERROR   : [h264 @ 0x5568c838d000] error while decoding MB 116 63, bytestream -11
[2021-10-11 06:32:36] ffmpeg.FrontCam.detect         ERROR   : rtsp://user:Pass@ip/live: corrupt decoded frame in stream 0
[2021-10-11 06:33:18] frigate.video                  INFO    : FrontCam: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
[2021-10-11 06:33:18] frigate.video                  INFO    : FrontCam: ffmpeg process is not running. exiting capture thread...
[2021-10-11 06:33:26] watchdog.FrontCam              ERROR   : FFMPEG process crashed unexpectedly for FrontCam.
[2021-10-11 06:33:26] watchdog.FrontCam              ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2021-10-11 06:33:26] watchdog.FrontCam              ERROR   : You may have invalid args defined for this camera.
[2021-10-11 06:33:26] ffmpeg.FrontCam.detect         ERROR   : Guessed Channel Layout for Input Stream #0.1 : mono
[2021-10-11 06:33:26] ffmpeg.FrontCam.detect         ERROR   : [h264 @ 0x55ca53f9d180] error while decoding MB 99 14, bytestream -5
[2021-10-11 06:33:26] ffmpeg.FrontCam.detect         ERROR   : rtsp:///live: corrupt decoded frame in stream 0
[2021-10-11 06:34:16] frigate.video                  INFO    : FrontCam: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
[2021-10-11 06:34:16] frigate.video                  INFO    : FrontCam: ffmpeg process is not running. exiting capture thread...
[2021-10-11 06:34:16] watchdog.FrontCam              ERROR   : FFMPEG process crashed unexpectedly for FrontCam.
[2021-10-11 06:34:16] watchdog.FrontCam              ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2021-10-11 06:34:16] watchdog.FrontCam              ERROR   : You may have invalid args defined for this camera.
[2021-10-11 06:34:16] ffmpeg.FrontCam.detect         ERROR   : Guessed Channel Layout for Input Stream #0.1 : mono
[2021-10-11 06:34:16] ffmpeg.FrontCam.detect         ERROR   : [h264 @ 0x555718295280] error while decoding MB 15 22, bytestream -23
[2021-10-11 06:34:16] ffmpeg.FrontCam.detect         ERROR   : rtsp://user:Pass@ip/live: corrupt decoded frame in stream 0
[2021-10-11 06:35:06] frigate.video                  INFO    : FrontCam: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
[2021-10-11 06:35:06] frigate.video                  INFO    : FrontCam: ffmpeg process is not running. exiting capture thread...
[2021-10-11 06:35:16] watchdog.FrontCam              ERROR   : FFMPEG process crashed unexpectedly for FrontCam.
[2021-10-11 06:35:16] watchdog.FrontCam              ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2021-10-11 06:35:16] watchdog.FrontCam              ERROR   : You may have invalid args defined for this camera.
[2021-10-11 06:35:16] ffmpeg.FrontCam.detect         ERROR   : Guessed Channel Layout for Input Stream #0.1 : mono
[2021-10-11 06:35:16] ffmpeg.FrontCam.detect         ERROR   : [h264 @ 0x55f2fd2d0600] error while decoding MB 110 46, bytestream -11
[2021-10-11 06:35:16] ffmpeg.FrontCam.detect         ERROR   : rtsp:///live: corrupt decoded frame in stream 0
[2021-10-11 06:36:36] frigate.video                  INFO    : FrontCam: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
[2021-10-11 06:36:36] frigate.video                  INFO    : FrontCam: ffmpeg process is not running. exiting capture thread...
[2021-10-11 06:36:46] watchdog.FrontCam              ERROR   : FFMPEG process crashed unexpectedly for FrontCam.
[2021-10-11 06:36:46] watchdog.FrontCam              ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2021-10-11 06:36:46] watchdog.FrontCam              ERROR   : You may have invalid args defined for this camera.
[2021-10-11 06:36:46] ffmpeg.FrontCam.detect         ERROR   : Guessed Channel Layout for Input Stream #0.1 : mono
[2021-10-11 06:36:46] ffmpeg.FrontCam.detect         ERROR   : [h264 @ 0x56133eff2e00] error while decoding MB 27 7, bytestream -7
[2021-10-11 06:36:46] ffmpeg.FrontCam.detect         ERROR   : rtsp:///live: corrupt decoded frame in stream 0
[2021-10-11 06:37:38] frigate.video                  INFO    : FrontCam: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
[2021-10-11 06:37:38] frigate.video                  INFO    : FrontCam: ffmpeg process is not running. exiting capture thread...
[2021-10-11 06:37:46] watchdog.FrontCam              ERROR   : FFMPEG process crashed unexpectedly for FrontCam.
[2021-10-11 06:37:46] watchdog.FrontCam              ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2021-10-11 06:37:46] watchdog.FrontCam              ERROR   : You may have invalid args defined for this camera.
[2021-10-11 06:37:46] ffmpeg.FrontCam.detect         ERROR   : Guessed Channel Layout for Input Stream #0.1 : mono
[2021-10-11 06:37:46] ffmpeg.FrontCam.detect         ERROR   : [h264 @ 0x557be54a4e40] error while decoding MB 114 56, bytestream -5
[2021-10-11 06:37:46] ffmpeg.FrontCam.detect         ERROR   : rtsp:///live: corrupt decoded frame in stream 0
[2021-10-11 06:38:36] frigate.video                  INFO    : FrontCam: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
[2021-10-11 06:38:36] frigate.video                  INFO    : FrontCam: ffmpeg process is not running. exiting capture thread...
[2021-10-11 06:38:46] watchdog.FrontCam              ERROR   : FFMPEG process crashed unexpectedly for FrontCam.
[2021-10-11 06:38:46] watchdog.FrontCam              ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2021-10-11 06:38:46] watchdog.FrontCam              ERROR   : You may have invalid args defined for this camera.
[2021-10-11 06:38:46] ffmpeg.FrontCam.detect         ERROR   : Guessed Channel Layout for Input Stream #0.1 : mono
[2021-10-11 06:38:46] ffmpeg.FrontCam.detect         ERROR   : [h264 @ 0x55877800bb40] error while decoding MB 114 57, bytestream -5
[2021-10-11 06:38:46] ffmpeg.FrontCam.detect         ERROR   : rtsp:///live: corrupt decoded frame in stream 0

FFprobe output from your camera

root@acea9e96eb8b:/# ffprobe rtsp://user:Pass@ip/live
ffprobe version 4.3.1 Copyright (c) 2007-2020 the FFmpeg developers
  built with gcc 9 (Ubuntu 9.3.0-17ubuntu1~20.04)
  configuration: --disable-debug --disable-doc --disable-ffplay --enable-shared --enable-avresample --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-gpl --enable-libfreetype --enable-libvidstab --enable-libmfx --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libxcb --enable-libx265 --enable-libxvid --enable-libx264 --enable-nonfree --enable-openssl --enable-libfdk_aac --enable-postproc --enable-small --enable-version3 --enable-libzmq --extra-libs=-ldl --prefix=/opt/ffmpeg --enable-libopenjpeg --enable-libkvazaar --enable-libaom --extra-libs=-lpthread --enable-vaapi --extra-cflags=-I/opt/ffmpeg/include --extra-ldflags=-L/opt/ffmpeg/lib
  libavutil      56. 51.100 / 56. 51.100
  libavcodec     58. 91.100 / 58. 91.100
  libavformat    58. 45.100 / 58. 45.100
  libavdevice    58. 10.100 / 58. 10.100
  libavfilter     7. 85.100 /  7. 85.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  7.100 /  5.  7.100
  libswresample   3.  7.100 /  3.  7.100
  libpostproc    55.  7.100 / 55.  7.100
[rtsp @ 0x561d061e6b80] UDP timeout, retrying with TCP
Input #0, rtsp, from 'rtsp://test:test@10.10.2.55/live':
  Metadata:
    title           : Session streamed by the WYZE Media Server
    comment         : live
  Duration: N/A, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: h264, yuv420p(progressive), 1920x1080, 10 fps, 10 tbr, 90k tbn, 20 tbc
    Stream #0:1: Audio: pcm_alaw, 8000 Hz, 1 channels, s16, 64 kb/s

Frigate stats

{"FrontCam":{"camera_fps":0.0,"capture_pid":228,"detection_fps":0.0,"pid":226,"process_fps":0.3,"skipped_fps":0.0},"detection_fps":0.0,"detectors":{"coral":{"detection_start":0.0,"inference_speed":16.8,"pid":218}},"service":{"storage":{"/dev/shm":{"free":801.6,"mount_type":"tmpfs","total":805.3,"used":3.7},"/media/frigate/clips":{"free":4715.3,"mount_type":"ext4","total":12066.1,"used":6717.7},"/media/frigate/recordings":{"free":4715.3,"mount_type":"ext4","total":12066.1,"used":6717.7},"/tmp/cache":{"free":1000.0,"mount_type":"tmpfs","total":1000.0,"used":0.0}},"uptime":601,"version":"0.9.1-800f33e"}}

Operating system

Debian

Install method

Docker CLI

Coral version

USB

Network connection

Wireless

Camera make and model

Wyze v2 ( with rtsp enabled fw)

Any other information that may be helpful

No response

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
ragenhecommented, Oct 13, 2021

@shubness - Adjust your desired settings on objects, detect, record, rtmp and snapshots.

  MyWyzeCam:
    mqtt:
      timestamp: False
      bounding_box: False
      crop: True
      height: 720
    ffmpeg:
      inputs:
        - path: rtsp://wyze-bridge:8554/mia-cam
          roles:
            - record
            - rtmp
            - detect
    objects:
      track:
        - cat
    detect:
      enabled: True
      width: 1920
      height: 1080
      fps: 5
    record:
      enabled: False
    rtmp:
      enabled: True
    snapshots:
      enabled: False
      bounding_box: False

1reaction
ragenhecommented, Oct 11, 2021

I am using https://github.com/mrlt8/docker-wyze-bridge. It might be worth a look for you @NorthernMunkey

I have both a v3 and a v2 in use. Both run stock firmware, there is a list of compatible firmware included in the github readme.

I’ve had no issues with video from these two cameras in Frigate.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Wyze Cam RTSP
Once your Wyze Cam is back online, you can access the RTSP function from the live stream (Wyze app version 2.3 or later)...
Read more >
RTSP firmware no longer on website : r/wyzecam - Reddit
Will these work with the Wyze Cam Outdoor V2? I haven't been able to get the Cam Outdoor V2 to load the firmware....
Read more >
Wyze v3 Get RTSP: How-To Guide [2022] - BlinqBlinq
Open the Wyze app and make sure the Wyze v3 camera is connected. · Open settings and tap on Advanced settings. · Select...
Read more >
How to enable RTSP on Wyze Cam - Learn CCTV.com
To enable RTSP in the Wyze Cam, download the RTSP firmware, copy it to a microSD card and insert the card into the...
Read more >
New RTSP firmware for the Wyze Cam V2 and Pan
Detection zone and sensitivity settings for local recordings · Improved the compatibility with mesh networks · Person detection support (with Cam ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found