koush / scrypted

Scrypted is a high performance video integration and automation platform
https://scrypted.app
Other
3.96k stars 238 forks source link

Reolink & ONVIF = snapshot not working #893

Closed adrianmihalko closed 1 year ago

adrianmihalko commented 1 year ago

I added my camera with ONVIF plugin into Scrypted, the stream & recording works well, but I get Snapshot failed error for snapshots.

IMG_6368

It is possible that the problem is in the ONVIF plugin?

linux x64 #1 SMP Debian 5.10.46-4 (2021-08-03) server version: 0.39.0 plugin version: @scrypted/snapshot 0.0.55 full ######################## 6/11/2023, 2:42:08 AM ######################## node modules /server/volume/plugins/@scrypted/snapshot/node18-linux-x64-20230608 plugin loaded ######################## 6/11/2023, 5:50:44 AM ######################## [CameraOUT] Snapshot failed Error: ffmpeg input to image conversion failed with exit code: 1, /usr/bin/ffmpeg -hide_banner -y -i pipe:4 -filter_complex scale=-2:'min(720,ih)' -frames:v 1 -f image2 pipe:3 at /src/ffmpeg-image-filter.ts:177:23 at processTicksAndRejections (node:internal/process/task_queues:95:5) [CameraOUT] creating error image with background Snapshot Failed false [CameraIN] Snapshot failed Error: ffmpeg input to image conversion failed with exit code: 1, /usr/bin/ffmpeg -hide_banner -y -i pipe:4 -filter_complex scale=-2:'min(720,ih)' -frames:v 1 -f image2 pipe:3 at /src/ffmpeg-image-filter.ts:177:23 at processTicksAndRejections (node:internal/process/task_queues:95:5) [CameraIN] creating error image with background Snapshot Failed false ######################## 6/11/2023, 5:58:03 AM ######################## [CameraOUT] Snapshot failed Error: ffmpeg input to image conversion failed with exit code: 1, /usr/bin/ffmpeg -hide_banner -y -i pipe:4 -filter_complex scale=-2:'min(720,ih)' -frames:v 1 -f image2 pipe:3 at /src/ffmpeg-image-filter.ts:177:23 at processTicksAndRejections (node:internal/process/task_queues:95:5) [CameraOUT] creating error image with background Snapshot Failed false ######################## 6/11/2023, 6:16:07 AM ######################## [CameraOUT] Snapshot failed Error: ffmpeg input to image conversion failed with exit code: 1, /usr/bin/ffmpeg -hide_banner -y -i pipe:4 -filter_complex scale=-2:'min(240,ih)' -frames:v 1 -f image2 pipe:3 at /src/ffmpeg-image-filter.ts:177:23 at processTicksAndRejections (node:internal/process/task_queues:95:5) [CameraOUT] creating error image with background Snapshot Failed false [CameraIN] Snapshot failed Error: ffmpeg input to image conversion failed with exit code: 1, /usr/bin/ffmpeg -hide_banner -y -i pipe:4 -filter_complex scale=-2:'min(240,ih)' -frames:v 1 -f image2 pipe:3 at /src/ffmpeg-image-filter.ts:177:23 at processTicksAndRejections (node:internal/process/task_queues:95:5) [CameraIN] creating error image with background Snapshot Failed false [CameraOUT] Snapshot failed Error: ffmpeg input to image conversion failed with exit code: 1, /usr/bin/ffmpeg -hide_banner -y -i pipe:4 -filter_complex scale=-2:'min(240,ih)' -frames:v 1 -f image2 pipe:3 at /src/ffmpeg-image-filter.ts:177:23 at processTicksAndRejections (node:internal/process/task_queues:95:5) [CameraOUT] creating error image with background Snapshot Failed false [CameraIN] Snapshot failed Error: ffmpeg input to image conversion failed with exit code: 1, /usr/bin/ffmpeg -hide_banner -y -i pipe:4 -filter_complex scale=-2:'min(240,ih)' -frames:v 1 -f image2 pipe:3 at /src/ffmpeg-image-filter.ts:177:23 at processTicksAndRejections (node:internal/process/task_queues:95:5) [CameraIN] creating error image with background Snapshot Failed false [CameraIN] Snapshot failed Error: ffmpeg input to image conversion failed with exit code: 1, /usr/bin/ffmpeg -hide_banner -y -i pipe:4 -filter_complex scale=-2:'min(240,ih)' -frames:v 1 -f image2 pipe:3 at /src/ffmpeg-image-filter.ts:177:23 at processTicksAndRejections (node:internal/process/task_queues:95:5) [CameraIN] creating error image with background Snapshot Failed false [CameraOUT] Snapshot failed Error: ffmpeg input to image conversion failed with exit code: 1, /usr/bin/ffmpeg -hide_banner -y -i pipe:4 -filter_complex scale=-2:'min(240,ih)' -frames:v 1 -f image2 pipe:3 at /src/ffmpeg-image-filter.ts:177:23 at processTicksAndRejections (node:internal/process/task_queues:95:5) [CameraOUT] creating error image with background Snapshot Failed false [CameraOUT] Snapshot failed Error: ffmpeg input to image conversion failed with exit code: 1, /usr/bin/ffmpeg -hide_banner -y -i pipe:4 -filter_complex scale=-2:'min(720,ih)' -frames:v 1 -f image2 pipe:3 at /src/ffmpeg-image-filter.ts:177:23 at processTicksAndRejections (node:internal/process/task_queues:95:5) [CameraOUT] creating error image with background Snapshot Failed false ######################## 6/11/2023, 6:31:21 AM ######################## [CameraOUT] Snapshot failed Error: ffmpeg input to image conversion failed with exit code: 1, /usr/bin/ffmpeg -hide_banner -y -i pipe:4 -filter_complex scale=-2:'min(720,ih)' -frames:v 1 -f image2 pipe:3 at /src/ffmpeg-image-filter.ts:177:23 at processTicksAndRejections (node:internal/process/task_queues:95:5) [CameraOUT] creating error image with background Snapshot Failed false [CameraIN] Snapshot failed Error: ffmpeg input to image conversion failed with exit code: 1, /usr/bin/ffmpeg -hide_banner -y -i pipe:4 -filter_complex scale=-2:'min(720,ih)' -frames:v 1 -f image2 pipe:3 at /src/ffmpeg-image-filter.ts:177:23 at processTicksAndRejections (node:internal/process/task_queues:95:5) [CameraIN] creating error image with background Snapshot Failed false [CameraOUT] Snapshot failed Error: ffmpeg input to image conversion failed with exit code: 1, /usr/bin/ffmpeg -hide_banner -y -i pipe:4 -filter_complex scale=-2:'min(720,ih)' -frames:v 1 -f image2 pipe:3 at /src/ffmpeg-image-filter.ts:177:23 at processTicksAndRejections (node:internal/process/task_queues:95:5) [CameraOUT] creating error image with background Snapshot Failed false [CameraIN] Snapshot failed Error: ffmpeg input to image conversion failed with exit code: 1, /usr/bin/ffmpeg -hide_banner -y -i pipe:4 -filter_complex scale=-2:'min(720,ih)' -frames:v 1 -f image2 pipe:3 at /src/ffmpeg-image-filter.ts:177:23 at processTicksAndRejections (node:internal/process/task_queues:95:5) [CameraIN] creating error image with background Snapshot Failed false [CameraOUT] Snapshot failed Error: ffmpeg input to image conversion failed with exit code: 1, /usr/bin/ffmpeg -hide_banner -y -i pipe:4 -filter_complex scale=-2:'min(720,ih)' -frames:v 1 -f image2 pipe:3 at /src/ffmpeg-image-filter.ts:177:23 at processTicksAndRejections (node:internal/process/task_queues:95:5) [CameraOUT] creating error image with background Snapshot Failed false [CameraIN] Snapshot failed Error: ffmpeg input to image conversion failed with exit code: 1, /usr/bin/ffmpeg -hide_banner -y -i pipe:4 -filter_complex scale=-2:'min(720,ih)' -frames:v 1 -f image2 pipe:3 at /src/ffmpeg-image-filter.ts:177:23 at processTicksAndRejections (node:internal/process/task_queues:95:5) [CameraIN] creating error image with background Snapshot Failed false [CameraOUT] Snapshot failed Error: ffmpeg input to image conversion failed with exit code: 1, /usr/bin/ffmpeg -hide_banner -y -i pipe:4 -filter_complex scale=-2:'min(720,ih)' -frames:v 1 -f image2 pipe:3 at /src/ffmpeg-image-filter.ts:177:23 at processTicksAndRejections (node:internal/process/task_queues:95:5) [CameraOUT] creating error image with background Snapshot Failed false [CameraIN] Snapshot failed Error: ffmpeg input to image conversion failed with exit code: 1, /usr/bin/ffmpeg -hide_banner -y -i pipe:4 -filter_complex scale=-2:'min(720,ih)' -frames:v 1 -f image2 pipe:3 at /src/ffmpeg-image-filter.ts:177:23 at processTicksAndRejections (node:internal/process/task_queues:95:5) [CameraIN] creating error image with background Snapshot Failed false ######################## 6/11/2023, 6:56:34 AM ######################## [CameraOUT] Snapshot failed Error: ffmpeg input to image conversion failed with exit code: 1, /usr/bin/ffmpeg -hide_banner -y -i pipe:4 -filter_complex scale=-2:'min(720,ih)' -frames:v 1 -f image2 pipe:3 at /src/ffmpeg-image-filter.ts:177:23 at processTicksAndRejections (node:internal/process/task_queues:95:5) [CameraOUT] creating error image with background Snapshot Failed false [CameraIN] Snapshot failed Error: ffmpeg input to image conversion failed with exit code: 1, /usr/bin/ffmpeg -hide_banner -y -i pipe:4 -filter_complex scale=-2:'min(720,ih)' -frames:v 1 -f image2 pipe:3 at /src/ffmpeg-image-filter.ts:177:23 at processTicksAndRejections (node:internal/process/task_queues:95:5) [CameraIN] creating error image with background Snapshot Failed false [CameraOUT] Snapshot failed Error: ffmpeg input to image conversion failed with exit code: 1, /usr/bin/ffmpeg -hide_banner -y -i pipe:4 -filter_complex scale=-2:'min(720,ih)' -frames:v 1 -f image2 pipe:3 at /src/ffmpeg-image-filter.ts:177:23 at processTicksAndRejections (node:internal/process/task_queues:95:5) [CameraOUT] creating error image with background Snapshot Failed false [CameraIN] Snapshot failed Error: ffmpeg input to image conversion failed with exit code: 1, /usr/bin/ffmpeg -hide_banner -y -i pipe:4 -filter_complex scale=-2:'min(720,ih)' -frames:v 1 -f image2 pipe:3 at /src/ffmpeg-image-filter.ts:177:23 at processTicksAndRejections (node:internal/process/task_queues:95:5) [CameraIN] creating error image with background Snapshot Failed false [CameraOUT] Snapshot failed Error: ffmpeg input to image conversion failed with exit code: 1, /usr/bin/ffmpeg -hide_banner -y -i pipe:4 -filter_complex scale=-2:'min(720,ih)' -frames:v 1 -f image2 pipe:3 at /src/ffmpeg-image-filter.ts:177:23 at processTicksAndRejections (node:internal/process/task_queues:95:5) [CameraOUT] creating error image with background Snapshot Failed false [CameraIN] Snapshot failed Error: ffmpeg input to image conversion failed with exit code: 1, /usr/bin/ffmpeg -hide_banner -y -i pipe:4 -filter_complex scale=-2:'min(720,ih)' -frames:v 1 -f image2 pipe:3 at /src/ffmpeg-image-filter.ts:177:23 at processTicksAndRejections (node:internal/process/task_queues:95:5) [CameraIN] creating error image with background Snapshot Failed false ######################## 6/11/2023, 8:48:29 AM ######################## [CameraIN] Snapshot failed Error: ffmpeg input to image conversion failed with exit code: 1, /usr/bin/ffmpeg -hide_banner -y -i pipe:4 -filter_complex scale=-2:'min(720,ih)' -frames:v 1 -f image2 pipe:3 at /src/ffmpeg-image-filter.ts:177:23 at processTicksAndRejections (node:internal/process/task_queues:95:5) [CameraIN] creating error image with background Snapshot Failed false [CameraOUT] Snapshot failed Error: ffmpeg input to image conversion failed with exit code: 1, /usr/bin/ffmpeg -hide_banner -y -i pipe:4 -filter_complex scale=-2:'min(720,ih)' -frames:v 1 -f image2 pipe:3 at /src/ffmpeg-image-filter.ts:177:23 at processTicksAndRejections (node:internal/process/task_queues:95:5) [CameraOUT] creating error image with background Snapshot Failed false ######################## 6/11/2023, 9:52:11 AM ######################## [CameraOUT] Snapshot failed Error: ffmpeg input to image conversion failed with exit code: 1, /usr/bin/ffmpeg -hide_banner -y -i pipe:4 -filter_complex scale=-2:'min(720,ih)' -frames:v 1 -f image2 pipe:3 at /src/ffmpeg-image-filter.ts:177:23 at processTicksAndRejections (node:internal/process/task_queues:95:5) [CameraOUT] creating error image with background Snapshot Failed false [CameraOUT] Snapshot failed Error: ffmpeg input to image conversion failed with exit code: 1, /usr/bin/ffmpeg -hide_banner -y -i pipe:4 -filter_complex scale=-2:'min(720,ih)' -frames:v 1 -f image2 pipe:3 at /src/ffmpeg-image-filter.ts:177:23 at processTicksAndRejections (node:internal/process/task_queues:95:5) [CameraOUT] creating error image with background Snapshot Failed false ######################## 6/11/2023, 4:27:27 PM ######################## [CameraOUT] Snapshot failed Error: ffmpeg input to image conversion failed with exit code: 1, /usr/bin/ffmpeg -hide_banner -y -i pipe:4 -filter_complex scale=-2:'min(720,ih)' -frames:v 1 -f image2 pipe:3 at /src/ffmpeg-image-filter.ts:177:23 at processTicksAndRejections (node:internal/process/task_queues:95:5) [CameraOUT] creating error image with background Snapshot Failed false ######################## 6/11/2023, 5:50:37 PM ######################## [CameraOUT] Snapshot failed Error: ffmpeg input to image conversion failed with exit code: 1, /usr/bin/ffmpeg -hide_banner -y -i pipe:4 -filter_complex scale=-2:'min(720,ih)' -frames:v 1 -f image2 pipe:3 at /src/ffmpeg-image-filter.ts:177:23 at processTicksAndRejections (node:internal/process/task_queues:95:5) [CameraOUT] creating error image with background Snapshot Failed false ######################## 6/11/2023, 6:58:48 PM ######################## [CameraOUT] Snapshot failed Error: ffmpeg input to image conversion failed with exit code: 1, /usr/bin/ffmpeg -hide_banner -y -i pipe:4 -filter_complex scale=-2:'min(720,ih)' -frames:v 1 -f image2 pipe:3 at /src/ffmpeg-image-filter.ts:177:23 at processTicksAndRejections (node:internal/process/task_queues:95:5) [CameraOUT] creating error image with background Snapshot Failed false [CameraIN] Snapshot failed Error: ffmpeg input to image conversion failed with exit code: 1, /usr/bin/ffmpeg -hide_banner -y -i pipe:4 -filter_complex scale=-2:'min(720,ih)' -frames:v 1 -f image2 pipe:3 at /src/ffmpeg-image-filter.ts:177:23 at processTicksAndRejections (node:internal/process/task_queues:95:5) [CameraIN] creating error image with background Snapshot Failed false [CameraOUT] Snapshot failed Error: ffmpeg input to image conversion failed with exit code: 1, /usr/bin/ffmpeg -hide_banner -y -i pipe:4 -filter_complex scale=-2:'min(720,ih)' -frames:v 1 -f image2 pipe:3 at /src/ffmpeg-image-filter.ts:177:23 at processTicksAndRejections (node:internal/process/task_queues:95:5) [CameraOUT] creating error image with background Snapshot Failed false ######################## 6/11/2023, 8:24:01 PM ######################## [CameraOUT] Snapshot failed Error: ffmpeg input to image conversion failed with exit code: 1, /usr/bin/ffmpeg -hide_banner -y -i pipe:4 -filter_complex scale=-2:'min(720,ih)' -frames:v 1 -f image2 pipe:3 at /src/ffmpeg-image-filter.ts:177:23 at processTicksAndRejections (node:internal/process/task_queues:95:5) [CameraOUT] creating error image with background Snapshot Failed false ######################## 6/11/2023, 8:44:40 PM ######################## [CameraOUT] Snapshot failed Error: ffmpeg input to image conversion failed with exit code: 1, /usr/bin/ffmpeg -hide_banner -y -i pipe:4 -filter_complex scale=-2:'min(720,ih)' -frames:v 1 -f image2 pipe:3 at /src/ffmpeg-image-filter.ts:177:23 at processTicksAndRejections (node:internal/process/task_queues:95:5) [CameraOUT] creating error image with background Snapshot Failed false [CameraOUT] Snapshot failed Error: ffmpeg input to image conversion failed with exit code: 1, /usr/bin/ffmpeg -hide_banner -y -i pipe:4 -filter_complex scale=-2:'min(720,ih)' -frames:v 1 -f image2 pipe:3 at /src/ffmpeg-image-filter.ts:177:23 at processTicksAndRejections (node:internal/process/task_queues:95:5) [CameraOUT] creating error image with background Snapshot Failed false [CameraIN] Snapshot failed Error: ffmpeg input to image conversion failed with exit code: 1, /usr/bin/ffmpeg -hide_banner -y -i pipe:4 -filter_complex scale=-2:'min(720,ih)' -frames:v 1 -f image2 pipe:3 at /src/ffmpeg-image-filter.ts:177:23 at processTicksAndRejections (node:internal/process/task_queues:95:5) [CameraIN] creating error image with background Snapshot Failed false [CameraOUT] Snapshot failed Error: ffmpeg input to image conversion failed with exit code: 1, /usr/bin/ffmpeg -hide_banner -y -i pipe:4 -filter_complex scale=-2:'min(720,ih)' -frames:v 1 -f image2 pipe:3 at /src/ffmpeg-image-filter.ts:177:23 at processTicksAndRejections (node:internal/process/task_queues:95:5) [CameraOUT] creating error image with background Snapshot Failed false [CameraIN] Snapshot failed Error: ffmpeg input to image conversion failed with exit code: 1, /usr/bin/ffmpeg -hide_banner -y -i pipe:4 -filter_complex scale=-2:'min(720,ih)' -frames:v 1 -f image2 pipe:3 at /src/ffmpeg-image-filter.ts:177:23 at processTicksAndRejections (node:internal/process/task_queues:95:5) [CameraIN] creating error image with background Snapshot Failed false [CameraOUT] Snapshot failed Error: ffmpeg input to image conversion failed with exit code: 1, /usr/bin/ffmpeg -hide_banner -y -i pipe:4 -filter_complex scale=-2:'min(720,ih)' -frames:v 1 -f image2 pipe:3 at /src/ffmpeg-image-filter.ts:177:23 at processTicksAndRejections (node:internal/process/task_queues:95:5) [CameraOUT] creating error image with background Snapshot Failed false ######################## 6/11/2023, 9:22:37 PM ######################## [CameraOUT] Snapshot failed Error: ffmpeg input to image conversion failed with exit code: 1, /usr/bin/ffmpeg -hide_banner -y -i pipe:4 -filter_complex scale=-2:'min(720,ih)' -frames:v 1 -f image2 pipe:3 at /src/ffmpeg-image-filter.ts:177:23 at processTicksAndRejections (node:internal/process/task_queues:95:5) [CameraOUT] creating error image with background Snapshot Failed false [CameraOUT] Snapshot failed Error: ffmpeg input to image conversion failed with exit code: 1, /usr/bin/ffmpeg -hide_banner -y -i pipe:4 -filter_complex scale=-2:'min(720,ih)' -frames:v 1 -f image2 pipe:3 at /src/ffmpeg-image-filter.ts:177:23 at processTicksAndRejections (node:internal/process/task_queues:95:5) [CameraOUT] creating error image with background Snapshot Failed false [CameraIN] Snapshot failed Error: ffmpeg input to image conversion failed with exit code: 1, /usr/bin/ffmpeg -hide_banner -y -i pipe:4 -filter_complex scale=-2:'min(720,ih)' -frames:v 1 -f image2 pipe:3 at /src/ffmpeg-image-filter.ts:177:23 at processTicksAndRejections (node:internal/process/task_queues:95:5) [CameraIN] creating error image with background Snapshot Failed false ######################## 6/11/2023, 9:52:02 PM ######################## [CameraOUT] Snapshot failed Error: ffmpeg input to image conversion failed with exit code: 1, /usr/bin/ffmpeg -hide_banner -y -i pipe:4 -filter_complex scale=-2:'min(720,ih)' -frames:v 1 -f image2 pipe:3 at /src/ffmpeg-image-filter.ts:177:23 at processTicksAndRejections (node:internal/process/task_queues:95:5) [CameraOUT] creating error image with background Snapshot Failed false ######################## 6/11/2023, 10:55:25 PM ######################## [CameraOUT] Snapshot failed Error: ffmpeg input to image conversion failed with exit code: 1, /usr/bin/ffmpeg -hide_banner -y -i pipe:4 -filter_complex scale=-2:'min(720,ih)' -frames:v 1 -f image2 pipe:3 at /src/ffmpeg-image-filter.ts:177:23 at processTicksAndRejections (node:internal/process/task_queues:95:5) [CameraOUT] creating error image with background Snapshot Failed false ######################## 6/12/2023, 12:12:21 AM ######################## [CameraOUT] Snapshot failed Error: ffmpeg input to image conversion failed with exit code: 1, /usr/bin/ffmpeg -hide_banner -y -i pipe:4 -filter_complex scale=-2:'min(720,ih)' -frames:v 1 -f image2 pipe:3 at /src/ffmpeg-image-filter.ts:177:23 at processTicksAndRejections (node:internal/process/task_queues:95:5) [CameraOUT] creating error image with background Snapshot Failed false ######################## 6/12/2023, 5:35:46 AM ######################## [CameraOUT] Snapshot failed Error: ffmpeg input to image conversion failed with exit code: 1, /usr/bin/ffmpeg -hide_banner -y -i pipe:4 -filter_complex scale=-2:'min(720,ih)' -frames:v 1 -f image2 pipe:3 at /src/ffmpeg-image-filter.ts:177:23 at processTicksAndRejections (node:internal/process/task_queues:95:5) [CameraOUT] creating error image with background Snapshot Failed false ######################## 6/12/2023, 5:43:10 AM ######################## [CameraOUT] Snapshot failed Error: ffmpeg input to image conversion failed with exit code: 1, /usr/bin/ffmpeg -hide_banner -y -i pipe:4 -filter_complex scale=-2:'min(720,ih)' -frames:v 1 -f image2 pipe:3 at /src/ffmpeg-image-filter.ts:177:23 at processTicksAndRejections (node:internal/process/task_queues:95:5) [CameraOUT] creating error image with background Snapshot Failed false [CameraOUT] Snapshot failed Error: ffmpeg input to image conversion failed with exit code: 1, /usr/bin/ffmpeg -hide_banner -y -i pipe:4 -filter_complex scale=-2:'min(720,ih)' -frames:v 1 -f image2 pipe:3 at /src/ffmpeg-image-filter.ts:177:23 at processTicksAndRejections (node:internal/process/task_queues:95:5) [CameraOUT] creating error image with background Snapshot Failed false [CameraIN] Snapshot failed Error: ffmpeg input to image conversion failed with exit code: 1, /usr/bin/ffmpeg -hide_banner -y -i pipe:4 -filter_complex scale=-2:'min(720,ih)' -frames:v 1 -f image2 pipe:3 at /src/ffmpeg-image-filter.ts:177:23 at processTicksAndRejections (node:internal/process/task_queues:95:5) [CameraIN] creating error image with background Snapshot Failed false ######################## 6/12/2023, 6:36:39 AM ######################## [CameraOUT] Snapshot failed Error: ffmpeg input to image conversion failed with exit code: 1, /usr/bin/ffmpeg -hide_banner -y -i pipe:4 -filter_complex scale=-2:'min(720,ih)' -frames:v 1 -f image2 pipe:3 at /src/ffmpeg-image-filter.ts:177:23 at processTicksAndRejections (node:internal/process/task_queues:95:5) [CameraOUT] creating error image with background Snapshot Failed false [CameraOUT] Snapshot failed Error: ffmpeg input to image conversion failed with exit code: 1, /usr/bin/ffmpeg -hide_banner -y -i pipe:4 -filter_complex scale=-2:'min(720,ih)' -frames:v 1 -f image2 pipe:3 at /src/ffmpeg-image-filter.ts:177:23 at processTicksAndRejections (node:internal/process/task_queues:95:5) [CameraOUT] creating error image with background Snapshot Failed false ######################## 6/12/2023, 6:50:49 AM ######################## [CameraOUT] Snapshot failed Error: ffmpeg input to image conversion failed with exit code: 1, /usr/bin/ffmpeg -hide_banner -y -i pipe:4 -filter_complex scale=-2:'min(720,ih)' -frames:v 1 -f image2 pipe:3 at /src/ffmpeg-image-filter.ts:177:23 at processTicksAndRejections (node:internal/process/task_queues:95:5) [CameraOUT] creating error image with background Snapshot Failed false [CameraOUT] Snapshot failed Error: ffmpeg input to image conversion failed with exit code: 1, /usr/bin/ffmpeg -hide_banner -y -i pipe:4 -filter_complex scale=-2:'min(720,ih)' -frames:v 1 -f image2 pipe:3 at /src/ffmpeg-image-filter.ts:177:23 at processTicksAndRejections (node:internal/process/task_queues:95:5) [CameraOUT] creating error image with background Snapshot Failed false [CameraIN] Snapshot failed Error: ffmpeg input to image conversion failed with exit code: 1, /usr/bin/ffmpeg -hide_banner -y -i pipe:4 -filter_complex scale=-2:'min(720,ih)' -frames:v 1 -f image2 pipe:3 at /src/ffmpeg-image-filter.ts:177:23 at processTicksAndRejections (node:internal/process/task_queues:95:5) [CameraIN] creating error image with background Snapshot Failed false [CameraOUT] Snapshot failed Error: ffmpeg input to image conversion failed with exit code: 1, /usr/bin/ffmpeg -hide_banner -y -i pipe:4 -filter_complex scale=-2:'min(720,ih)' -frames:v 1 -f image2 pipe:3 at /src/ffmpeg-image-filter.ts:177:23 at processTicksAndRejections (node:internal/process/task_queues:95:5) [CameraOUT] creating error image with background Snapshot Failed false [CameraOUT] Snapshot failed Error: ffmpeg input to image conversion failed with exit code: 1, /usr/bin/ffmpeg -hide_banner -y -i pipe:4 -filter_complex scale=-2:'min(720,ih)' -frames:v 1 -f image2 pipe:3 at /src/ffmpeg-image-filter.ts:177:23 at processTicksAndRejections (node:internal/process/task_queues:95:5) [CameraOUT] creating error image with background Snapshot Failed false ######################## 6/12/2023, 1:07:28 PM ######################## [CameraOUT] Snapshot failed Error: ffmpeg input to image conversion failed with exit code: 1, /usr/bin/ffmpeg -hide_banner -y -i pipe:4 -filter_complex scale=-2:'min(720,ih)' -frames:v 1 -f image2 pipe:3 at /src/ffmpeg-image-filter.ts:177:23 at processTicksAndRejections (node:internal/process/task_queues:95:5) [CameraOUT] creating error image with background Snapshot Failed false [CameraOUT] Snapshot failed Error: ffmpeg input to image conversion failed with exit code: 1, /usr/bin/ffmpeg -hide_banner -y -i pipe:4 -filter_complex scale=-2:'min(720,ih)' -frames:v 1 -f image2 pipe:3 at /src/ffmpeg-image-filter.ts:177:23 at processTicksAndRejections (node:internal/process/task_queues:95:5) [CameraOUT] creating error image with background Snapshot Failed false ######################## 6/12/2023, 10:12:26 PM ######################## [CameraIN] Snapshot failed Error: ffmpeg input to image conversion failed with exit code: 1, /usr/bin/ffmpeg -hide_banner -y -i pipe:4 -filter_complex scale=-2:'min(720,ih)' -frames:v 1 -f image2 pipe:3 at /src/ffmpeg-image-filter.ts:177:23 at processTicksAndRejections (node:internal/process/task_queues:95:5) [CameraIN] creating error image with background Snapshot Failed false [CameraOUT] Snapshot failed RPCResultError: Operation Timed Out at Timeout._onTimeout (/@scrypted/prebuffer-mixin/main.nodejs.js:1:78940) at listOnTimeout (node:internal/timers:569:17) at process.processTimers (node:internal/timers:512:7) thread:main @scrypted/prebuffer-mixin:host host:@scrypted/snapshot { cause: undefined } [CameraOUT] creating error image with background Snapshot Failed false [CameraIN] Snapshot failed Error: ffmpeg input to image conversion failed with exit code: 1, /usr/bin/ffmpeg -hide_banner -y -i pipe:4 -filter_complex scale=-2:'min(720,ih)' -frames:v 1 -f image2 pipe:3 at /src/ffmpeg-image-filter.ts:177:23 at processTicksAndRejections (node:internal/process/task_queues:95:5) [CameraIN] creating error image with background Snapshot Failed false [CameraOUT] Snapshot failed RPCResultError: Operation Timed Out at Timeout._onTimeout (/@scrypted/prebuffer-mixin/main.nodejs.js:1:78940) at listOnTimeout (node:internal/timers:569:17) at process.processTimers (node:internal/timers:512:7) thread:main @scrypted/prebuffer-mixin:host host:@scrypted/snapshot { cause: undefined } [CameraOUT] creating error image with background Snapshot Failed false [CameraIN] Snapshot failed Error: ffmpeg input to image conversion failed with exit code: 1, /usr/bin/ffmpeg -hide_banner -y -i pipe:4 -filter_complex scale=-2:'min(720,ih)' -frames:v 1 -f image2 pipe:3 at /src/ffmpeg-image-filter.ts:177:23 at processTicksAndRejections (node:internal/process/task_queues:95:5) [CameraIN] creating error image with background Snapshot Failed false [CameraOUT] Snapshot failed RPCResultError: Operation Timed Out at Timeout._onTimeout (/@scrypted/prebuffer-mixin/main.nodejs.js:1:78940) at listOnTimeout (node:internal/timers:569:17) at process.processTimers (node:internal/timers:512:7) thread:main @scrypted/prebuffer-mixin:host host:@scrypted/snapshot { cause: undefined } [CameraOUT] creating error image with background Snapshot Failed false [CameraIN] Snapshot failed Error: ffmpeg input to image conversion failed with exit code: 1, /usr/bin/ffmpeg -hide_banner -y -i pipe:4 -filter_complex scale=-2:'min(720,ih)' -frames:v 1 -f image2 pipe:3 at /src/ffmpeg-image-filter.ts:177:23 at processTicksAndRejections (node:internal/process/task_queues:95:5) [CameraIN] creating error image with background Snapshot Failed false [CameraOUT] Snapshot failed RPCResultError: Operation Timed Out at Timeout._onTimeout (/@scrypted/prebuffer-mixin/main.nodejs.js:1:78940) at listOnTimeout (node:internal/timers:569:17) at process.processTimers (node:internal/timers:512:7) thread:main @scrypted/prebuffer-mixin:host host:@scrypted/snapshot { cause: undefined } [CameraOUT] creating error image with background Snapshot Failed false [CameraIN] Snapshot failed Error: ffmpeg input to image conversion failed with exit code: 1, /usr/bin/ffmpeg -hide_banner -y -i pipe:4 -filter_complex scale=-2:'min(720,ih)' -frames:v 1 -f image2 pipe:3 at /src/ffmpeg-image-filter.ts:177:23 at processTicksAndRejections (node:internal/process/task_queues:95:5) [CameraIN] creating error image with background Snapshot Failed false [CameraOUT] Snapshot failed RPCResultError: Operation Timed Out at Timeout._onTimeout (/@scrypted/prebuffer-mixin/main.nodejs.js:1:78940) at listOnTimeout (node:internal/timers:569:17) at process.processTimers (node:internal/timers:512:7) thread:main @scrypted/prebuffer-mixin:host host:@scrypted/snapshot { cause: undefined } [CameraOUT] creating error image with background Snapshot Failed false ######################## 6/14/2023, 6:52:15 PM ######################## [CameraIN] Snapshot failed Error: ffmpeg input to image conversion failed with exit code: 1, /usr/bin/ffmpeg -hide_banner -y -i pipe:4 -filter_complex scale=-2:'min(720,ih)' -frames:v 1 -f image2 pipe:3 at /src/ffmpeg-image-filter.ts:177:23 at processTicksAndRejections (node:internal/process/task_queues:95:5) [CameraIN] creating error image with background Snapshot Failed false [CameraOUT] Snapshot failed RPCResultError: Operation Timed Out at Timeout._onTimeout (/@scrypted/prebuffer-mixin/main.nodejs.js:1:78940) at listOnTimeout (node:internal/timers:569:17) at process.processTimers (node:internal/timers:512:7) thread:main @scrypted/prebuffer-mixin:host host:@scrypted/snapshot { cause: undefined } [CameraOUT] creating error image with background Snapshot Failed false [CameraIN] Snapshot failed Error: ffmpeg input to image conversion failed with exit code: 1, /usr/bin/ffmpeg -hide_banner -y -i pipe:4 -filter_complex scale=-2:'min(720,ih)' -frames:v 1 -f image2 pipe:3 at /src/ffmpeg-image-filter.ts:177:23 at processTicksAndRejections (node:internal/process/task_queues:95:5) [CameraIN] creating error image with background Snapshot Failed false [CameraOUT] Snapshot failed RPCResultError: Operation Timed Out at Timeout._onTimeout (/@scrypted/prebuffer-mixin/main.nodejs.js:1:78940) at listOnTimeout (node:internal/timers:569:17) at process.processTimers (node:internal/timers:512:7) thread:main @scrypted/prebuffer-mixin:host host:@scrypted/snapshot { cause: undefined } [CameraOUT] creating error image with background Snapshot Failed false [CameraIN] Snapshot failed Error: ffmpeg input to image conversion failed with exit code: 1, /usr/bin/ffmpeg -hide_banner -y -i pipe:4 -filter_complex scale=-2:'min(720,ih)' -frames:v 1 -f image2 pipe:3 at /src/ffmpeg-image-filter.ts:177:23 at processTicksAndRejections (node:internal/process/task_queues:95:5) [CameraIN] creating error image with background Snapshot Failed false [CameraIN] Snapshot failed Error: ffmpeg input to image conversion failed with exit code: 1, /usr/bin/ffmpeg -hide_banner -y -i pipe:4 -filter_complex scale=-2:'min(720,ih)' -frames:v 1 -f image2 pipe:3 at /src/ffmpeg-image-filter.ts:177:23 at processTicksAndRejections (node:internal/process/task_queues:95:5) [CameraIN] creating error image with background Snapshot Failed false [CameraOUT] Snapshot failed RPCResultError: Operation Timed Out at Timeout._onTimeout (/@scrypted/prebuffer-mixin/main.nodejs.js:1:78940) at listOnTimeout (node:internal/timers:569:17) at process.processTimers (node:internal/timers:512:7) thread:main @scrypted/prebuffer-mixin:host host:@scrypted/snapshot { cause: undefined } [CameraOUT] creating error image with background Snapshot Failed false [CameraIN] Snapshot failed Error: ffmpeg input to image conversion failed with exit code: 1, /usr/bin/ffmpeg -hide_banner -y -i pipe:4 -filter_complex scale=-2:'min(720,ih)' -frames:v 1 -f image2 pipe:3 at /src/ffmpeg-image-filter.ts:177:23 at processTicksAndRejections (node:internal/process/task_queues:95:5) [CameraIN] creating error image with background Snapshot Failed false [CameraOUT] Snapshot failed RPCResultError: Operation Timed Out at Timeout._onTimeout (/@scrypted/prebuffer-mixin/main.nodejs.js:1:78940) at listOnTimeout (node:internal/timers:569:17) at process.processTimers (node:internal/timers:512:7) thread:main @scrypted/prebuffer-mixin:host host:@scrypted/snapshot { cause: undefined } [CameraOUT] creating error image with background Snapshot Failed false [CameraIN] Snapshot failed Error: ffmpeg input to image conversion failed with exit code: 1, /usr/bin/ffmpeg -hide_banner -y -i pipe:4 -filter_complex scale=-2:'min(720,ih)' -frames:v 1 -f image2 pipe:3 at /src/ffmpeg-image-filter.ts:177:23 at processTicksAndRejections (node:internal/process/task_queues:95:5) [CameraIN] creating error image with background Snapshot Failed false [CameraIN] Snapshot failed Error: ffmpeg input to image conversion failed with exit code: 1, /usr/bin/ffmpeg -hide_banner -y -i pipe:4 -filter_complex scale=-2:'min(720,ih)' -frames:v 1 -f image2 pipe:3 at /src/ffmpeg-image-filter.ts:177:23 at processTicksAndRejections (node:internal/process/task_queues:95:5) [CameraIN] creating error image with background Snapshot Failed false [CameraOUT] Snapshot failed RPCResultError: Operation Timed Out at Timeout._onTimeout (/@scrypted/prebuffer-mixin/main.nodejs.js:1:78940) at listOnTimeout (node:internal/timers:569:17) at process.processTimers (node:internal/timers:512:7) thread:main @scrypted/prebuffer-mixin:host host:@scrypted/snapshot { cause: undefined } [CameraOUT] creating error image with background Snapshot Failed false [CameraIN] Snapshot failed Error: ffmpeg input to image conversion failed with exit code: 1, /usr/bin/ffmpeg -hide_banner -y -i pipe:4 -filter_complex scale=-2:'min(720,ih)' -frames:v 1 -f image2 pipe:3 at /src/ffmpeg-image-filter.ts:177:23 at processTicksAndRejections (node:internal/process/task_queues:95:5) [CameraIN] creating error image with background Snapshot Failed false [CameraIN] Snapshot failed Error: ffmpeg input to image conversion failed with exit code: 1, /usr/bin/ffmpeg -hide_banner -y -i pipe:4 -filter_complex scale=-2:'min(720,ih)' -frames:v 1 -f image2 pipe:3 at /src/ffmpeg-image-filter.ts:177:23 at processTicksAndRejections (node:internal/process/task_queues:95:5) [CameraIN] creating error image with background Snapshot Failed false [CameraOUT] Snapshot failed RPCResultError: Operation Timed Out at Timeout._onTimeout (/@scrypted/prebuffer-mixin/main.nodejs.js:1:78940) at listOnTimeout (node:internal/timers:569:17) at process.processTimers (node:internal/timers:512:7) thread:main @scrypted/prebuffer-mixin:host host:@scrypted/snapshot { cause: undefined } [CameraOUT] creating error image with background Snapshot Failed false

