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.

[Camera Support]: Asecam LAN camera with 4k resolution

See original GitHub issue

Describe the problem you are having

Clips/records are laggy. Previews are half-green

Version

0.10.0-BFECEE9

Frigate config file

mqtt:
  host: x.x.x.x
  client_id: xxx
  user: xxx
  password: xxx
  topic_prefix: frigate
cameras:
  Doorbell:
    ffmpeg:
      inputs:
        - path: 'rtsp://xxx:xxx@x.x.x.x:xxxx/Streaming/Channels/101'
          roles: 
            - rtmp
            - detect
            - record     
          hwaccel_args: 
             - '-hwaccel'
             - 'vaapi'
             - '-hwaccel_device'
             - '/dev/dri/renderD128'
             - '-hwaccel_output_format'
             - 'yuv420p'    
    detect:
      width: 1920
      height: 1080
      fps: 5 
  Backyard:
    ffmpeg:
      inputs:
        - path: 'rtsp://xxx:xxx@x.x.x.x/x:xxxx'
          roles: 
            - rtmp
            - detect
            - record     
          hwaccel_args: 
             - '-hwaccel'
             - 'vaapi'
             - '-hwaccel_device'
             - '/dev/dri/renderD128'
             - '-hwaccel_output_format'
             - 'yuv420p'    
    detect:
      width: 3840
      height: 2160
      fps: 5 
snapshots:
  enabled: true  
  retain: 
    default: 30  
record:
  enabled: true
  retain_days: 30 
ffmpeg:
  global_args: -hide_banner -loglevel warning
  hwaccel_args: 
    - -hwaccel
    - vaapi
    - -hwaccel_device
    - /dev/dri/renderD128
    - -hwaccel_output_format
    - yuv420p  
  input_args: -avoid_negative_ts make_zero -flags low_delay -strict experimental -fflags +genpts+discardcorrupt -rtsp_transport tcp -stimeout 5000000 -use_wallclock_as_timestamps 1
  output_args:
    detect: -f rawvideo -pix_fmt yuv420p
    record: -f segment -segment_time 60 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c copy -c:a aac
   # record: -f segment -segment_time 120 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c copy -an
    rtmp: -c copy -f flv    

rtmp:
  enabled: True

objects:
  track:
    - person
    - car   
    - dog
    - cat
detectors:
  coral:
    type: edgetpu
    device: usb

Relevant log output

 [segment @ 0x55887f24bf00] Non-monotonous DTS in output stream 0:1; previous: 117046, current: 117031; changing to 

FFprobe output from your camera

Camera 1 (4k that is lagging)

  Metadata:
    title           : RTSP Session
  Duration: N/A, start: 0.000000, bitrate: N/A
  Stream #0:0: Video: h264 (High), yuvj420p(pc, progressive), 3840x2160, 15 fps, 15 tbr, 90k tbn
  Stream #0:1: Audio: pcm_alaw, 8000 Hz, 1 channels, s16, 64 kb/s


Camera 2 (old doorbell, that working OK)
  Metadata:
    title           : pps_rtsp
  Duration: N/A, start: 0.000000, bitrate: N/A
  Stream #0:0: Video: h264 (Main), yuvj420p(pc, bt709, progressive), 1920x1080, 12 tbr, 90k tbn
  Stream #0:1: Audio: pcm_mulaw, 8000 Hz, mono, s16, 64 kb/s

Frigate stats

No response

Operating system

Other

Install method

Docker CLI

Coral version

USB

Network connection

Wired

Camera make and model

Asecam

Any other information that may be helpful

Running on Synology DS220+

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:14 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
NickM-27commented, Dec 10, 2022

same issue here but with asecam 4k poe cameras, using the 4k resolution for detection drop a lot of errors and no real time birdseye vision, if drop the resolution to 1080 in frigate work well but can detect persons at the botton of my backyard.

Make your own issue

0reactions
setterleecommented, Dec 10, 2022

same issue here but with asecam 4k poe cameras, using the 4k resolution for detection drop a lot of errors and no real time birdseye vision, if drop the resolution to 1080 in frigate work well but can detect persons at the botton of my backyard.

Make your own issue

Done! Thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

Asecam 4K Ultra HD 8MP H.265 POE NVR CCTV Outdoor ...
Support Smart Motion Detection,Email Alerts . An Incredible 8MP 4K Super HD IP Camera. With a high resolution of 8megapixels (3840 x 2160),...
Read more >
8MP Security Camera System 4K POE NVR Outdoor ...
With a high resolution of 8megapixels (3840 x 2160), this 8MP HD IP ... ASECAM 8MP 4K PoE NVR security camera system supports...
Read more >
How good is the CHEAPEST 4K Bullet IP Camera ... - YouTube
... link) In this video I test one of the cheapest 8MP 4K POE Bullet IP Security Cameras from Aliexpress. And this camera...
Read more >
ASECAM 4K 8MP IP Camera - Geekbuying
China Stock | Buy ASECAM 4K 8MP IP Camera, Focus 6mm, POE H.265 Onvif Metal Bullet CCTV Home Color Night Vision Security Camera...
Read more >
IP Cameras - Amazon.com
Amcrest 5MP Turret POE Camera, UltraHD Outdoor IP Camera POE with Mic/Audio, 5-Megapixel Security Surveillance Cameras, 98ft NightVision, 2.8mm Lens (103° ...
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