File Buffer and Video Clip - No such file or directory

Hi Y’all,

I’ve got a notification where Node red sends video to Telegram when a frigate event happens.

This was working well when Frigate stored clips in the Media folder - but this has changed in a recent update.

Now, I’m referencing the clip location using the following URL structure:
msg.clip = ha_external_url + “/api/frigate/notifications/” + msg.event_id + “/” + msg.payload.after.camera + “/clip.mp4”;

however, the buffer node in node red is giving the following error: “ENOENT: No such file or directory”

What is interesting is that the URL is accessible through the browser.

Is there something that I’m missing? Does anybody have a better idea of how I could accomplish this?

Thanks!

Can you change the folder where the file is stored? Try creating a new folder in the www folder. When calling the address eg config/www/new_folder/clip.mp4 replace www with local to get to the file config/local/new_folder/clip.mp4

Thanks for the reply - I can’t specify where the file is stored through Frigate. I suspect that the file is served streamed and only produced based on the inputs .

If I do upload a static clip to the www or local folder, then I have no problem with the node.

Maybe that’s part of the problem?

Until I read your post i was unaware that you could share the media folder to the internet. Perhaps there was a bug that allowed it to be reached.

AFAIK the only folder, by default, that can be reached from the internet is www. You can make other folders available but that requires specific CLI input.