koush commented 1 year ago

does snapshot work in management console

adrianmihalko commented 1 year ago

I have two identical cameras on same network as Scrypted.

Management console:

  1. Outdoor camera: at this moment snapshot is working in the management console.
  2. Indoor camera: snapshot failed in the management console - always.

There are same setting and firmwares on the cameras.

Homekit:

when I first open Homekit app sometimes I see snapshot for my Outdoor camera (only), but after that it newer get updated. For Indoor camera I see snapshot failed always.

While I keep open Homekit on my phone and in the same time checking console:

[HomeKit]: HomeKit Connection 10.88.1.126
[Snapshot Plugin]: Snapshot failed Error: ffmpeg input to image conversion failed with exit code: 1, /usr/bin/ffmpeg -hide_banner -y -i pipe:4 -filter_complex scale=-2:'min(720,ih)' -frames:v 1 -f image2 pipe:3
[Snapshot Plugin]:     at /src/ffmpeg-image-filter.ts:177:23
[Snapshot Plugin]:     at processTicksAndRejections (node:internal/process/task_queues:95:5)
[Snapshot Plugin]: creating error image with background Snapshot Failed true
[HomeKit]: snapshot error RPCResultError: ffmpeg input to image conversion failed with exit code: 1, /usr/bin/ffmpeg -hide_banner -y -i pipe:4 -filter_complex eq=brightness=-0.2[snapshotBlur] ; [snapshotBlur] gblur=sigma=25[snapshotText] ; [snapshotText] drawtext=fontfile=/server/volume/plugins/@scrypted/snapshot/zip/unzipped/fs/Lato-Bold.ttf:text='Snapshot Failed':fontcolor=white:fontsize=h/8:x=(w-text_w)/2:y=(h-text_h)/2 -frames:v 1 -f image2 pipe:3
[HomeKit]:     at /src/ffmpeg-image-filter.ts:177:23
[HomeKit]:     at processTicksAndRejections (node:internal/process/task_queues:95:5)
[HomeKit]: @scrypted/snapshot:host
[HomeKit]: host:@scrypted/homekit {
[HomeKit]:   cause: undefined
[HomeKit]: }
Screenshot 2023-06-17 at 18 59 32 Screenshot 2023-06-17 at 19 00 06
adrianmihalko commented 1 year ago

