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

no best.jpg, triple latest.jpg blurred together, no detection #278

Closed
huliz opened this issue Oct 29, 2020 · 4 comments
Closed

no best.jpg, triple latest.jpg blurred together, no detection #278

huliz opened this issue Oct 29, 2020 · 4 comments

Comments

@huliz
Copy link

huliz commented Oct 29, 2020

First time trying to run frigate.
Setup:
HW: raspberrypi 4 (8GB), no coral yet
SW:
raspbian (latest, aarch64)
ccab4aaf/aarch64-addon-frigate 1.3
Home assistant: 2020.10.0
While I haven't enabled VPN to my reolink, I'm trying out RTSP server camera on Android.

person/best.jpg - blank (black)
latest.jpg - blurred 3 pictures (same type of picture is streamed http://ip:5000/camera)
latest

hassio config:

camera:
  - name: laptop Last Person
    platform: mqtt
    topic: frigate/laptop/person/snapshot
  - name: laptop Last Car
    platform: mqtt
    topic: frigate/laptop/car/snapshot

binary_sensor:
  - name: laptop Person
    platform: mqtt
    state_topic: "frigate/laptop/person"
    device_class: motion
    availability_topic: "frigate/available"

sensor:
  - platform: rest
    name: Frigate Debug
    resource: http://localhost:5000/debug/stats
    scan_interval: 5
    json_attributes:
      - laptop
      - detection_fps
      - detectors
    value_template: 'OK'
  - platform: template
    sensors:
            laptop_fps:
        value_template: '{{ states.sensor.frigate_debug.attributes["laptop"]["camera_fps"] }}'
        unit_of_measurement: 'FPS'
      laptop_skipped_fps:
        value_template: '{{ states.sensor.frigate_debug.attributes["laptop"]["skipped_fps"] }}'
        unit_of_measurement: 'FPS'
      laptop_detection_fps:
        value_template: '{{ states.sensor.frigate_debug.attributes["laptop"]["detection_fps"] }}'
        unit_of_measurement: 'FPS'
      frigate_detection_fps:
        value_template: '{{ states.sensor.frigate_debug.attributes["detection_fps"] }}'
        unit_of_measurement: 'FPS'
      frigate_coral_inference:
        value_template: '{{ states.sensor.frigate_debug.attributes["detectors"]["coral"]["inference_speed"] }}'
        unit_of_measurement: 'ms'

frigate config:

web_port: 5000
detectors:
  coral:
    type: edgetpu
    device: 'usb:0'
save_clips:
  clips_dir: /media/frigate
mqtt:
  host: core-mosquitto.local.hass.io
  user: frigate
  password: frigate
ffmpeg:
  global_args:
    - '-hide_banner'
    - '-loglevel'
    - info
  input_args:
    - '-avoid_negative_ts'
    - make_zero
    - '-fflags'
    - nobuffer
    - '-flags'
    - low_delay
    - '-strict'
    - experimental
    - '-fflags'
    - +genpts+discardcorrupt
    - '-rtsp_transport'
    - udp
    - '-stimeout'
    - '5000000'
    - '-use_wallclock_as_timestamps'
    - '1'
    - '-vsync'
    - '1'
    - '-r'
    - '6'
  output_args:
    - '-f'
    - rawvideo
    - '-pix_fmt'
    - yuv420p
cameras:
  laptop:
    ffmpeg:
      input: 'rtsp://10.10.53.166:5554/camera?res=640x480&fps=5&mic=on'
    height: 640
    width: 480
    fps: 5
    mask: 'poly,0,327,477,315,480,513,1,514'
    save_clips:
      enabled: true
      pre_capture: 30
      objects:
        - person
    snapshots:
      show_timestamp: true
      draw_zones: true
      draw_bounding_boxes: true

debug:

{"detection_fps":3.2,"detectors":{"coral":{"detection_start":1604003920.820938,"inference_speed":187.88,"pid":19}},"laptop":{"camera_fps":4.3,"capture_pid":21,"detection_fps":3.2,"frame_info":{"detect":1604003919.985429,"process":0.0},"pid":22,"process_fps":3.1,"skipped_fps":0.0}}

I tried to enabled saving cache videos and they seem to be showing the captured video quite right with no blurriness.

Questions:

  • what could cause the latest.jpg be blurry?
  • what could be the reason for not showing best.jpg?
  • why hassio does not show any of Last Person, Last Car and forever has state of Person "clear"?

currently there are no skipped fps reported in hassio if that matters.

debug logfile from frigate container

docker logs 6bb8619e05ec
Fontconfig error: Cannot load default config file
Starting detection process: 19
Attempting to load TPU as usb:0
Camera capture process started for laptop: 21
Camera process started for laptop: 22
Creating ffmpeg process...
ffmpeg -hide_banner -loglevel debug -avoid_negative_ts make_zero -fflags nobuffer -flags low_delay -strict experimental -fflags +genpts+discardcorrupt -rtsp_transport udp -stimeout 5000000 -use_wallclock_as_timestamps 1 -vsync 1 -r 6 -i rtsp://10.10.53.166:5554/camera?res=640x480&fps=5&mic=on -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c copy -an -map 0 /cache/laptop-%Y%m%d%H%M%S.mp4 -r 5 -f rawvideo -pix_fmt yuv420p pipe:
No EdgeTPU detected. Falling back to CPU.
 * Serving Flask app "detect_objects" (lazy loading)
 * Environment: development
 * Debug mode: off
Splitting the commandline.
Reading option '-hide_banner' ... matched as option 'hide_banner' (do not show program banner) with argument '1'.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'debug'.
Reading option '-avoid_negative_ts' ... matched as AVOption 'avoid_negative_ts' with argument 'make_zero'.
Reading option '-fflags' ... matched as AVOption 'fflags' with argument 'nobuffer'.
Reading option '-flags' ... matched as AVOption 'flags' with argument 'low_delay'.
Reading option '-strict' ...Routing option strict to both codec and muxer layer
 matched as AVOption 'strict' with argument 'experimental'.
Reading option '-fflags' ... matched as AVOption 'fflags' with argument '+genpts+discardcorrupt'.
Reading option '-rtsp_transport' ... matched as AVOption 'rtsp_transport' with argument 'udp'.
Reading option '-stimeout' ... matched as AVOption 'stimeout' with argument '5000000'.
Reading option '-use_wallclock_as_timestamps' ... matched as AVOption 'use_wallclock_as_timestamps' with argument '1'.
Reading option '-vsync' ... matched as option 'vsync' (video sync method) with argument '1'.
Reading option '-r' ... matched as option 'r' (set frame rate (Hz value, fraction or abbreviation)) with argument '6'.
Reading option '-i' ... matched as input url with argument 'rtsp://10.10.53.166:5554/camera?res=640x480&fps=5&mic=on'.
Reading option '-f' ... matched as option 'f' (force format) with argument 'segment'.
Reading option '-segment_time' ... matched as AVOption 'segment_time' with argument '10'.
Reading option '-segment_format' ... matched as AVOption 'segment_format' with argument 'mp4'.
Reading option '-reset_timestamps' ... matched as AVOption 'reset_timestamps' with argument '1'.
Reading option '-strftime' ... matched as AVOption 'strftime' with argument '1'.
Reading option '-c' ... matched as option 'c' (codec name) with argument 'copy'.
Reading option '-an' ... matched as option 'an' (disable audio) with argument '1'.
Reading option '-map' ... matched as option 'map' (set input stream mapping) with argument '0'.
Reading option '/cache/laptop-%Y%m%d%H%M%S.mp4' ... matched as output url.
Reading option '-r' ... matched as option 'r' (set frame rate (Hz value, fraction or abbreviation)) with argument '5'.
Reading option '-f' ... matched as option 'f' (force format) with argument 'rawvideo'.
Reading option '-pix_fmt' ... matched as option 'pix_fmt' (set pixel format) with argument 'yuv420p'.
Reading option 'pipe:' ... matched as output url.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option hide_banner (do not show program banner) with argument 1.
Applying option loglevel (set logging level) with argument debug.
Applying option vsync (video sync method) with argument 1.
Successfully parsed a group of options.
Parsing a group of options: input url rtsp://10.10.53.166:5554/camera?res=640x480&fps=5&mic=on.
Applying option r (set frame rate (Hz value, fraction or abbreviation)) with argument 6.
Successfully parsed a group of options.
Opening an input file: rtsp://10.10.53.166:5554/camera?res=640x480&fps=5&mic=on.
[tcp @ 0x55c001cff0] No default whitelist set
[tcp @ 0x55c001cff0] Original list of addresses:
[tcp @ 0x55c001cff0] Address 10.10.53.166 port 5554
[tcp @ 0x55c001cff0] Interleaved list of addresses:
[tcp @ 0x55c001cff0] Address 10.10.53.166 port 5554
[tcp @ 0x55c001cff0] Starting connection attempt to 10.10.53.166 port 5554
[tcp @ 0x55c001cff0] Successfully connected to 10.10.53.166 port 5554
[rtsp @ 0x55c001ab20] SDP:
v=0
o=- 0 0 IN IP4 10.10.53.166
s=RTSP_CAMERA
i=N/A
c=IN IP4 10.10.53.101
t=0 0
a=recvonly
m=video 0 RTP/AVP 96
a=rtpmap:96 H264/90000
a=control:trackID=0
a=fmtp:96 packetization-mode=1;profile-level-id=428016;sprop-parameter-sets=Z0KAFtoCgPaAeEQjUA==,aM4NiA==;
m=audio 0 RTP/AVP 97
a=rtpmap:97 MPEG4-GENERIC/22050
a=fmtp:97 streamtype=5;profile-level-id=1;mode=AAC-hbr;config=1388;sizeLength=13;indexLength=3;indexDeltaLength=3;Profile=1
a=control:trackID=1
[rtsp @ 0x55c001ab20] video codec set to: h264
[rtsp @ 0x55c001ab20] RTP Packetization Mode: 1
[rtsp @ 0x55c001ab20] RTP Profile IDC: 42 Profile IOP: 80 Level: 16
[rtsp @ 0x55c001ab20] Extradata set to 0x55c001e450 (size: 25)
[rtsp @ 0x55c001ab20] audio codec set to: aac
[rtsp @ 0x55c001ab20] audio samplerate set to: 22050
[rtsp @ 0x55c001ab20] audio channels set to: 1
[rtp @ 0x55c00217e0] No default whitelist set
[udp @ 0x55c0021b30] No default whitelist set
[udp @ 0x55c0021b30] end receive buffer size reported is 425984
[udp @ 0x55c0031df0] No default whitelist set
[udp @ 0x55c0031df0] end receive buffer size reported is 425984
[rtsp @ 0x55c001ab20] setting jitter buffer size to 500
[rtp @ 0x55c0042340] No default whitelist set
[udp @ 0x55c00425d0] No default whitelist set
[udp @ 0x55c00425d0] end receive buffer size reported is 425984
[udp @ 0x55c0052890] No default whitelist set
[udp @ 0x55c0052890] end receive buffer size reported is 425984
[rtsp @ 0x55c001ab20] setting jitter buffer size to 500
[rtsp @ 0x55c001ab20] hello state=0
[h264 @ 0x55c001e010] nal_unit_type: 7(SPS), nal_ref_idc: 3
[h264 @ 0x55c001e010] nal_unit_type: 8(PPS), nal_ref_idc: 3
[h264 @ 0x55c001e010] nal_unit_type: 7(SPS), nal_ref_idc: 3
[h264 @ 0x55c001e010] nal_unit_type: 8(PPS), nal_ref_idc: 3
On connect called
[h264 @ 0x55c001e010] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
[h264 @ 0x55c001e010] Format yuv420p chosen by get_format().
[h264 @ 0x55c001e010] Reinit context to 640x480, pix_fmt: yuv420p
[h264 @ 0x55c001e010] Frame num gap 13 11
[h264 @ 0x55c001e010] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
[h264 @ 0x55c001e010] nal_unit_type: 7(SPS), nal_ref_idc: 3
[h264 @ 0x55c001e010] nal_unit_type: 8(PPS), nal_ref_idc: 3
[h264 @ 0x55c001e010] nal_unit_type: 5(IDR), nal_ref_idc: 3
[rtsp @ 0x55c001ab20] Non-increasing DTS in stream 1: packet 17 with DTS 35368337802600, packet 18 with DTS 35368337802600
[h264 @ 0x55c001e010] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
    Last message repeated 3 times
[rtsp @ 0x55c001ab20] Non-increasing DTS in stream 1: packet 34 with DTS 35368337820178, packet 35 with DTS 35368337820178
[h264 @ 0x55c001e010] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
    Last message repeated 1 times
[rtsp @ 0x55c001ab20] All info found
[rtsp @ 0x55c001ab20] rfps: 4.916667 0.015089
[rtsp @ 0x55c001ab20] rfps: 5.000000 0.004305
[rtsp @ 0x55c001ab20] rfps: 5.083333 0.011936
[rtsp @ 0x55c001ab20] rfps: 14.985015 0.019855
Input #0, rtsp, from 'rtsp://10.10.53.166:5554/camera?res=640x480&fps=5&mic=on':
  Metadata:
    title           : RTSP_CAMERA
    comment         : N/A
  Duration: N/A, start: 1604006248.743447, bitrate: N/A
    Stream #0:0, 22, 1/90000: Video: h264, 1 reference frame, yuv420p(progressive, left), 640x480, 0/1, 5 tbr, 90k tbn, 180k tbc
    Stream #0:1, 96, 1/22050: Audio: aac, 22050 Hz, mono, fltp
Successfully opened the file.
Parsing a group of options: output url /cache/laptop-%Y%m%d%H%M%S.mp4.
Applying option f (force format) with argument segment.
Applying option c (codec name) with argument copy.
Applying option an (disable audio) with argument 1.
Applying option map (set input stream mapping) with argument 0.
Successfully parsed a group of options.
Opening an output file: /cache/laptop-%Y%m%d%H%M%S.mp4.
Successfully opened the file.
Parsing a group of options: output url pipe:.
Applying option r (set frame rate (Hz value, fraction or abbreviation)) with argument 5.
Applying option f (force format) with argument rawvideo.
Applying option pix_fmt (set pixel format) with argument yuv420p.
Successfully parsed a group of options.
Opening an output file: pipe:.
[pipe @ 0x55c00b0c60] Setting default whitelist 'crypto,data'
Successfully opened the file.
detected 4 logical cores
[h264 @ 0x55c00b23f0] nal_unit_type: 7(SPS), nal_ref_idc: 3
[h264 @ 0x55c00b23f0] nal_unit_type: 8(PPS), nal_ref_idc: 3
[segment @ 0x55c0063f60] Selected stream id:0 type:video
[segment @ 0x55c0063f60] Opening '/cache/laptop-20201029231733.mp4' for writing
[file @ 0x55c01232e0] Setting default whitelist 'file,crypto,data'
Output #0, segment, to '/cache/laptop-%Y%m%d%H%M%S.mp4':
  Metadata:
    title           : RTSP_CAMERA
    comment         : N/A
    encoder         : Lavf58.45.100
    Stream #0:0, 0, 1/12288: Video: h264, 1 reference frame, yuv420p(progressive, left), 640x480 (0x0), 0/1, q=2-31, 5 tbr, 12288 tbn, 6 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:0 -> #1:0 (h264 (native) -> rawvideo (native))
Press [q] to stop, [?] for help
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[h264 @ 0x55c00b23f0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
[h264 @ 0x55c00b23f0] Format yuv420p chosen by get_format().
[h264 @ 0x55c00b23f0] Reinit context to 640x480, pix_fmt: yuv420p
[h264 @ 0x55c00b23f0] Frame num gap 5 3
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[h264 @ 0x55c00b23f0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[h264 @ 0x55c00b23f0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[h264 @ 0x55c00b23f0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[h264 @ 0x55c00b23f0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[h264 @ 0x55c00b23f0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[h264 @ 0x55c00b23f0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[h264 @ 0x55c00b23f0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[h264 @ 0x55c00b23f0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[h264 @ 0x55c00b23f0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[h264 @ 0x55c00b23f0] nal_unit_type: 7(SPS), nal_ref_idc: 3
[h264 @ 0x55c00b23f0] nal_unit_type: 8(PPS), nal_ref_idc: 3
[h264 @ 0x55c00b23f0] nal_unit_type: 5(IDR), nal_ref_idc: 3
[graph 0 input from stream 0:0 @ 0x55c008e970] Setting 'video_size' to value '640x480'
[graph 0 input from stream 0:0 @ 0x55c008e970] Setting 'pix_fmt' to value '0'
[graph 0 input from stream 0:0 @ 0x55c008e970] Setting 'time_base' to value '1/6'
[graph 0 input from stream 0:0 @ 0x55c008e970] Setting 'pixel_aspect' to value '0/1'
[graph 0 input from stream 0:0 @ 0x55c008e970] Setting 'frame_rate' to value '6/1'
[graph 0 input from stream 0:0 @ 0x55c008e970] w:640 h:480 pixfmt:yuv420p tb:1/6 fr:6/1 sar:0/1
[format @ 0x55c0099420] Setting 'pix_fmts' to value 'yuv420p'
[AVFilterGraph @ 0x55c0198620] query_formats: 4 queried, 3 merged, 0 already done, 0 delayed
[segment @ 0x55c0063f60] segment:'/cache/laptop-20201029231733.mp4' starts with packet stream:0 pts:80355 pts_time:6.53931 frame:0
[segment @ 0x55c0063f60] stream:0 start_pts_time:0 pts:80355 pts_time:6.53931 dts:80355 dts_time:6.53931 -> pts:80355 pts_time:6.53931 dts:80355 dts_time:6.53931
Output #1, rawvideo, to 'pipe:':
  Metadata:
    title           : RTSP_CAMERA
    comment         : N/A
    encoder         : Lavf58.45.100
    Stream #1:0, 0, 1/5: Video: rawvideo, 1 reference frame (I420 / 0x30323449), yuv420p(left), 640x480, 0/1, q=2-31, 18432 kb/s, 5 fps, 5 tbn, 5 tbc
    Metadata:
      encoder         : Lavc58.91.100 rawvideo
Clipping frame in rate conversion by 0.000008
[h264 @ 0x55c00b23f0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
[segment @ 0x55c0063f60] stream:0 start_pts_time:0 pts:81757 pts_time:6.6534 dts:81757 dts_time:6.6534 -> pts:81757 pts_time:6.6534 dts:81757 dts_time:6.6534
Clipping frame in rate conversion by 0.166664
[h264 @ 0x55c00b23f0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
[segment @ 0x55c0063f60] stream:0 start_pts_time:0 pts:84698 pts_time:6.89274 dts:84698 dts_time:6.89274 -> pts:84698 pts_time:6.89274 dts:84698 dts_time:6.89274
Clipping frame in rate conversion by 0.333321
[h264 @ 0x55c00b23f0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
[segment @ 0x55c0063f60] stream:0 start_pts_time:0 pts:86719 pts_time:7.05721 dts:86719 dts_time:7.05721 -> pts:86719 pts_time:7.05721 dts:86719 dts_time:7.05721
Clipping frame in rate conversion by 0.499992
[h264 @ 0x55c00b23f0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
[segment @ 0x55c0063f60] stream:0 start_pts_time:0 pts:89662 pts_time:7.29671 dts:89662 dts_time:7.29671 -> pts:89662 pts_time:7.29671 dts:89662 dts_time:7.29671
Past duration 0.666664 too large
[h264 @ 0x55c00b23f0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
[segment @ 0x55c0063f60] stream:0 start_pts_time:0 pts:91632 pts_time:7.45703 dts:91632 dts_time:7.45703 -> pts:91632 pts_time:7.45703 dts:91632 dts_time:7.45703
Past duration 0.833321 too large
[h264 @ 0x55c00b23f0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
[segment @ 0x55c0063f60] stream:0 start_pts_time:0 pts:94293 pts_time:7.67358 dts:94293 dts_time:7.67358 -> pts:94293 pts_time:7.67358 dts:94293 dts_time:7.67358
[h264 @ 0x55c00b23f0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
[segment @ 0x55c0063f60] stream:0 start_pts_time:0 pts:96717 pts_time:7.87085 dts:96717 dts_time:7.87085 -> pts:96717 pts_time:7.87085 dts:96717 dts_time:7.87085
[h264 @ 0x55c00b23f0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
[segment @ 0x55c0063f60] stream:0 start_pts_time:0 pts:99044 pts_time:8.06022 dts:99044 dts_time:8.06022 -> pts:99044 pts_time:8.06022 dts:99044 dts_time:8.06022
[h264 @ 0x55c00b23f0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
[segment @ 0x55c0063f60] stream:0 start_pts_time:0 pts:101381 pts_time:8.25041 dts:101381 dts_time:8.25041 -> pts:101381 pts_time:8.25041 dts:101381 dts_time:8.25041
[h264 @ 0x55c00b23f0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
[segment @ 0x55c0063f60] stream:0 start_pts_time:0 pts:103848 pts_time:8.45117 dts:103848 dts_time:8.45117 -> pts:103848 pts_time:8.45117 dts:103848 dts_time:8.45117
[h264 @ 0x55c00b23f0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
[segment @ 0x55c0063f60] stream:0 start_pts_time:0 pts:106290 pts_time:8.6499 dts:106290 dts_time:8.6499 -> pts:106290 pts_time:8.6499 dts:106290 dts_time:8.6499
[h264 @ 0x55c00b23f0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
[segment @ 0x55c0063f60] stream:0 start_pts_time:0 pts:108769 pts_time:8.85164 dts:108769 dts_time:8.85164 -> pts:108769 pts_time:8.85164 dts:108769 dts_time:8.85164
[h264 @ 0x55c00b23f0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
[segment @ 0x55c0063f60] stream:0 start_pts_time:0 pts:111204 pts_time:9.0498 dts:111204 dts_time:9.0498 -> pts:111204 pts_time:9.0498 dts:111204 dts_time:9.0498
*** dropping frame 12 from stream 0 at ts 10
[h264 @ 0x55c00b23f0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1ed=1.85x    
[segment @ 0x55c0063f60] stream:0 start_pts_time:0 pts:113702 pts_time:9.25309 dts:113702 dts_time:9.25309 -> pts:113702 pts_time:9.25309 dts:113702 dts_time:9.25309
[h264 @ 0x55c00b23f0] nal_unit_type: 7(SPS), nal_ref_idc: 3
[h264 @ 0x55c00b23f0] nal_unit_type: 8(PPS), nal_ref_idc: 3
[h264 @ 0x55c00b23f0] nal_unit_type: 5(IDR), nal_ref_idc: 3
[segment @ 0x55c0063f60] stream:0 start_pts_time:0 pts:116137 pts_time:9.45125 dts:116137 dts_time:9.45125 -> pts:116137 pts_time:9.45125 dts:116137 dts_time:9.45125
[h264 @ 0x55c00b23f0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
[segment @ 0x55c0063f60] stream:0 start_pts_time:0 pts:118569 pts_time:9.64917 dts:118569 dts_time:9.64917 -> pts:118569 pts_time:9.64917 dts:118569 dts_time:9.64917
[h264 @ 0x55c00b23f0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1ed=1.77x    
[segment @ 0x55c0063f60] stream:0 start_pts_time:0 pts:121076 pts_time:9.85319 dts:121076 dts_time:9.85319 -> pts:121076 pts_time:9.85319 dts:121076 dts_time:9.85319
[h264 @ 0x55c00b23f0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
[segment @ 0x55c0063f60] stream:0 start_pts_time:0 pts:123561 pts_time:10.0554 dts:123561 dts_time:10.0554 -> pts:123561 pts_time:10.0554 dts:123561 dts_time:10.0554
[h264 @ 0x55c00b23f0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
[segment @ 0x55c0063f60] stream:0 start_pts_time:0 pts:126022 pts_time:10.2557 dts:126022 dts_time:10.2557 -> pts:126022 pts_time:10.2557 dts:126022 dts_time:10.2557
*** dropping frame 17 from stream 0 at ts 15
[h264 @ 0x55c00b23f0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1ed=1.66x    
[segment @ 0x55c0063f60] stream:0 start_pts_time:0 pts:130673 pts_time:10.6342 dts:130673 dts_time:10.6342 -> pts:130673 pts_time:10.6342 dts:130673 dts_time:10.6342
[h264 @ 0x55c00b23f0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
[segment @ 0x55c0063f60] stream:0 start_pts_time:0 pts:130876 pts_time:10.6507 dts:130876 dts_time:10.6507 -> pts:130876 pts_time:10.6507 dts:130876 dts_time:10.6507
[h264 @ 0x55c00b23f0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
[segment @ 0x55c0063f60] stream:0 start_pts_time:0 pts:133497 pts_time:10.864 dts:133497 dts_time:10.864 -> pts:133497 pts_time:10.864 dts:133497 dts_time:10.864
[h264 @ 0x55c00b23f0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1ed= 1.6x    
[segment @ 0x55c0063f60] stream:0 start_pts_time:0 pts:135815 pts_time:11.0527 dts:135815 dts_time:11.0527 -> pts:135815 pts_time:11.0527 dts:135815 dts_time:11.0527
[h264 @ 0x55c00b23f0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
[segment @ 0x55c0063f60] stream:0 start_pts_time:0 pts:138227 pts_time:11.2489 dts:138227 dts_time:11.2489 -> pts:138227 pts_time:11.2489 dts:138227 dts_time:11.2489
[h264 @ 0x55c00b23f0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
[segment @ 0x55c0063f60] stream:0 start_pts_time:0 pts:140739 pts_time:11.4534 dts:140739 dts_time:11.4534 -> pts:140739 pts_time:11.4534 dts:140739 dts_time:11.4534
*** dropping frame 22 from stream 0 at ts 20
[h264 @ 0x55c00b23f0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1ed=1.57x    
[segment @ 0x55c0063f60] stream:0 start_pts_time:0 pts:143214 pts_time:11.6548 dts:143214 dts_time:11.6548 -> pts:143214 pts_time:11.6548 dts:143214 dts_time:11.6548
[h264 @ 0x55c00b23f0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
[segment @ 0x55c0063f60] stream:0 start_pts_time:0 pts:145749 pts_time:11.8611 dts:145749 dts_time:11.8611 -> pts:145749 pts_time:11.8611 dts:145749 dts_time:11.8611
[h264 @ 0x55c00b23f0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
[segment @ 0x55c0063f60] stream:0 start_pts_time:0 pts:148301 pts_time:12.0688 dts:148301 dts_time:12.0688 -> pts:148301 pts_time:12.0688 dts:148301 dts_time:12.0688
[h264 @ 0x55c00b23f0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1ed=1.54x    
[segment @ 0x55c0063f60] stream:0 start_pts_time:0 pts:150809 pts_time:12.2729 dts:150809 dts_time:12.2729 -> pts:150809 pts_time:12.2729 dts:150809 dts_time:12.2729
[h264 @ 0x55c00b23f0] nal_unit_type: 7(SPS), nal_ref_idc: 3
[h264 @ 0x55c00b23f0] nal_unit_type: 8(PPS), nal_ref_idc: 3
[h264 @ 0x55c00b23f0] nal_unit_type: 5(IDR), nal_ref_idc: 3
Not writing 'clli' atom. No content light level info.
Not writing 'mdcv' atom. Missing mastering metadata.
[segment @ 0x55c0063f60] segment:'/cache/laptop-20201029231733.mp4' count:0 ended
[AVIOContext @ 0x55c0081bb0] Statistics: 2 seeks, 4 writeouts
[segment @ 0x55c0063f60] Opening '/cache/laptop-20201029231741.mp4' for writing
[file @ 0x55c01232e0] Setting default whitelist 'file,crypto,data'
[segment @ 0x55c0063f60] segment:'/cache/laptop-20201029231741.mp4' starts with packet stream:0 pts:152959 pts_time:12.4478 frame:30
[segment @ 0x55c0063f60] stream:0 start_pts_time:12.4478 pts:152959 pts_time:12.4478 dts:152959 dts_time:12.4478 -> pts:0 pts_time:0 dts:0 dts_time:0
[h264 @ 0x55c00b23f0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1ed=1.49x    
[segment @ 0x55c0063f60] stream:0 start_pts_time:12.4478 pts:155432 pts_time:12.6491 dts:155432 dts_time:12.6491 -> pts:2473 pts_time:0.201253 dts:2473 dts_time:0.201253
*** dropping frame 27 from stream 0 at ts 25
[h264 @ 0x55c00b23f0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
[segment @ 0x55c0063f60] stream:0 start_pts_time:12.4478 pts:157871 pts_time:12.8476 dts:157871 dts_time:12.8476 -> pts:4912 pts_time:0.39974 dts:4912 dts_time:0.39974
[h264 @ 0x55c00b23f0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
[segment @ 0x55c0063f60] stream:0 start_pts_time:12.4478 pts:160336 pts_time:13.0482 dts:160336 dts_time:13.0482 -> pts:7377 pts_time:0.600342 dts:7377 dts_time:0.600342
[h264 @ 0x55c00b23f0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1ed=1.47x    
[segment @ 0x55c0063f60] stream:0 start_pts_time:12.4478 pts:162796 pts_time:13.2484 dts:162796 dts_time:13.2484 -> pts:9837 pts_time:0.800537 dts:9837 dts_time:0.800537
[h264 @ 0x55c00b23f0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
[segment @ 0x55c0063f60] stream:0 start_pts_time:12.4478 pts:165908 pts_time:13.5016 dts:165908 dts_time:13.5016 -> pts:12949 pts_time:1.05379 dts:12949 dts_time:1.05379
[h264 @ 0x55c00b23f0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
[segment @ 0x55c0063f60] stream:0 start_pts_time:12.4478 pts:167816 pts_time:13.6569 dts:167816 dts_time:13.6569 -> pts:14857 pts_time:1.20907 dts:14857 dts_time:1.20907
[h264 @ 0x55c00b23f0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1ed=1.44x    
[segment @ 0x55c0063f60] stream:0 start_pts_time:12.4478 pts:170152 pts_time:13.847 dts:170152 dts_time:13.847 -> pts:17193 pts_time:1.39917 dts:17193 dts_time:1.39917
*** dropping frame 32 from stream 0 at ts 30
[h264 @ 0x55c00b23f0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
[segment @ 0x55c0063f60] stream:0 start_pts_time:12.4478 pts:172613 pts_time:14.0473 dts:172613 dts_time:14.0473 -> pts:19654 pts_time:1.59945 dts:19654 dts_time:1.59945
[h264 @ 0x55c00b23f0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1ed=1.41x    
[segment @ 0x55c0063f60] stream:0 start_pts_time:12.4478 pts:175074 pts_time:14.2476 dts:175074 dts_time:14.2476 -> pts:22115 pts_time:1.79972 dts:22115 dts_time:1.79972
[h264 @ 0x55c00b23f0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
[segment @ 0x55c0063f60] stream:0 start_pts_time:12.4478 pts:177542 pts_time:14.4484 dts:177542 dts_time:14.4484 -> pts:24583 pts_time:2.00057 dts:24583 dts_time:2.00057
[h264 @ 0x55c00b23f0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
[segment @ 0x55c0063f60] stream:0 start_pts_time:12.4478 pts:180123 pts_time:14.6584 dts:180123 dts_time:14.6584 -> pts:27164 pts_time:2.21061 dts:27164 dts_time:2.21061
[h264 @ 0x55c00b23f0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1ed= 1.4x    
[segment @ 0x55c0063f60] stream:0 start_pts_time:12.4478 pts:182422 pts_time:14.8455 dts:182422 dts_time:14.8455 -> pts:29463 pts_time:2.39771 dts:29463 dts_time:2.39771
[h264 @ 0x55c00b23f0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
[segment @ 0x55c0063f60] stream:0 start_pts_time:12.4478 pts:184876 pts_time:15.0452 dts:184876 dts_time:15.0452 -> pts:31917 pts_time:2.59741 dts:31917 dts_time:2.59741
*** dropping frame 37 from stream 0 at ts 35
[h264 @ 0x55c00b23f0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
[segment @ 0x55c0063f60] stream:0 start_pts_time:12.4478 pts:187619 pts_time:15.2685 dts:187619 dts_time:15.2685 -> pts:34660 pts_time:2.82064 dts:34660 dts_time:2.82064
[h264 @ 0x55c00b23f0] nal_unit_type: 7(SPS), nal_ref_idc: 3 bitrate=N/A dup=0 drop=6 speed=1.38x    
[h264 @ 0x55c00b23f0] nal_unit_type: 8(PPS), nal_ref_idc: 3
[h264 @ 0x55c00b23f0] nal_unit_type: 5(IDR), nal_ref_idc: 3
[segment @ 0x55c0063f60] stream:0 start_pts_time:12.4478 pts:189858 pts_time:15.4507 dts:189858 dts_time:15.4507 -> pts:36899 pts_time:3.00285 dts:36899 dts_time:3.00285
[h264 @ 0x55c00b23f0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
[segment @ 0x55c0063f60] stream:0 start_pts_time:12.4478 pts:192392 pts_time:15.6569 dts:192392 dts_time:15.6569 -> pts:39433 pts_time:3.20907 dts:39433 dts_time:3.20907
[h264 @ 0x55c00b23f0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1ed=1.35x    
[segment @ 0x55c0063f60] stream:0 start_pts_time:12.4478 pts:194789 pts_time:15.852 dts:194789 dts_time:15.852 -> pts:41830 pts_time:3.40413 dts:41830 dts_time:3.40413
[h264 @ 0x55c00b23f0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
[segment @ 0x55c0063f60] stream:0 start_pts_time:12.4478 pts:197389 pts_time:16.0636 dts:197389 dts_time:16.0636 -> pts:44430 pts_time:3.61572 dts:44430 dts_time:3.61572
[h264 @ 0x55c00b23f0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
[segment @ 0x55c0063f60] stream:0 start_pts_time:12.4478 pts:199896 pts_time:16.2676 dts:199896 dts_time:16.2676 -> pts:46937 pts_time:3.81974 dts:46937 dts_time:3.81974
*** dropping frame 42 from stream 0 at ts 40
[h264 @ 0x55c00b23f0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1ed=1.35x    
[segment @ 0x55c0063f60] stream:0 start_pts_time:12.4478 pts:202357 pts_time:16.4679 dts:202357 dts_time:16.4679 -> pts:49398 pts_time:4.02002 dts:49398 dts_time:4.02002
[h264 @ 0x55c00b23f0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
[segment @ 0x55c0063f60] stream:0 start_pts_time:12.4478 pts:204977 pts_time:16.6811 dts:204977 dts_time:16.6811 -> pts:52018 pts_time:4.23324 dts:52018 dts_time:4.23324
[h264 @ 0x55c00b23f0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
[segment @ 0x55c0063f60] stream:0 start_pts_time:12.4478 pts:207059 pts_time:16.8505 dts:207059 dts_time:16.8505 -> pts:54100 pts_time:4.40267 dts:54100 dts_time:4.40267
[h264 @ 0x55c00b23f0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1ed=1.33x    
[segment @ 0x55c0063f60] stream:0 start_pts_time:12.4478 pts:209445 pts_time:17.0447 dts:209445 dts_time:17.0447 -> pts:56486 pts_time:4.59684 dts:56486 dts_time:4.59684
[h264 @ 0x55c00b23f0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
[segment @ 0x55c0063f60] stream:0 start_pts_time:12.4478 pts:211924 pts_time:17.2464 dts:211924 dts_time:17.2464 -> pts:58965 pts_time:4.79858 dts:58965 dts_time:4.79858
[h264 @ 0x55c00b23f0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
[segment @ 0x55c0063f60] stream:0 start_pts_time:12.4478 pts:214471 pts_time:17.4537 dts:214471 dts_time:17.4537 -> pts:61512 pts_time:5.00586 dts:61512 dts_time:5.00586
*** dropping frame 47 from stream 0 at ts 45
[h264 @ 0x55c00b23f0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1ed=1.32x    
[segment @ 0x55c0063f60] stream:0 start_pts_time:12.4478 pts:216786 pts_time:17.6421 dts:216786 dts_time:17.6421 -> pts:63827 pts_time:5.19425 dts:63827 dts_time:5.19425
[h264 @ 0x55c00b23f0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
[segment @ 0x55c0063f60] stream:0 start_pts_time:12.4478 pts:219598 pts_time:17.8709 dts:219598 dts_time:17.8709 -> pts:66639 pts_time:5.4231 dts:66639 dts_time:5.4231
[h264 @ 0x55c00b23f0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1ed= 1.3x    
[segment @ 0x55c0063f60] stream:0 start_pts_time:12.4478 pts:221706 pts_time:18.0425 dts:221706 dts_time:18.0425 -> pts:68747 pts_time:5.59465 dts:68747 dts_time:5.59465
[h264 @ 0x55c00b23f0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
[segment @ 0x55c0063f60] stream:0 start_pts_time:12.4478 pts:224163 pts_time:18.2424 dts:224163 dts_time:18.2424 -> pts:71204 pts_time:5.7946 dts:71204 dts_time:5.7946
[h264 @ 0x55c00b23f0] nal_unit_type: 7(SPS), nal_ref_idc: 3
[h264 @ 0x55c00b23f0] nal_unit_type: 8(PPS), nal_ref_idc: 3
[h264 @ 0x55c00b23f0] nal_unit_type: 5(IDR), nal_ref_idc: 3
[segment @ 0x55c0063f60] stream:0 start_pts_time:12.4478 pts:227811 pts_time:18.5393 dts:227811 dts_time:18.5393 -> pts:74852 pts_time:6.09147 dts:74852 dts_time:6.09147
[h264 @ 0x55c00b23f0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1ed= 1.3x    
[segment @ 0x55c0063f60] stream:0 start_pts_time:12.4478 pts:229181 pts_time:18.6508 dts:229181 dts_time:18.6508 -> pts:76222 pts_time:6.20296 dts:76222 dts_time:6.20296
*** dropping frame 52 from stream 0 at ts 50
[h264 @ 0x55c00b23f0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
[segment @ 0x55c0063f60] stream:0 start_pts_time:12.4478 pts:231516 pts_time:18.8408 dts:231516 dts_time:18.8408 -> pts:78557 pts_time:6.39299 dts:78557 dts_time:6.39299
[h264 @ 0x55c00b23f0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
[segment @ 0x55c0063f60] stream:0 start_pts_time:12.4478 pts:234094 pts_time:19.0506 dts:234094 dts_time:19.0506 -> pts:81135 pts_time:6.60278 dts:81135 dts_time:6.60278
[h264 @ 0x55c00b23f0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1ed=1.29x    
[segment @ 0x55c0063f60] stream:0 start_pts_time:12.4478 pts:236862 pts_time:19.2759 dts:236862 dts_time:19.2759 -> pts:83903 pts_time:6.82804 dts:83903 dts_time:6.82804
[h264 @ 0x55c00b23f0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
[segment @ 0x55c0063f60] stream:0 start_pts_time:12.4478 pts:238888 pts_time:19.4408 dts:238888 dts_time:19.4408 -> pts:85929 pts_time:6.99292 dts:85929 dts_time:6.99292
[h264 @ 0x55c00b23f0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
[segment @ 0x55c0063f60] stream:0 start_pts_time:12.4478 pts:242053 pts_time:19.6983 dts:242053 dts_time:19.6983 -> pts:89094 pts_time:7.25049 dts:89094 dts_time:7.25049
[h264 @ 0x55c00b23f0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1ed=1.28x    
[segment @ 0x55c0063f60] stream:0 start_pts_time:12.4478 pts:243880 pts_time:19.847 dts:243880 dts_time:19.847 -> pts:90921 pts_time:7.39917 dts:90921 dts_time:7.39917
*** dropping frame 57 from stream 0 at ts 55
[h264 @ 0x55c00b23f0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
[segment @ 0x55c0063f60] stream:0 start_pts_time:12.4478 pts:246270 pts_time:20.0415 dts:246270 dts_time:20.0415 -> pts:93311 pts_time:7.59367 dts:93311 dts_time:7.59367
[h264 @ 0x55c00b23f0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1eed=1.26x    
[segment @ 0x55c0063f60] stream:0 start_pts_time:12.4478 pts:248732 pts_time:20.2419 dts:248732 dts_time:20.2419 -> pts:95773 pts_time:7.79403 dts:95773 dts_time:7.79403
[h264 @ 0x55c00b23f0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
[segment @ 0x55c0063f60] stream:0 start_pts_time:12.4478 pts:251202 pts_time:20.4429 dts:251202 dts_time:20.4429 -> pts:98243 pts_time:7.99504 dts:98243 dts_time:7.99504
[h264 @ 0x55c00b23f0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
[segment @ 0x55c0063f60] stream:0 start_pts_time:12.4478 pts:254010 pts_time:20.6714 dts:254010 dts_time:20.6714 -> pts:101051 pts_time:8.22355 dts:101051 dts_time:8.22355
[h264 @ 0x55c00b23f0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1eed=1.26x    
[segment @ 0x55c0063f60] stream:0 start_pts_time:12.4478 pts:256066 pts_time:20.8387 dts:256066 dts_time:20.8387 -> pts:103107 pts_time:8.39087 dts:103107 dts_time:8.39087
[h264 @ 0x55c00b23f0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
[segment @ 0x55c0063f60] stream:0 start_pts_time:12.4478 pts:258509 pts_time:21.0375 dts:258509 dts_time:21.0375 -> pts:105550 pts_time:8.58968 dts:105550 dts_time:8.58968
*** dropping frame 62 from stream 0 at ts 60
@blakeblackshear
Copy link
Owner

I don't see any obvious reason that would be happening, but I have seen issues with using UDP since packets are often dropped. What android app are you using?

@huliz
Copy link
Author

huliz commented Oct 29, 2020

I've tried with this app: https://play.google.com/store/apps/details?id=com.miv.rtspcamera&hl=en&gl=US

It did not seem to work on tcp, took me a while to figure it out and pass the config change.
If you know any other app (can be ios too), I'd be happy to try it out. I also tried streaming a laptop camera on Ubuntu, but that did not seem to work (PEBKAC)

@blakeblackshear
Copy link
Owner

Try this app: https://play.google.com/store/apps/details?id=com.pas.webcam&hl=en&gl=US

Set the resolution to 640x480.

Here is my camera config:

  cam1:
    ffmpeg:
      input: http://192.168.2.225:8080/video
      global_args:
        - -hide_banner
        - -loglevel
        - info
      input_args:
        - -avoid_negative_ts
        - make_zero
        - -fflags
        - nobuffer
        - -flags
        - low_delay
        - -strict
        - experimental
        - -fflags
        - +genpts+discardcorrupt
        - -use_wallclock_as_timestamps
        - '1'
    width: 640
    height: 480
    fps: 5

@huliz
Copy link
Author

huliz commented Oct 30, 2020

first of all, thanks a lot for your quick response.
secondly, it works with "ip web cam" android app and your kindly offered config file.
thank you for your efforts.
I can't wait to see this project progressing further and trying my hands on my reolink cameras and coral usb device.

billimek added a commit to billimek/k8s-gitops that referenced this issue Nov 3, 2020
luoj1 pushed a commit to luoj1/frigate that referenced this issue Apr 29, 2023
* doc: add development guide

* feat: add pre-push hooks

* doc: development guide

* doc: development guide

* docs: verify pre-push

* doc: verify pre-push

* docs: updated readme

* docs: fix warning message
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants