[Support]: Downloaded clips are corrupted #10943
Answered
by
NickM-27
clowncracker
asked this question in
General Support
-
Describe the problem you are havingI've tried downloading clips in Firefox, Chrome, in Home Assistant, and on my phone but every time I download a clip it's corrupted. Then my cameras stop working momentarily and I then get errors in my Frigate logs. I can view the clips in the Frigate webUI and in Home Assistant. Version0.13.2-6476f8a Frigate config filemqtt:
host: xxx
user: xxx
password: xxx
go2rtc:
streams:
front_door:
- "ffmpeg:http://xxx/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=xxx&password=xxx#video=copy#audio=copy#audio=opus"
- rtsp://http://xxx/Preview_01_sub
garage:
- "ffmpeg:http://xxx/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=xxx&password=xxx#video=copy#audio=copy#audio=opus"
office:
- "ffmpeg:http://xxx/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=xxx&password=xxx#video=copy#audio=copy#audio=opus"
detectors:
coral:
type: edgetpu
device: usb
cameras:
front_door:
mqtt:
timestamp: false
bounding_box: false
crop: true
quality: 100
height: 500
required_zones:
- entryway
ffmpeg:
output_args:
record: preset-record-generic-audio-aac
hwaccel_args: preset-vaapi
inputs:
- path: rtsp://127.0.0.1:8554/front_door?video=copy&audio=aac
input_args: preset-rtsp-restream
roles:
- detect
- record
detect:
width: 2560
height: 1920
fps: 5
record:
enabled: true
retain:
days: 14
mode: all
objects:
track:
- person
- car
filters:
person:
mask:
- 438,916,469,598,556,260,656,0,922,0,1051,286,1028,669,1021,976,1023,1077,997,1111,924,1108,823,1103,611,1091,439,1082
- 1151,1070,1171,1115,1271,1115,1480,1110,1768,1106,2115,1081,2301,1054,2299,872,2277,689,2236,522,2134,528,1897,471,1516,423,1156,426
car:
mask:
- 438,916,469,598,556,260,656,0,922,0,1051,286,1028,669,1021,976,1023,1077,997,1111,924,1108,823,1103,611,1091,439,1082
- 1151,1070,1171,1115,1271,1115,1480,1110,1768,1106,2115,1081,2301,1054,2299,872,2277,689,2236,522,2134,528,1897,471,1516,423,1156,426
snapshots:
enabled: true
zones:
entryway:
coordinates: 2560,1920,2560,1681,2173,1506,1928,1579,1593,1321,930,1404,475,1307,321,1319,0,1319,0,1920
garage:
ffmpeg:
output_args:
record: preset-record-generic-audio-aac
hwaccel_args: preset-vaapi
inputs:
- path: rtsp://127.0.0.1:8554/garage?video=copy&audio=aac
input_args: preset-rtsp-restream
roles:
- detect
- record
detect:
enabled: true
width: 2560
height: 1920
fps: 5
record:
enabled: true
retain:
days: 2
mode: all
objects:
track:
- person
filters:
person:
mask:
- 0,0,2560,0,2560,353,963,383,486,431,0,529
- 216,1920,906,1920,627,978,268,1022,165,1617,160,1767
snapshots:
enabled: true
office:
ffmpeg:
output_args:
record: preset-record-generic-audio-aac
hwaccel_args: preset-vaapi
inputs:
- path: rtsp://127.0.0.1:8554/office?video=copy&audio=aac
input_args: preset-rtsp-restream
roles:
- audio
- detect
- record
audio:
enabled: true
detect:
enabled: true
width: 2560
height: 1920
fps: 5
record:
enabled: true
retain:
days: 2
mode: all
events:
objects: []
objects:
track:
- person
filters:
person:
mask:
- 465,237,173,300,292,945,549,908
snapshots:
enabled: false Relevant log output2024-04-11 10:36:29.855098573 [2024-04-11 10:36:29] frigate.http ERROR : [mov,mp4,m4a,3gp,3g2,mj2 @ 0x55d945557fc0] Auto-inserting h264_mp4toannexb bitstream filter
2024-04-11 10:36:29.855102175 Input #0, concat, from '/dev/stdin':
2024-04-11 10:36:29.855103198 Duration: N/A, start: -0.051000, bitrate: 5281 kb/s
2024-04-11 10:36:29.855104433 Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(progressive), 2560x1920, 5244 kb/s, 20.01 fps, 20 tbr, 90k tbn
2024-04-11 10:36:29.855105269 Metadata:
2024-04-11 10:36:29.855106129 handler_name : VideoHandler
2024-04-11 10:36:29.855106979 vendor_id : [0][0][0][0]
2024-04-11 10:36:29.855107890 Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 16000 Hz, mono, fltp, 36 kb/s
2024-04-11 10:36:29.855108620 Metadata:
2024-04-11 10:36:29.855109395 handler_name : SoundHandler
2024-04-11 10:36:29.855110182 vendor_id : [0][0][0][0]
2024-04-11 10:36:29.855111078 Output #0, mp4, to '/tmp/cache/clip_front_door_1712768993.707052-1712769120.649732.mp4':
2024-04-11 10:36:29.855111816 Metadata:
2024-04-11 10:36:29.855112592 encoder : Lavf59.27.100
2024-04-11 10:36:29.855113629 Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(progressive), 2560x1920, q=2-31, 5244 kb/s, 20.01 fps, 20 tbr, 90k tbn
2024-04-11 10:36:29.855114363 Metadata:
2024-04-11 10:36:29.855115133 handler_name : VideoHandler
2024-04-11 10:36:29.855115920 vendor_id : [0][0][0][0]
2024-04-11 10:36:29.855116885 Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 16000 Hz, mono, fltp, 36 kb/s
2024-04-11 10:36:29.855117641 Metadata:
2024-04-11 10:36:29.855118426 handler_name : SoundHandler
2024-04-11 10:36:29.855119172 vendor_id : [0][0][0][0]
2024-04-11 10:36:29.855119872 Stream mapping:
2024-04-11 10:36:29.855120633 Stream #0:0 -> #0:0 (copy)
2024-04-11 10:36:29.855146029 Stream #0:1 -> #0:1 (copy)
2024-04-11 10:36:29.855146998 frame= 0 fps=0.0 q=-1.0 size= 0kB time=00:00:00.06 bitrate= 6.0kbits/s speed=6.4e+04x
2024-04-11 10:36:29.855147893 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x55d945558280] Auto-inserting h264_mp4toannexb bitstream filter
2024-04-11 10:36:29.855148761 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x55d94556aac0] Auto-inserting h264_mp4toannexb bitstream filter
2024-04-11 10:36:29.855149691 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x55d94556ad80] Auto-inserting h264_mp4toannexb bitstream filter
2024-04-11 10:36:29.855150607 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x55d94558d7c0] Auto-inserting h264_mp4toannexb bitstream filter
2024-04-11 10:36:29.855151578 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x55d9456979c0] Auto-inserting h264_mp4toannexb bitstream filter
2024-04-11 10:36:29.855152527 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x55d945574500] Auto-inserting h264_mp4toannexb bitstream filter
2024-04-11 10:36:29.855153516 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x55d94568f0c0] Auto-inserting h264_mp4toannexb bitstream filter
2024-04-11 10:36:29.855154311 Last message repeated 2 times
2024-04-11 10:36:29.855155153 av_interleaved_write_frame(): No space left on device
2024-04-11 10:36:29.855156073 [mp4 @ 0x55d94559abc0] Starting second pass: moving the moov atom to the beginning of the file
2024-04-11 10:36:29.855157050 Error writing trailer of /tmp/cache/clip_front_door_1712768993.707052-1712769120.649732.mp4: No space left on device
2024-04-11 10:36:29.855157970 frame= 1761 fps=0.0 q=-1.0 Lsize= 56576kB time=00:01:28.23 bitrate=5253.0kbits/s speed= 212x
2024-04-11 10:36:29.855158917 video:56691kB audio:414kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
2024-04-11 10:36:29.855159904 Error closing file /tmp/cache/clip_front_door_1712768993.707052-1712769120.649732.mp4: No space left on device
2024-04-11 10:36:29.855160619 Conversion failed!
2024-04-11 10:36:29.855161296
2024-04-11 10:36:29.917071395 [2024-04-11 10:36:29] frigate.video ERROR : garage: Unable to read frames from ffmpeg process.
2024-04-11 10:36:29.917150871 [2024-04-11 10:36:29] frigate.video ERROR : garage: ffmpeg process is not running. exiting capture thread...
2024-04-11 10:36:29.982552527 [2024-04-11 10:36:29] frigate.video ERROR : front_door: Unable to read frames from ffmpeg process.
2024-04-11 10:36:29.982568648 [2024-04-11 10:36:29] frigate.video ERROR : front_door: ffmpeg process is not running. exiting capture thread...
2024-04-11 10:36:30.202937262 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x14f7940132c0] moov atom not found
2024-04-11 10:36:30.203016117 [ERROR:[email protected]] global cap.cpp:164 open VIDEOIO(CV_IMAGES): raised OpenCV exception:
2024-04-11 10:36:30.203017671
2024-04-11 10:36:30.203018931 OpenCV(4.7.0) /io/opencv/modules/videoio/src/cap_images.cpp:267: error: (-215:Assertion failed) number < max_number in function 'icvExtractPattern'
2024-04-11 10:36:30.203019730
2024-04-11 10:36:30.203020500
2024-04-11 10:36:30.266604400 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x14f7940132c0] moov atom not found
2024-04-11 10:36:30.266673527 [ERROR:[email protected]] global cap.cpp:164 open VIDEOIO(CV_IMAGES): raised OpenCV exception:
2024-04-11 10:36:30.266675042
2024-04-11 10:36:30.266676278 OpenCV(4.7.0) /io/opencv/modules/videoio/src/cap_images.cpp:267: error: (-215:Assertion failed) number < max_number in function 'icvExtractPattern'
2024-04-11 10:36:30.266677089
2024-04-11 10:36:30.266677829
2024-04-11 10:36:30.278898085 [2024-04-11 10:36:30] frigate.record.maintainer WARNING : Failed to probe corrupt segment /tmp/cache/[email protected]
2024-04-11 10:36:30.278961969 [2024-04-11 10:36:30] frigate.record.maintainer WARNING : Discarding a corrupt recording segment: /tmp/cache/[email protected]
2024-04-11 10:36:30.280379487 [2024-04-11 10:36:30] frigate.record.maintainer WARNING : Failed to probe corrupt segment /tmp/cache/[email protected]
2024-04-11 10:36:30.280437218 [2024-04-11 10:36:30] frigate.record.maintainer WARNING : Discarding a corrupt recording segment: /tmp/cache/[email protected]
2024-04-11 10:36:31.877750709 [2024-04-11 10:36:31] watchdog.garage ERROR : Ffmpeg process crashed unexpectedly for garage.
2024-04-11 10:36:31.877807110 [2024-04-11 10:36:31] watchdog.garage ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
2024-04-11 10:36:31.877851240 [2024-04-11 10:36:31] ffmpeg.garage.detect ERROR : [segment @ 0x55b0f103bf80] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
2024-04-11 10:36:31.877890842 [2024-04-11 10:36:31] ffmpeg.garage.detect ERROR : av_interleaved_write_frame(): No space left on device
2024-04-11 10:36:31.877929496 [2024-04-11 10:36:31] ffmpeg.garage.detect ERROR : Last message repeated 1 times
2024-04-11 10:36:31.877967500 [2024-04-11 10:36:31] ffmpeg.garage.detect ERROR : [segment @ 0x55b0f103bf80] Failure occurred when ending segment '/tmp/cache/[email protected]'
2024-04-11 10:36:31.878005350 [2024-04-11 10:36:31] ffmpeg.garage.detect ERROR : Error writing trailer of /tmp/cache/garage@%Y%m%d%H%M%S%z.mp4: No space left on device
2024-04-11 10:36:38.574582274 [2024-04-11 10:36:38] watchdog.front_door ERROR : Ffmpeg process crashed unexpectedly for front_door.
2024-04-11 10:36:38.574649410 [2024-04-11 10:36:38] watchdog.front_door ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
2024-04-11 10:36:38.574651565 [2024-04-11 10:36:38] ffmpeg.front_door.detect ERROR : [segment @ 0x5623d4df13c0] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
2024-04-11 10:36:38.574717854 [2024-04-11 10:36:38] ffmpeg.front_door.detect ERROR : av_interleaved_write_frame(): No space left on device
2024-04-11 10:36:38.574719624 [2024-04-11 10:36:38] ffmpeg.front_door.detect ERROR : Last message repeated 2 times
2024-04-11 10:36:38.574780391 [2024-04-11 10:36:38] ffmpeg.front_door.detect ERROR : [segment @ 0x5623d4df13c0] Failure occurred when ending segment '/tmp/cache/[email protected]'
2024-04-11 10:36:38.574782313 [2024-04-11 10:36:38] ffmpeg.front_door.detect ERROR : Error writing trailer of /tmp/cache/front_door@%Y%m%d%H%M%S%z.mp4: No space left on device
2024-04-11 10:36:53.948027243 [2024-04-11 10:36:53] frigate.video ERROR : garage: Unable to read frames from ffmpeg process.
2024-04-11 10:36:53.948038946 [2024-04-11 10:36:53] frigate.video ERROR : garage: ffmpeg process is not running. exiting capture thread...
2024-04-11 10:36:53.971716933 [2024-04-11 10:36:53] frigate.video ERROR : office: Unable to read frames from ffmpeg process.
2024-04-11 10:36:53.971773783 [2024-04-11 10:36:53] frigate.video ERROR : office: ffmpeg process is not running. exiting capture thread...
2024-04-11 10:36:54.421647375 [2024-04-11 10:36:54] frigate.video ERROR : front_door: Unable to read frames from ffmpeg process.
2024-04-11 10:36:54.421650259 [2024-04-11 10:36:54] frigate.video ERROR : front_door: ffmpeg process is not running. exiting capture thread...
2024-04-11 10:36:55.195756667 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x14f79412b900] moov atom not found
2024-04-11 10:36:55.195837199 [ERROR:[email protected]] global cap.cpp:164 open VIDEOIO(CV_IMAGES): raised OpenCV exception:
2024-04-11 10:36:55.195838868
2024-04-11 10:36:55.195840052 OpenCV(4.7.0) /io/opencv/modules/videoio/src/cap_images.cpp:267: error: (-215:Assertion failed) number < max_number in function 'icvExtractPattern'
2024-04-11 10:36:55.195840841
2024-04-11 10:36:55.195841596
2024-04-11 10:36:55.255867736 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x14f79412b900] moov atom not found
2024-04-11 10:36:55.255934443 [ERROR:[email protected]] global cap.cpp:164 open VIDEOIO(CV_IMAGES): raised OpenCV exception:
2024-04-11 10:36:55.255935493
2024-04-11 10:36:55.255936721 OpenCV(4.7.0) /io/opencv/modules/videoio/src/cap_images.cpp:267: error: (-215:Assertion failed) number < max_number in function 'icvExtractPattern'
2024-04-11 10:36:55.255937483
2024-04-11 10:36:55.255938229
2024-04-11 10:36:55.265904103 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x14f79417fa40] moov atom not found
2024-04-11 10:36:55.265977805 [ERROR:[email protected]] global cap.cpp:164 open VIDEOIO(CV_IMAGES): raised OpenCV exception:
2024-04-11 10:36:55.265979350
2024-04-11 10:36:55.265980628 OpenCV(4.7.0) /io/opencv/modules/videoio/src/cap_images.cpp:267: error: (-215:Assertion failed) number < max_number in function 'icvExtractPattern'
2024-04-11 10:36:55.265981410
2024-04-11 10:36:55.265982145
2024-04-11 10:36:55.278439323 [2024-04-11 10:36:55] frigate.record.maintainer WARNING : Failed to probe corrupt segment /tmp/cache/[email protected]
2024-04-11 10:36:55.278511398 [2024-04-11 10:36:55] frigate.record.maintainer WARNING : Discarding a corrupt recording segment: /tmp/cache/[email protected]
2024-04-11 10:36:55.278512807 [2024-04-11 10:36:55] frigate.record.maintainer WARNING : Failed to probe corrupt segment /tmp/cache/[email protected]
2024-04-11 10:36:55.278572174 [2024-04-11 10:36:55] frigate.record.maintainer WARNING : Discarding a corrupt recording segment: /tmp/cache/[email protected]
2024-04-11 10:36:55.280050543 [2024-04-11 10:36:55] frigate.record.maintainer WARNING : Failed to probe corrupt segment /tmp/cache/[email protected]
2024-04-11 10:36:55.280093540 [2024-04-11 10:36:55] frigate.record.maintainer WARNING : Discarding a corrupt recording segment: /tmp/cache/[email protected]
2024-04-11 10:36:58.586898289 [2024-04-11 10:36:58] watchdog.front_door ERROR : Ffmpeg process crashed unexpectedly for front_door.
2024-04-11 10:36:58.586920767 [2024-04-11 10:36:58] watchdog.front_door ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
2024-04-11 10:36:58.587001001 [2024-04-11 10:36:58] ffmpeg.front_door.detect ERROR : [segment @ 0x55d7a36a23c0] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
2024-04-11 10:36:58.587024902 [2024-04-11 10:36:58] ffmpeg.front_door.detect ERROR : av_interleaved_write_frame(): No space left on device
2024-04-11 10:36:58.587119513 [2024-04-11 10:36:58] ffmpeg.front_door.detect ERROR : Last message repeated 1 times
2024-04-11 10:36:58.587121516 [2024-04-11 10:36:58] ffmpeg.front_door.detect ERROR : [segment @ 0x55d7a36a23c0] Failure occurred when ending segment '/tmp/cache/[email protected]'
2024-04-11 10:36:58.587154986 [2024-04-11 10:36:58] ffmpeg.front_door.detect ERROR : Error writing trailer of /tmp/cache/front_door@%Y%m%d%H%M%S%z.mp4: No space left on device
2024-04-11 10:37:01.884576384 [2024-04-11 10:37:01] watchdog.garage ERROR : Ffmpeg process crashed unexpectedly for garage.
2024-04-11 10:37:01.884589033 [2024-04-11 10:37:01] watchdog.garage ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
2024-04-11 10:37:01.884658567 [2024-04-11 10:37:01] ffmpeg.garage.detect ERROR : [segment @ 0x55cd8510c5c0] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
2024-04-11 10:37:01.884661193 [2024-04-11 10:37:01] ffmpeg.garage.detect ERROR : av_interleaved_write_frame(): No space left on device
2024-04-11 10:37:01.884703427 [2024-04-11 10:37:01] ffmpeg.garage.detect ERROR : Last message repeated 1 times
2024-04-11 10:37:01.884738726 [2024-04-11 10:37:01] ffmpeg.garage.detect ERROR : [segment @ 0x55cd8510c5c0] Failure occurred when ending segment '/tmp/cache/[email protected]'
2024-04-11 10:37:01.884769501 [2024-04-11 10:37:01] ffmpeg.garage.detect ERROR : Error writing trailer of /tmp/cache/garage@%Y%m%d%H%M%S%z.mp4: No space left on device
2024-04-11 10:37:01.895266424 [2024-04-11 10:37:01] watchdog.office ERROR : Ffmpeg process crashed unexpectedly for office.
2024-04-11 10:37:01.895317717 [2024-04-11 10:37:01] watchdog.office ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
2024-04-11 10:37:01.895358381 [2024-04-11 10:37:01] ffmpeg.office.detect ERROR : av_interleaved_write_frame(): No space left on device
2024-04-11 10:37:01.895396385 [2024-04-11 10:37:01] ffmpeg.office.detect ERROR : Last message repeated 1 times
2024-04-11 10:37:01.895460739 [2024-04-11 10:37:01] ffmpeg.office.detect ERROR : [segment @ 0x5619a9675480] Failure occurred when ending segment '/tmp/cache/[email protected]'
2024-04-11 10:37:01.895512997 [2024-04-11 10:37:01] ffmpeg.office.detect ERROR : Error writing trailer of /tmp/cache/office@%Y%m%d%H%M%S%z.mp4: No space left on device FFprobe output from your camera- Frigate statsNo response Operating systemUNRAID Install methodDocker Compose Coral versionUSB Network connectionWired Camera make and modelReolink Video Doorbell Wifi Any other information that may be helpfulNo response |
Beta Was this translation helpful? Give feedback.
Answered by
NickM-27
Apr 11, 2024
Replies: 1 comment 2 replies
-
you don't have enough /tmp/cache allocated to frigate for the downloaded clip to fit in ram |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
clowncracker
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
av_interleaved_write_frame(): No space left on device
you don't have enough /tmp/cache allocated to frigate for the downloaded clip to fit in ram