One more debug log from snapshot plugin:

[CameraOUT] -hide_banner -y -i pipe:[REDACTED] -filter_complex scale=-2:'min(240,ih)' -frames:v 1 -f image2 pipe:3
[CameraIN] -hide_banner -y -i pipe:[REDACTED] -filter_complex crop=iw*0.269775390625:ih*0.3626692456479691:iw*0.5537109375:ih*0.2811895551257253 -frames:v 1 -f image2 pipe:3
[CameraOUT] [mjpeg @ 0x55af6325a980] 
[CameraOUT] dqt: 0 quant value

[CameraOUT] [jpeg_pipe @ 0x55af632587c0] 
[CameraOUT] decoding for stream 0 failed

[CameraOUT] [jpeg_pipe @ 0x55af632587c0] 
[CameraOUT] Could not find codec parameters for stream 0 (Video: mjpeg, none(bt470bg/unknown/unknown)): unspecified size
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options

[CameraOUT] Input #0, jpeg_pipe, from 'pipe:4':

[CameraOUT]   Duration: 
[CameraOUT] N/A
[CameraOUT] , bitrate: 
[CameraOUT] N/A
[CameraOUT] 

[CameraOUT]   Stream #0:0
[CameraOUT] : Video: mjpeg, none(bt470bg/unknown/unknown)
[CameraOUT] , 25 fps, 25 tbr, 25 tbn, 25 tbc
Stream mapping:
  Stream #0:0 (mjpeg) -> scale
  scale -> Stream #0:0 (mjpeg)
