How to automate a process of video recording.

Dell / Poweredge r210
October 23, 2018 at 03:08:46
Specs: windows 7, Core i3 /2GB
I am trying to record a constantly playing video through a screen capturing software (bandicam) I am recording it to the hard disk drive which has about 200gb space available.The video is getting recorded in 1 hour blocks.What I need is a mechanism where the older recordings will be replaces by the new recordings. That way I will not have to add extra space to continue recording.(Something like a surveillance video being recorded) Any Idea?

See More: How to automate a process of video recording.

Report •

#1
October 23, 2018 at 04:21:26
I could write a batch script for that, but i think there must be a better option.
I will wait for other users to respond before taking that road

i5-6600K[delid]@4.7GHz/4.3GHz@1.376v LLC=6 | 2x4GB Crucial-DDR4-2133CL15@14-14-14-28 1T 2700MHz@1.35v
MSI Armor RX 570 4GB@1180Mhz core@0.937v/2000MHz


Report •

#2
May 23, 2019 at 05:56:56
So you have the current file, and the ones that have been written in the past. If I understand the question, you want some of the written files be removed, but not all. I assume you mean to keep 3 or 5 of them (or whatever limited account).

So, the question then is; how do I remove all of the files, except the last 3 or 5 recent ?

Can you post some detail on the file naming; are they numbered, or do they have a time stamp ?


Report •

#3
May 23, 2019 at 07:16:21
RE #2 he hasnt been active for the last 7 months, i doubt he wil ever come back to respond...

i5-6600K[delid]@4.9GHz/4.4GHz cache@1.504v | 2x4GB Crucial-DDR4-2400CL17@CL12-15-15-28 1T 3000MHz@1.45v | Sapphire Nitro+ SE RX 590 8GB@1450Mhz core@0.925v/2250MHz@1500MHz timings BiosModded


Report •

Related Solutions

#4
May 23, 2019 at 10:08:34
hidde663,

My experience with batch files is minimal, and decades old,
but I'm curious how that would work. Would it be completely
independant of the program that saves the files? My first
guess is that the batch file would run each time after the
video capture program closes a saved file. It would check
the disk space to see if there is room to save the next one,
and if not, it would find the oldest file and delete it, then give
control back to the video capture program. Is that close?

My question would then be: How does the closing of a
saved video file trigger the batch file to do its thing? That
is, how is control transferred from the video capture program
to the batch file without briefly stopping the video capture
program?

-- Jeff, in Minneapolis


Report •

#5
May 23, 2019 at 23:55:12
Looge,

The videos are being recorded in one hour blocks. The videos are being named by the recording software and they do have the time stamp. I just wanted to keep recording the videos. But there would be a space issue. Let's say there are videos from 1-10 and the hard disk is full. What I would like is an automated process that delete the 1st video then start recording the 11th video and delete the 2nd video and start recording the 12th video and so on and on. My experience with batch files are also limited but I wonder if that is an option as hidde663 has suggested.


Report •

#6
May 29, 2019 at 08:22:53
RE #4

should look something like:

@echo off
::(this line might be neccesary) start bdcam.exe /nosplash
for /l %%a in () do timeout 60 >nul&if "%time:~4,1%"=="0" bdcam.exe /record


1. then all i need to do is set a directory where i can place the 1 hour blocks (1st one can be shorter.)
2. keep track of how many 1hour recordings can fit in 200GB. (using the 2nd 1hour video, since everything after that should be the same size or smaller. there is an alternative.... but less creative.)
3. add some error handling
4. add a trigger in the endless for loop which check if it should delete a file(which then looks for the oldest one.)

RE #5

will test this tommorow, with the free version of bandicam(not sure if that supports commandline parameters tho, will try blind if not.)

I will need to know the exact location of bdcam.exe & the full-path (name of directory where you want to store the 1 hour video blocks)

i5-6600K[delid]@4.9GHz/4.4GHz cache@1.504v | 2x4GB Crucial-DDR4-2400CL17@CL12-15-15-28 1T 3000MHz@1.45v | Sapphire Nitro+ SE RX 590 8GB@1450Mhz core@0.925v/2250MHz@1500MHz timings BiosModded


Report •

Ask Question