Giter Club home page Giter Club logo

Comments (5)

roflcoopter avatar roflcoopter commented on June 16, 2024

Could you paste your config here? I suspect you might need to tweak your settings a bit

from viseron.

noblerboy2004 avatar noblerboy2004 commented on June 16, 2024

Could you paste your config here? I suspect you might need to tweak your settings a bit

Hi Sir,

Thank you for your quick response.
The config:

Thanks for trying out Viseron!

This is a small walkthrough of the configuration to get you started.

There are far more components and options available than what is listed here.

See the documentation for the full list of configuration options.

Start by adding some cameras

ffmpeg:
camera:
viseron_camera: # This value has to be unique across all cameras
name: 44NTH
host: 14.233.86.163
path: /onvif1
port: 554
protocol: rtsp
rtsp_transport: tcp
username: !secret cam3_username
password: !secret cam3_password
width: 1280
height: 720
fps: 5
codec: h264
audio_codec: null
stream_format: rtsp
ffprobe_loglevel: debug

online_camera:  # This value has to be unique across all cameras
  name: Camera 1
  host: 88.53.197.250
  path: /axis-cgi/mjpg/video.cgi
  port: 80
  stream_format: mjpeg
  fps: 30
  recorder:
    idle_timeout: 1
    codec: h264

mog2:
motion_detector:
cameras:
viseron_camera:
fps: 30
online_camera:
fps: 30

darknet:
object_detector:
cameras:
viseron_camera:
fps: 30
scan_on_motion_only: true
labels:
- label: person
confidence: 0.75
trigger_recorder: true
online_camera:
fps: 30
scan_on_motion_only: false
labels:
- label: person
confidence: 0.8
trigger_recorder: true

To tie everything together we need to configure one more component.

nvr:
viseron_camera:
online_camera:

Now you can restart Viseron and you should be good to go!

online_camera is working well. viseron_camera has problem with rtsp with error below:
[2023-12-25 08:43:20] [ERROR ] [viseron.components.ffmpeg.stream.viseron_camera] - [rtsp @ 0x55a4d308f900] Nonmatching transport in server reply
[2023-12-25 08:43:20] [ERROR ] [viseron.components.ffmpeg.camera.viseron_camera] - Frame reader process has exited
[2023-12-25 08:43:20] [ERROR ] [viseron.components.ffmpeg.stream.viseron_camera] - rtsp://:@14.233.86.163:554/onvif1: Invalid data found when processing input

Thank you.

from viseron.

noblerboy2004 avatar noblerboy2004 commented on June 16, 2024

Hi Sir,

I tried to debug error with command: "ffmpeg -hide_banner -loglevel debug -avoid_negative_ts make_zero -fflags nobuffer -flags low_delay -strict experimental -fflags +genpts -use_wallclock_as_timestamps 1 -vsync 0 -timeout 5000000 -c:v h264 -rtsp_transport tcp -i rtsp://admin:[email protected]:554/onvif1 -f segment -segment_time 5 -reset_timestamps 1 -strftime 1 -c:v copy /segments/viseron_camera/xx.mp4 -f rawvideo -pix_fmt yuv420p pipe:1
"

Response below.
image

Please help to check.
Thank you.

from viseron.

bsyomov avatar bsyomov commented on June 16, 2024

Response below.

It may be camera rtsp bug. Try to use udp transport: rtsp_transport: udp in camera settings.

from viseron.

roflcoopter avatar roflcoopter commented on June 16, 2024

Seems to be an issue with your cameras implementation of RTSP: https://stackoverflow.com/questions/66280861/ffmpeg-nonmatching-transport-in-server-reply-but-openrtsp-works

Nothing that can be done on Viserons side sadly :(

from viseron.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.