[mjpeg @ 0x55af6325c300] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
Cannot determine format of input stream 0:0 after EOF
Error marking filters as finished
Conversion failed!

[CameraOUT] ffmpeg exited
[CameraOUT] creating error image with background Snapshot Failed true
[CameraOUT] -hide_banner -y -i pipe:[REDACTED] -filter_complex eq=brightness=-0.2[snapshotBlur] ; [snapshotBlur] gblur=sigma=25[snapshotText] ; [snapshotText] drawtext=fontfile=/server/volume/plugins/@scrypted/snapshot/zip/unzipped/fs/Lato-Bold.ttf:text='Snapshot Failed':fontcolor=white:fontsize=h/8:x=(w-text_w)/2:y=(h-text_h)/2 -frames:v 1 -f image2 pipe:3
[CameraOUT] Snapshot failed Error: ffmpeg input to image conversion failed with exit code: 1, /usr/bin/ffmpeg -hide_banner -y -i pipe:4 -filter_complex scale=-2:'min(240,ih)' -frames:v 1 -f image2 pipe:3
    at /src/ffmpeg-image-filter.ts:177:23
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
[CameraIN] [mjpeg @ 0x55e06e168980] 
[CameraIN] dqt: 0 quant value

[CameraIN] [jpeg_pipe @ 0x55e06e1667c0] 
[CameraIN] decoding for stream 0 failed

