sahilchaddha / node-rtsp-recorder

Records and saves RTSP Video Streams
66 stars 29 forks source link

Overnight recordings die. #4

Open JakeCigar opened 5 years ago

JakeCigar commented 5 years ago

You need to be a little more aggressive creating directories. At least on my Mac.

In recordStream, you need to add

    fh.createDirIfNotExists(this.getTodayPath())

before

    fh.createDirIfNotExists(folderPath)
iwonder-1618 commented 5 years ago

@JakeCigar I agree, looks like nobody tested the plugin with overnight recording. I will create a PR with a potential fix soon.

JakeCigar commented 5 years ago

I’ve been running several days with the added call to fh.createDirIfNotExists. You might want to add some recursive mkdir type code to replace fh.createDirIfNotExists.

Niranjanvelu commented 1 year ago

Could you please share the code for this?