AbelCam Forum
Download AbelCam buy Pro
 
 
 
Welcome Anonymous User
11/22/2024 - 04:36 PM
Quick Search:
Quick Jump:
 
Announcements
Latest Topics
 
Jpeg2video
By: MichelP
Rank: Frequent User
Topics: 18
From: Belgium
Added: 11/03/2009 - 10:24 PM

Hey,

i'm using Abelcam PRO without any problem for a month now with 3 webcams.
It saves continious to my NAS server.

Each cam has it's own folder. But now there are about 70.000 files per folder, which it makes it very hard to open it.

Now I want to make a Windows task to launch jpeg2video every day at 00:00h to merge al the files of that day to a single video file, and store it on the NAS.

I launched the task like this:

c:\camscript\jpeg2videoc.exe /ifo="Y:\Images\Rechts" /ifi=*.jpg /ofo="Y:\Videos\Rechts" /ofi=Video_camera_rechts.wmv /delete

So this merges the files to a single files, and stores it to another location. Then it deletes the jpeg files.

But now the problem is that each time the task runs, it keeps on saving to Video_camera_rechts.wmv. So I only can save 1 day. Is there a way to put a datestamp in the filename, like Video_camera_rechts03112009.wmv?

Thanks!
By: sse
Rank: Forum Addict
Topics: 73
From: n/a
Added: 11/04/2009 - 12:20 AM

Hello Michel

jpeg2videoc can't do that for you, your batch file needs to take care of it.

I did a quick research and found how to set time and date in environment variables.
As I don't know your exact date/time format I can't provide a complete solution, but this link should help you to get there.

I'm interested to include your batch file in the Wiki. Maybe you can send me a short documentation about your archiving images to video when everything is working?
By: MichelP
Rank: Frequent User
Topics: 18
From: Belgium
Added: 11/06/2009 - 08:02 AM

Hey,

thanks! I will take a look at that info, and try to create a customized batchfile.
I will keep you posted!

By: MichaelAn
Rank: Forum Addict
Topics: 56
From: Denmark
Added: 11/06/2009 - 02:55 PM

hey, i got what you need Smile doing something similar to my mysql databases

set year=%date:~6,4%
set month=%date:~3,2%
set month=%month: =0%
set day=%date:~0,2%
set day=%day: =0%
set hour=%time:~0,2%
set hour=%hour: =0%
set min=%time:~3,2%
set min=%min: =0%
set sec=%time:~6,2%
set sec=%sec: =0%

set tFileName=%year%-%month%-%day%__%hour%-%min%-%sec%


c:\camscript\jpeg2videoc.exe /ifo="Y:\Images\Rechts" /ifi=*.jpg /ofo="Y:\Videos\Rechts" /ofi=%tFileName%.wmv /delete

Should make the file look something like 2009-11-06__14-54-53.wmv
By: MichaelAn
Rank: Forum Addict
Topics: 56
From: Denmark
Added: 11/06/2009 - 03:09 PM

I am trying to do the same with my setup, but i can't get it to do anything at all...

E:\jpeg2video\JPEG2VideoC.exe /ifo="E:\jpeg2video\2009-06-20" /ifi=*.jpg /ofo="E:\jpeg2video" /ofi=video.wmv
"Error: The system cannot find the file specified"



But when using
START JPEG2VideoC.exe /ifo="E:\jpeg2video\2009-06-20" /ifi=*.jpg /ofo="E:\jpeg2video" /ofi=video.wmv

it pops up, then closes again without a message, and not doing its thing...


Double and tribble checked folders, and then checked a few times again... It should all be right where the path says...
By: MichaelAn
Rank: Forum Addict
Topics: 56
From: Denmark
Added: 11/06/2009 - 03:42 PM

Just had a look in the issue tracker... My server is running 2003, is that still a problem?
By: sse
Rank: Forum Addict
Topics: 73
From: n/a
Added: 11/06/2009 - 08:43 PM

Does JPEG2Video work as it should?
Before using JPEG2VideoC you should find a working configuration (Codecs, AVI vs. WMV) with JPEG2Video.
By: MichaelAn
Rank: Forum Addict
Topics: 56
From: Denmark
Added: 11/06/2009 - 10:55 PM

no, none of them are working.

But seems to be a OS problem, when using the same config on my windows 7, it does exactly like it should.
By: MichaelAn
Rank: Forum Addict
Topics: 56
From: Denmark
Added: 11/06/2009 - 11:01 PM

Heh, amazing! Why is it that i always manage to post something, then getting it to work right after?

Anyways, i tried once again, same config as before, saved the config, and then went for it... And instead of a 0 byte file, it made a nice 1 minute and 10 sec timelapse movie, perfect!!!! Frin
By: MichaelAn
Rank: Forum Addict
Topics: 56
From: Denmark
Added: 11/06/2009 - 11:07 PM

My solusion including year-month-day__hour_minute_second

@echo off

set year=%date:~6,4%
set month=%date:~3,2%
set month=%month: =0%
set day=%date:~0,2%
set day=%day: =0%
set hour=%time:~0,2%
set hour=%hour: =0%
set min=%time:~3,2%
set min=%min: =0%
set sec=%time:~6,2%
set sec=%sec: =0%

set tFileName=%year%-%month%-%day%__%hour%-%min%-%sec%

echo Making timelapse movie Sphere__%tFileName%.wmv

START JPEG2VideoC.exe /ifo="C:\Timelapse\Sphere" /ifi=*.jpg /ofo="C:\Timelapse" /ofi=Sphere__%tFileName%.wmv
By: MichaelAn
Rank: Forum Addict
Topics: 56
From: Denmark
Added: 11/07/2009 - 01:36 AM

Added a bit more, to make it easy to handle multiple folders

But right now i am only just copying it all between "set year=%date:~6,4%" and then the line where it actually executes it, and haven't been able to figure out if there are a way to make a loop with a batch file, so it will loop through a list.

set source=C:\Timelapse
set destination=C:\Timelapse\#Movies

set year=%date:~6,4%
set month=%date:~3,2%
set month=%month: =0%
set day=%date:~0,2%
set day=%day: =0%
set hour=%time:~0,2%
set hour=%hour: =0%
set min=%time:~3,2%
set min=%min: =0%
set sec=%time:~6,2%
set sec=%sec: =0%
set picFolder=Backdoor

set tFileName=%year%-%month%-%day%__%hour%-%min%-%sec%

echo Making timelapse movie %picFolder%__%tFileName%.wmv

JPEG2VideoC.exe /ifo="%source%\%picFolder%" /ifi=*.jpg /ofo="%destination%" /ofi=%picFolder%__%tFileName%.wmv