[CameraIN] [jpeg_pipe @ 0x55e06e1667c0] 
[CameraIN] Could not find codec parameters for stream 0 (Video: mjpeg, none(bt470bg/unknown/unknown)): unspecified size
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options

[CameraIN] Input #0, jpeg_pipe, from 'pipe:4':

[CameraIN]   Duration: 
[CameraIN] N/A
[CameraIN] , bitrate: 
[CameraIN] N/A
[CameraIN] 

[CameraIN]   Stream #0:0: Video: mjpeg, none(bt470bg/unknown/unknown), 25 fps, 25 tbr, 25 tbn, 25 tbc
Stream mapping:
  Stream #0:0 (mjpeg) -> crop
  crop -> Stream #0:0 (mjpeg)
[mjpeg @ 0x55e06e16a300] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
Cannot determine format of input stream 0:0 after EOF
Error marking filters as finished
Conversion failed!

[CameraIN] ffmpeg exited
[CameraIN] creating error image with background Snapshot Failed false
[CameraIN] Snapshot failed Error: ffmpeg input to image conversion failed with exit code: 1, /usr/bin/ffmpeg -hide_banner -y -i pipe:4 -filter_complex crop=iw*0.269775390625:ih*0.3626692456479691:iw*0.5537109375:ih*0.2811895551257253 -frames:v 1 -f image2 pipe:3
    at /src/ffmpeg-image-filter.ts:177:23
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
[CameraIN] -hide_banner -y -i /server/volume/plugins/@scrypted/snapshot/zip/unzipped/fs/black.jpg -filter_complex gblur=sigma=25[snapshotText] ; [snapshotText] drawtext=fontfile=/server/volume/plugins/@scrypted/snapshot/zip/unzipped/fs/Lato-Bold.ttf:text='Snapshot Failed':fontcolor=white:fontsize=h/8:x=(w-text_w)/2:y=(h-text_h)/2 -frames:v 1 -f image2 pipe:3
Input #0, rtsp, from 'rtsp://127.0.0.1:38025/5d4acd37dcb27b11':

  Metadata:
    title           : LIVE555 Streaming Media v2020.05.15
    comment         : LIVE555 Streaming Media v2020.05.15
  Duration: N/A, start: 0.332167, bitrate: N/A
  Stream #0:0: Video: h264 (Main), yuv420p(progressive), 1920x1080, 25 fps, 25 tbr, 90k tbn, 50 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> mjpeg (native))
Press [q] to stop, [?] for help

[swscaler @ 0x55d809370dc0] 
deprecated pixel format used, make sure you did set range correctly

Output #0, image2, to 'pipe:3':

  Metadata:

    title           : 
LIVE555 Streaming Media v2020.05.15

    comment         : 
LIVE555 Streaming Media v2020.05.15

    encoder         : 
Lavf58.76.100

  Stream #0:0
: Video: mjpeg, yuvj420p(pc, progressive), 1920x1080, q=2-31, 200 kb/s
, 
25 fps, 
25 tbn

    Metadata:

      encoder         : 
Lavc58.134.100 mjpeg

    Side data:

cpb: 
bitrate max/min/avg: 0/0/200000 buffer size: 0 
vbv_delay: N/A

frame=    1 fps=0.0 q=3.1 size=N/A time=00:00:00.04 bitrate=N/A speed=N/A    
video/audio detected, discarding further input
ffmpeg exited
[CameraIN] Input #0, image2, from '/server/volume/plugins/@scrypted/snapshot/zip/unzipped/fs/black.jpg':

[CameraIN]   Duration: 
[CameraIN] 00:00:00.04
[CameraIN] , start: 
[CameraIN] 0.000000
[CameraIN] , bitrate: 
[CameraIN] 7298 kb/s
[CameraIN] 

[CameraIN]   Stream #0:0
[CameraIN] : Video: mjpeg (Baseline), yuvj420p(pc, bt470bg/unknown/unknown), 1920x1080 [SAR 72:72 DAR 16:9]
[CameraIN] , 
[CameraIN] 25 fps, 
[CameraIN] 25 tbr, 
[CameraIN] 25 tbn, 
[CameraIN] 25 tbc
Stream mapping:
  Stream #0:0 (mjpeg) -> gblur
  drawtext -> Stream #0:0 (mjpeg)
Press [q] to stop, [?] for help

[CameraOUT] [mjpeg @ 0x55bce448ab40] 
[CameraOUT] dqt: 0 quant value

[CameraOUT] [jpeg_pipe @ 0x55bce4488900] 
[CameraOUT] decoding for stream 0 failed

[CameraOUT] [jpeg_pipe @ 0x55bce4488900] 
[CameraOUT] Could not find codec parameters for stream 0 (Video: mjpeg, none(bt470bg/unknown/unknown)): unspecified size
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options

[CameraOUT] Input #0, jpeg_pipe, from 'pipe:4':

[CameraOUT]   Duration: 
[CameraOUT] N/A
[CameraOUT] , bitrate: 
[CameraOUT] N/A
[CameraOUT] 

[CameraOUT]   Stream #0:0
[CameraOUT] : Video: mjpeg, none(bt470bg/unknown/unknown), 25 fps, 25 tbr, 25 tbn, 25 tbc
Stream mapping:
  Stream #0:0 (mjpeg) -> eq
  drawtext -> Stream #0:0 (mjpeg)
[mjpeg @ 0x55bce448c5c0] dqt: 0 quant value
Error while decoding stream #0:0: Invalid data found when processing input
Cannot determine format of input stream 0:0 after EOF
Error marking filters as finished
Conversion failed!

[CameraOUT] ffmpeg exited
unhandledRejection Error: ffmpeg input to image conversion failed with exit code: 1, /usr/bin/ffmpeg -hide_banner -y -i pipe:4 -filter_complex eq=brightness=-0.2[snapshotBlur] ; [snapshotBlur] gblur=sigma=25[snapshotText] ; [snapshotText] drawtext=fontfile=/server/volume/plugins/@scrypted/snapshot/zip/unzipped/fs/Lato-Bold.ttf:text='Snapshot Failed':fontcolor=white:fontsize=h/8:x=(w-text_w)/2:y=(h-text_h)/2 -frames:v 1 -f image2 pipe:3
    at /src/ffmpeg-image-filter.ts:177:23
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
[CameraIN] Output #0, image2, to 'pipe:3':

[CameraIN]   Metadata:

[CameraIN]     encoder         : 
[CameraIN] Lavf58.76.100
[CameraIN] 

[CameraIN]   Stream #0:0
[CameraIN] : Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown, progressive), 1920x1080 [SAR 72:72 DAR 16:9], q=2-31, 200 kb/s
[CameraIN] , 
[CameraIN] 25 fps, 
[CameraIN] 25 tbn
[CameraIN] 

[CameraIN]     Metadata:

[CameraIN]       encoder         : 
[CameraIN] Lavc58.134.100 mjpeg
    Side data:
      cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: N/A

[CameraIN] frame=    1 fps=0.0 q=8.1 size=N/A time=00:00:00.04 bitrate=N/A speed=N/A    
[CameraIN] video/audio detected, discarding further input

[CameraIN] ffmpeg exited
koush commented 1 year ago

You have an invalid crop region set. Remove that.

kaisamng commented 1 year ago

I, too, have this error with the Reolink camera with the ONVIF plugin-- even after removing crop regions. No viewing in management console (thought clicking on the broken image pops up the feed just fine). I even tried creating a webhook and accessing the image through that-- no dice.

The relevant part of the console is below:

[Snapshot Plugin]: creating error image with background Snapshot Failed true [Snapshot Plugin]: Snapshot failed Error: ffmpeg input to image conversion failed with exit code: 1, /usr/bin/ffmpeg -hide_banner -y -f image2pipe -i pipe:4 -filter_complex scale=-2:'min(720,ih)' -frames:v 1 -f image2 pipe:3 [Snapshot Plugin]: at /src/ffmpeg-image-filter.ts:178:23 [Snapshot Plugin]: at processTicksAndRejections (node:internal/process/task_queues:95:5)

adrianmihalko commented 1 year ago

It doesn’t work for me either. I even tried adding snapshot url manually, but nope, it doesn’t work. The only thing works, when I add camera manually (rtsp), but I don’t like it, because then I don’t have secure video recording feature available.

so for now I am living without snapshot, the recording and streaming works great.

kaisamng commented 1 year ago

I've found a workaround-- in the management console, go to your Doorbell --> Snapshot Plugin --> and enable "snapshots from prebuffer."

image

Might be a little more CPU intensive, but now my snapshots show in the management console, and I can fetch them through the webhook.

koush commented 1 year ago

I need complete logs with the snapshot plugin debug mode enabled.

kaisamng commented 1 year ago

Here's the log from the Snapshot plugin (I changed "Snapshots from Prebuffer" back to 'default' to reproduce the issue):

linux x64 #1 SMP Debian 5.10.162-1 (2023-01-21) server version: 0.39.0 plugin version: @scrypted/snapshot 0.0.57 full ######################## 6/25/2023, 8:37:33 PM ######################## node modules /server/volume/plugins/@scrypted/snapshot/node18-linux-x64-20230608 plugin loaded [Reolink Video Doorbell WiFi] -hide_banner -y -f image2pipe -i pipe:[REDACTED] -filter_complex scale=-2:'min(720,ih)' -frames:v 1 -f image2 pipe:3 [Reolink Video Doorbell WiFi] [image2pipe @ 0x56232dd30f80] Could not find codec parameters for stream 0 (Video: none, none): unknown codec Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options

[Reolink Video Doorbell WiFi] Input #0, image2pipe, from 'pipe:4': Duration: N/A, bitrate: N/A Stream #0:0: Video: none, none, 25 fps, 25 tbr, 25 tbn, 25 tbc Stream mapping: Stream #0:0 (?) -> scale scale -> Stream #0:0 (mjpeg) Decoder (codec none) not found for input stream #0:0

[Reolink Video Doorbell WiFi] ffmpeg exited [Reolink Video Doorbell WiFi] Snapshot failed Error: ffmpeg input to image conversion failed with exit code: 1, /usr/bin/ffmpeg -hide_banner -y -f image2pipe -i pipe:4 -filter_complex scale=-2:'min(720,ih)' -frames:v 1 -f image2 pipe:3 at /src/ffmpeg-image-filter.ts:178:23 at processTicksAndRejections (node:internal/process/task_queues:95:5) [Reolink Video Doorbell WiFi] creating error image with background Snapshot Failed true [Reolink Video Doorbell WiFi] -hide_banner -y -f image2pipe -i pipe:[REDACTED] -filter_complex eq=brightness=-0.2[snapshotBlur] ; [snapshotBlur] gblur=sigma=25[snapshotText] ; [snapshotText] drawtext=fontfile=/server/volume/plugins/@scrypted/snapshot/zip/unzipped/fs/Lato-Bold.ttf:text='Snapshot Failed':fontcolor=white:fontsize=h/8:x=(w-text_w)/2:y=(h-text_h)/2 -frames:v 1 -f image2 pipe:3 [Reolink Video Doorbell WiFi] [image2pipe @ 0x559d41906080] Could not find codec parameters for stream 0 (Video: none, none): unknown codec Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options

[Reolink Video Doorbell WiFi] Input #0, image2pipe, from 'pipe:4': Duration: N/A, bitrate: N/A Stream #0:0: Video: none, none, 25 fps, 25 tbr, 25 tbn, 25 tbc

[Reolink Video Doorbell WiFi] Stream mapping:

[Reolink Video Doorbell WiFi] Stream #0:0 (?) -> eq [Reolink Video Doorbell WiFi]

[Reolink Video Doorbell WiFi] drawtext -> Stream #0:0 (mjpeg) Decoder (codec none) not found for input stream #0:0

[Reolink Video Doorbell WiFi] ffmpeg exited unhandledRejection Error: ffmpeg input to image conversion failed with exit code: 1, /usr/bin/ffmpeg -hide_banner -y -f image2pipe -i pipe:4 -filter_complex eq=brightness=-0.2[snapshotBlur] ; [snapshotBlur] gblur=sigma=25[snapshotText] ; [snapshotText] drawtext=fontfile=/server/volume/plugins/@scrypted/snapshot/zip/unzipped/fs/Lato-Bold.ttf:text='Snapshot Failed':fontcolor=white:fontsize=h/8:x=(w-text_w)/2:y=(h-text_h)/2 -frames:v 1 -f image2 pipe:3 at /src/ffmpeg-image-filter.ts:178:23 at processTicksAndRejections (node:internal/process/task_queues:95:5)

And here's the console logs from the Reolink Device itself. I truncated some logs from the Rebroadcast Plugin.

######################## 6/25/2023, 8:39:15 PM ######################## [Rebroadcast Plugin]: request headers GET_PARAMETER rtsp:// RTSP/1.0 [Rebroadcast Plugin]: CSeq: 21 [Rebroadcast Plugin]: User-Agent: Lavf59.27.100 [Rebroadcast Plugin]: Session: 6608dc97 [Rebroadcast Plugin]: response headers RTSP/1.0 200 OK [Rebroadcast Plugin]: CSeq: 21 ... listen loop 5m idle timeout, destroying listener. Camera supports WSPullPoint <?xml version="1.0" encoding="UTF-8"?>

adming/wAdV1916KIQifmk/c0RIXP5MI=jbkmvCTKbKHWqJl3BdPXVA==2023-06-25T20:39:29.381Zhttp:///onvif/device_servicefalsefalsefalsefalsetruetruefalsefalsefalsefalse216falsefalsefalsefalsefalsefalsefalsefalsehttp:///onvif/event_servicetruetruefalsehttp:///onvif/imaging_servicehttp:///onvif/media_servicefalsetruetrue10http:///onvif/deviceIO_service10100 adminGRk1/tlPluZg71aS+gdl6hIvMME=4AWVlCLZZESs8rR1RWyFEw==2023-06-25T20:39:29.527Zhttp://www.onvif.org/onvif/ver10/topics/topicns.xmltruehttp://www.onvif.org/ver10/tev/topicExpression/ConcreteSethttp://docs.oasis-open.org/wsn/t-1/TopicExpression/Concretehttp://www.onvif.org/ver10/tev/messageContentFilter/ItemFilterhttp://www.onvif.org/onvif/ver10/schema/onvif.xsd listening events [Rebroadcast Plugin]: request headers GET_PARAMETER rtsp:// RTSP/1.0 [Rebroadcast Plugin]: CSeq: 22 [Rebroadcast Plugin]: User-Agent: Lavf59.27.100 [Rebroadcast Plugin]: Session: 6608dc97 [Rebroadcast Plugin]: response headers RTSP/1.0 200 OK [Rebroadcast Plugin]: CSeq: 22 ... [HomeKit]: HomeKit Connection [Snapshot Plugin]: -hide_banner -y -f image2pipe -i pipe:[REDACTED] -filter_complex scale=-2:'min(720,ih)' -frames:v 1 -f image2 pipe:3 [Snapshot Plugin]: [image2pipe @ 0x56232dd30f80] Could not find codec parameters for stream 0 (Video: none, none): unknown codec [Snapshot Plugin]: Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options [Snapshot Plugin]: Input #0, image2pipe, from 'pipe:4': [Snapshot Plugin]: Duration: N/A, bitrate: N/A [Snapshot Plugin]: Stream #0:0: Video: none, none, 25 fps, 25 tbr, 25 tbn, 25 tbc [Snapshot Plugin]: Stream mapping: [Snapshot Plugin]: Stream #0:0 (?) -> scale [Snapshot Plugin]: scale -> Stream #0:0 (mjpeg) [Snapshot Plugin]: Decoder (codec none) not found for input stream #0:0 [Snapshot Plugin]: ffmpeg exited [Snapshot Plugin]: Snapshot failed Error: ffmpeg input to image conversion failed with exit code: 1, /usr/bin/ffmpeg -hide_banner -y -f image2pipe -i pipe:4 -filter_complex scale=-2:'min(720,ih)' -frames:v 1 -f image2 pipe:3 [Snapshot Plugin]: at /src/ffmpeg-image-filter.ts:178:23 [Snapshot Plugin]: at processTicksAndRejections (node:internal/process/task_queues:95:5) [Snapshot Plugin]: creating error image with background Snapshot Failed true [Snapshot Plugin]: -hide_banner -y -f image2pipe -i pipe:[REDACTED] -filter_complex eq=brightness=-0.2[snapshotBlur] ; [snapshotBlur] gblur=sigma=25[snapshotText] ; [snapshotText] drawtext=fontfile=/server/volume/plugins/@scrypted/snapshot/zip/unzipped/fs/Lato-Bold.ttf:text='Snapshot Failed':fontcolor=white:fontsize=h/8:x=(w-text_w)/2:y=(h-text_h)/2 -frames:v 1 -f image2 pipe:3 [Snapshot Plugin]: [image2pipe @ 0x559d41906080] Could not find codec parameters for stream 0 (Video: none, none): unknown codec [Snapshot Plugin]: Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options [Snapshot Plugin]: Input #0, image2pipe, from 'pipe:4': [Snapshot Plugin]: Duration: N/A, bitrate: N/A [Snapshot Plugin]: Stream #0:0: Video: none, none, 25 fps, 25 tbr, 25 tbn, 25 tbc [Snapshot Plugin]: Stream mapping: [Snapshot Plugin]: Stream #0:0 (?) -> eq [Snapshot Plugin]: [Snapshot Plugin]: drawtext -> Stream #0:0 (mjpeg) [Snapshot Plugin]: Decoder (codec none) not found for input stream #0:0 [Snapshot Plugin]: ffmpeg exited [Rebroadcast Plugin]: request headers GET_PARAMETER rtsp:// RTSP/1.0 [Rebroadcast Plugin]: CSeq: 23 [Rebroadcast Plugin]: User-Agent: Lavf59.27.100 [Rebroadcast Plugin]: Session: 6608dc97 [Rebroadcast Plugin]: response headers RTSP/1.0 200 OK [Rebroadcast Plugin]: CSeq: 23

And finally, here's what it looks like when "Snapshots from Prebuffer" is enabled:

######################## 6/25/2023, 8:46:53 PM ######################## -hide_banner -y -analyzeduration 0 -probesize 3232979 -reorder_queue_size 0 -rtsp_transport tcp -f rtsp -i rtsp:[REDACTED] -frames:v 1 -f image2 pipe:3 Input #0, rtsp, from 'rtsp://127.0.0.1:36117/9144ef544d35506d': Metadata: title : Session streamed by "preview" Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: h264 (High), yuv420p(progressive), 2560x1920, 90k tbr, 90k tbn, 180k tbc Stream #0:1: Audio: aac (LC), 16000 Hz, mono, fltp

Stream mapping: Stream #0:0 -> #0:0 (h264 (native) -> mjpeg (native)) Press [q] to stop, [?] for help

[swscaler @ 0x564ead59db80] deprecated pixel format used, make sure you did set range correctly

[image2 @ 0x564ead54e500] Frame rate very high for a muxer not efficiently supporting it. Please consider specifying a lower framerate, a different muxer or -vsync 2

Output #0, image2, to 'pipe:3': Metadata: title : Session streamed by "preview"

encoder         : Lavf58.76.100

Stream #0:0: Video: mjpeg, yuvj420p(pc, progressive), 2560x1920, q=2-31, 200 kb/s, 90k fps, 90k tbn Metadata: encoder : Lavc58.134.100 mjpeg Side data: cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: N/A

frame= 1 fps=0.0 q=12.2 size=N/A time=00:00:00.00 bitrate=N/A dup=1 drop=0 speed=4.98e-05x
video/audio detected, discarding further input ffmpeg exited -hide_banner -y -analyzeduration 0 -probesize 945843 -reorder_queue_size 0 -rtsp_transport tcp -f rtsp -i rtsp:[REDACTED] -frames:v 1 -f image2 pipe:3 Input #0, rtsp, from 'rtsp://127.0.0.1:39579/fb7372e0d78b1248': Metadata: title : Session streamed by "preview" Duration: N/A, start: -0.059000, bitrate: N/A Stream #0:0: Video: h264 (High), yuv420p(progressive), 2560x1920, 20 fps, 25.33 tbr, 90k tbn, 40 tbc Stream #0:1: Audio: aac (LC), 16000 Hz, mono, fltp

Stream mapping: Stream #0:0 -> #0:0 (h264 (native) -> mjpeg (native))

Press [q] to stop, [?] for help

[swscaler @ 0x55a751005100] deprecated pixel format used, make sure you did set range correctly

Output #0, image2, to 'pipe:3': Metadata: title : Session streamed by "preview" encoder : Lavf58.76.100

Stream #0:0: Video: mjpeg, yuvj420p(pc, progressive), 2560x1920, q=2-31, 200 kb/s, 25.33 fps, 25.33 tbn Metadata: encoder : Lavc58.134.100 mjpeg Side data: cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: N/A

frame= 1 fps=0.0 q=12.4 size=N/A time=00:00:00.03 bitrate=N/A dup=1 drop=0 speed=2.13x
video/audio detected, discarding further input ffmpeg exited -hide_banner -y -analyzeduration 0 -probesize 3256084 -reorder_queue_size 0 -rtsp_transport tcp -f rtsp -i rtsp:[REDACTED] -frames:v 1 -f image2 pipe:3 Input #0, rtsp, from 'rtsp://127.0.0.1:45173/d1e9dcbd3603c7fa': Metadata: title : Session streamed by "preview" Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: h264 (High), yuv420p(progressive), 2560x1920, 25 tbr, 90k tbn, 180k tbc

Stream #0:1: Audio: aac (LC), 16000 Hz, mono, fltp

Stream mapping: Stream #0:0 -> #0:0 (h264 (native) -> mjpeg (native)) Press [q] to stop, [?] for help

[swscaler @ 0x55679c3b9740] deprecated pixel format used, make sure you did set range correctly

Output #0, image2, to 'pipe:3': Metadata: title : Session streamed by "preview" encoder : Lavf58.76.100 Stream #0:0: Video: mjpeg, yuvj420p(pc, progressive), 2560x1920, q=2-31, 200 kb/s , 25 fps, 25 tbn Metadata: encoder : Lavc58.134.100 mjpeg Side data: cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: N/A

frame= 1 fps=0.0 q=12.5 size=N/A time=00:00:00.04 bitrate=N/A dup=1 drop=0 speed=0.262x
video/audio detected, discarding further input ffmpeg exited -hide_banner -y -analyzeduration 0 -probesize 3228752 -reorder_queue_size 0 -rtsp_transport tcp -f rtsp -i rtsp:[REDACTED] -frames:v 1 -f image2 pipe:3 Input #0, rtsp, from 'rtsp://127.0.0.1:39285/75651ba5189a10aa': Metadata: title : Session streamed by "preview" Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: h264 (High), yuv420p(progressive), 2560x1920, 90k tbr, 90k tbn, 180k tbc Stream #0:1: Audio: aac (LC), 16000 Hz, mono, fltp

Stream mapping: Stream #0:0 -> #0:0 (h264 (native) -> mjpeg (native)) Press [q] to stop, [?] for help

[swscaler @ 0x559e079ae440] deprecated pixel format used, make sure you did set range correctly

[image2 @ 0x559e077d2880] Frame rate very high for a muxer not efficiently supporting it. Please consider specifying a lower framerate, a different muxer or -vsync 2

Output #0, image2, to 'pipe:3': Metadata: title : Session streamed by "preview"

encoder         : Lavf58.76.100

Stream #0:0: Video: mjpeg, yuvj420p(pc, progressive), 2560x1920, q=2-31, 200 kb/s, 90k fps, 90k tbn Metadata: encoder : Lavc58.134.100 mjpeg Side data: cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: N/A

frame= 1 fps=0.0 q=12.5 size=N/A time=00:00:00.00 bitrate=N/A dup=1 drop=0 speed=0.000269x
video/audio detected, discarding further input ffmpeg exited -hide_banner -y -analyzeduration 0 -probesize 3251122 -reorder_queue_size 0 -rtsp_transport tcp -f rtsp -i rtsp:[REDACTED] -frames:v 1 -f image2 pipe:3 Input #0, rtsp, from 'rtsp://127.0.0.1:37055/c6e89e3c8ddb38ef': Metadata: title : Session streamed by "preview" Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: h264 (High), yuv420p(progressive), 2560x1920, 90k tbr, 90k tbn, 180k tbc Stream #0:1: Audio: aac (LC), 16000 Hz, mono, fltp

Stream mapping: Stream #0:0 -> #0:0 (h264 (native) -> mjpeg (native))

Press [q] to stop, [?] for help

[swscaler @ 0x560da1155880] deprecated pixel format used, make sure you did set range correctly

[image2 @ 0x560da0fdb0c0] Frame rate very high for a muxer not efficiently supporting it. Please consider specifying a lower framerate, a different muxer or -vsync 2

Output #0, image2, to 'pipe:3': Metadata: title : Session streamed by "preview" encoder : Lavf58.76.100 Stream #0:0: Video: mjpeg, yuvj420p(pc, progressive), 2560x1920, q=2-31, 200 kb/s, 90k fps, 90k tbn Metadata: encoder : Lavc58.134.100 mjpeg Side data: cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: N/A

frame= 1 fps=0.0 q=12.5 size=N/A time=00:00:00.00 bitrate=N/A dup=1 drop=0 speed=9.84e-05x
video/audio detected, discarding further input ffmpeg exited [Reolink Video Doorbell WiFi] -hide_banner -y -f image2pipe -i pipe:[REDACTED] -filter_complex scale=-2:'min(720,ih)' -frames:v 1 -f image2 pipe:3 [Reolink Video Doorbell WiFi] Input #0, image2pipe, from 'pipe:4':

[Reolink Video Doorbell WiFi] Duration: [Reolink Video Doorbell WiFi] N/A [Reolink Video Doorbell WiFi] , bitrate: [Reolink Video Doorbell WiFi] N/A [Reolink Video Doorbell WiFi]

[Reolink Video Doorbell WiFi] Stream #0:0 [Reolink Video Doorbell WiFi] : Video: mjpeg (Baseline), yuvj420p(pc, bt470bg/unknown/unknown), 2560x1920 [Reolink Video Doorbell WiFi] , [Reolink Video Doorbell WiFi] 25 fps, [Reolink Video Doorbell WiFi] 25 tbr, [Reolink Video Doorbell WiFi] 25 tbn, [Reolink Video Doorbell WiFi] 25 tbc [Reolink Video Doorbell WiFi]

[Reolink Video Doorbell WiFi] Stream mapping:

[Reolink Video Doorbell WiFi] Stream #0:0 (mjpeg) -> scale [Reolink Video Doorbell WiFi]

[Reolink Video Doorbell WiFi] scale [Reolink Video Doorbell WiFi] -> Stream #0:0 (mjpeg)

[Reolink Video Doorbell WiFi] [swscaler @ 0x5645673c7bc0] deprecated pixel format used, make sure you did set range correctly

[Reolink Video Doorbell WiFi] Output #0, image2, to 'pipe:3':

[Reolink Video Doorbell WiFi] Metadata:

[Reolink Video Doorbell WiFi] encoder : [Reolink Video Doorbell WiFi] Lavf58.76.100 [Reolink Video Doorbell WiFi]

[Reolink Video Doorbell WiFi] Stream #0:0 [Reolink Video Doorbell WiFi] : Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown, progressive), 960x720, q=2-31, 200 kb/s [Reolink Video Doorbell WiFi] , [Reolink Video Doorbell WiFi] 25 fps, [Reolink Video Doorbell WiFi] 25 tbn [Reolink Video Doorbell WiFi]

[Reolink Video Doorbell WiFi] Metadata:

[Reolink Video Doorbell WiFi] encoder : [Reolink Video Doorbell WiFi] Lavc58.134.100 mjpeg [Reolink Video Doorbell WiFi]

[Reolink Video Doorbell WiFi] Side data:

[Reolink Video Doorbell WiFi]
[Reolink Video Doorbell WiFi] cpb: [Reolink Video Doorbell WiFi] bitrate max/min/avg: 0/0/200000 buffer size: 0 [Reolink Video Doorbell WiFi] vbv_delay: N/A [Reolink Video Doorbell WiFi]

[Reolink Video Doorbell WiFi] frame= 1 fps=0.0 q=7.8 size=N/A time=00:00:00.04 bitrate=N/A speed=4e+04x
[Reolink Video Doorbell WiFi] video/audio detected, discarding further input [Reolink Video Doorbell WiFi] ffmpeg exited -hide_banner -y -analyzeduration 0 -probesize 3278672 -reorder_queue_size 0 -rtsp_transport tcp -f rtsp -i rtsp:[REDACTED] -frames:v 1 -f image2 pipe:3 Input #0, rtsp, from 'rtsp://127.0.0.1:33615/1c8845837d7f508d': Metadata: title : Session streamed by "preview" Duration: N/A, start: 0.000000, bitrate: N/A

Stream #0:0: Video: h264 (High), yuv420p(progressive), 2560x1920, 25 tbr, 90k tbn, 180k tbc Stream #0:1: Audio: aac (LC), 16000 Hz, mono, fltp

Stream mapping: Stream #0:0 -> #0:0 (h264 (native) -> mjpeg (native)) Press [q] to stop, [?] for help

[swscaler @ 0x55ecc07fe040] deprecated pixel format used, make sure you did set range correctly

Output #0, image2, to 'pipe:3': Metadata: title : Session streamed by "preview" encoder : Lavf58.76.100 Stream #0:0: Video: mjpeg, yuvj420p(pc, progressive), 2560x1920, q=2-31, 200 kb/s, 25 fps, 25 tbn Metadata: encoder : Lavc58.134.100 mjpeg Side data: cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: N/A

frame= 1 fps=0.0 q=12.6 size=N/A time=00:00:00.04 bitrate=N/A dup=1 drop=0 speed=0.228x
video/audio detected, discarding further input ffmpeg exited [Reolink Video Doorbell WiFi] -hide_banner -y -f image2pipe -i pipe:[REDACTED] -filter_complex scale=-2:'min(720,ih)' -frames:v 1 -f image2 pipe:3 [Reolink Video Doorbell WiFi] Input #0, image2pipe, from 'pipe:4': Duration: N/A, bitrate: N/A

[Reolink Video Doorbell WiFi] Stream #0:0: Video: mjpeg (Baseline), yuvj420p(pc, bt470bg/unknown/unknown), 2560x1920, 25 fps, 25 tbr, 25 tbn, 25 tbc

[Reolink Video Doorbell WiFi] Stream mapping:

[Reolink Video Doorbell WiFi] Stream #0:0 (mjpeg) -> scale [Reolink Video Doorbell WiFi]

[Reolink Video Doorbell WiFi] scale [Reolink Video Doorbell WiFi] -> Stream #0:0 (mjpeg)

[Reolink Video Doorbell WiFi] [swscaler @ 0x56194e503500] deprecated pixel format used, make sure you did set range correctly Output #0, image2, to 'pipe:3': Metadata: encoder : Lavf58.76.100 Stream #0:0: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown, progressive), 960x720, q=2-31, 200 kb/s, 25 fps, 25 tbn Metadata: encoder : Lavc58.134.100 mjpeg Side data: cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: N/A

[Reolink Video Doorbell WiFi] frame= 1 fps=0.0 q=7.8 size=N/A time=00:00:00.04 bitrate=N/A speed=4e+04x
[Reolink Video Doorbell WiFi] video/audio detected, discarding further input [Reolink Video Doorbell WiFi] ffmpeg exited -hide_banner -y -analyzeduration 0 -probesize 3232435 -reorder_queue_size 0 -rtsp_transport tcp -f rtsp -i rtsp:[REDACTED] -frames:v 1 -f image2 pipe:3 Input #0, rtsp, from 'rtsp://127.0.0.1:46635/976512748a49a828': Metadata: title : Session streamed by "preview" Duration: N/A, start: 0.000000, bitrate: N/A

Stream #0:0: Video: h264 (High), yuv420p(progressive), 2560x1920, 24.50 tbr, 90k tbn, 180k tbc Stream #0:1: Audio: aac (LC), 16000 Hz, mono, fltp

Stream mapping: Stream #0:0 -> #0:0 (h264 (native) -> mjpeg (native)) Press [q] to stop, [?] for help

[swscaler @ 0x560d83151a00] deprecated pixel format used, make sure you did set range correctly

Output #0, image2, to 'pipe:3': Metadata: title : Session streamed by "preview" encoder : Lavf58.76.100

Stream #0:0: Video: mjpeg, yuvj420p(pc, progressive), 2560x1920, q=2-31, 200 kb/s, 24.50 fps, 24.50 tbn Metadata: encoder : Lavc58.134.100 mjpeg Side data: cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: N/A

frame= 1 fps=0.0 q=12.6 size=N/A time=00:00:00.04 bitrate=N/A dup=1 drop=0 speed=1.06x
video/audio detected, discarding further input ffmpeg exited [Reolink Video Doorbell WiFi] -hide_banner -y -f image2pipe -i pipe:[REDACTED] -filter_complex scale=-2:'min(720,ih)' -frames:v 1 -f image2 pipe:3 [Reolink Video Doorbell WiFi] Input #0, image2pipe, from 'pipe:4': Duration: N/A, bitrate: N/A

[Reolink Video Doorbell WiFi] Stream #0:0: Video: mjpeg (Baseline), yuvj420p(pc, bt470bg/unknown/unknown), 2560x1920, 25 fps, 25 tbr, 25 tbn, 25 tbc

[Reolink Video Doorbell WiFi] Stream mapping:

[Reolink Video Doorbell WiFi] Stream #0:0 (mjpeg) -> scale [Reolink Video Doorbell WiFi]

[Reolink Video Doorbell WiFi] scale [Reolink Video Doorbell WiFi] -> Stream #0:0 (mjpeg)

[Reolink Video Doorbell WiFi] [swscaler @ 0x55cac5c8c0c0] deprecated pixel format used, make sure you did set range correctly Output #0, image2, to 'pipe:3': Metadata: encoder : Lavf58.76.100 Stream #0:0: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown, progressive), 960x720, q=2-31, 200 kb/s, 25 fps, 25 tbn Metadata: encoder : Lavc58.134.100 mjpeg Side data: cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: N/A

[Reolink Video Doorbell WiFi] frame= 1 fps=0.0 q=7.8 size=N/A time=00:00:00.04 bitrate=N/A speed=4e+04x
[Reolink Video Doorbell WiFi] video/audio detected, discarding further input [Reolink Video Doorbell WiFi] ffmpeg exited -hide_banner -y -analyzeduration 0 -probesize 3276469 -reorder_queue_size 0 -rtsp_transport tcp -f rtsp -i rtsp:[REDACTED] -frames:v 1 -f image2 pipe:3

koush commented 1 year ago

@kaisamng does the snapshot work reliably in the management console? I'm wondering if this is just an ffmpeg failure when trying to resize the image.

kaisamng commented 1 year ago

@kaisamng does the snapshot work reliably in the management console? I'm wondering if this is just an ffmpeg failure when trying to resize the image.

@koush Once "Snapshots from Prebuffer" is enabled, snapshots always display in the management console. Otherwise, snapshots never appear in the management console.

adrianmihalko commented 1 year ago

I can confirm: Snapshots from Prebuffer works, but as it is indicated it is using some CPU. Homekit + management console: working.

Without prebuffer and cropping disabled I have snapshot working in the management console, but nothing in homekit.

chrisloftus commented 12 months ago

I'm also having this issue. Using Snapshot from prebuffer for now.

idontcare99999 commented 11 months ago

I just activated my new doorbell and am also seeing this issue. Let me know how I can help track down the root cause.

j-inc commented 10 months ago

I too was having this issue and was able to resolve it by overriding the snapshot URL in the Reolink plugin with the URL format supplied by Reolink: http://(ip address)/cgi-bin/api.cgi?cmd=Snap&channel=0&rs=(any combination of numbers and letters)&user=(user name)&password=(user password)