I have a camera system (Axis) which stores JPG via FTP 1-10fps. There
is also a motion jpg live stream.
I am trying to store these images either in JPG or in video format so
they can be reviewed at a later date. I would need to be able to pull
a date-time range from the list.
This means 86,400 - 2,160,000 images (around 110Kb a piece) per camera
a day, depending on speed 1fps - 10fps. There will probably be 1-5
cameras typically. Perhaps more in some rare cases.
I have considered storing via FTP process to a file system, then
creating directories by day/hour to group the images. Then store the
filename and timestamp in a searchable (by timestamp) table in mySQL.
This would allow to read the image from disk and have it searchable by
timestamp.
I still am unsure how to display the images, one option is to do meta
refresh 1-10 times a second, but i think this will be a burden on the
client. There should only be 1-2 clients accessing this data and it
will be via local lan most likely.
Concerns I have:
1. Would storing the images in the database directly be fast enough
(by passes the need to worry about file locations and directory
sizes).
2. How many files can you store in a directory before it becomes to
slow to work with (50,000? 1 million?)
3. How do you display these jpgs as a smooth animation without hogging
bandwidth and client cpu to display a slideshow.
4. Was considering storing into a movie format, but how do you search
by time and what method use to store as movie.
Any ideas or insight on this problem would be greatly appreciated.
is also a motion jpg live stream.
I am trying to store these images either in JPG or in video format so
they can be reviewed at a later date. I would need to be able to pull
a date-time range from the list.
This means 86,400 - 2,160,000 images (around 110Kb a piece) per camera
a day, depending on speed 1fps - 10fps. There will probably be 1-5
cameras typically. Perhaps more in some rare cases.
I have considered storing via FTP process to a file system, then
creating directories by day/hour to group the images. Then store the
filename and timestamp in a searchable (by timestamp) table in mySQL.
This would allow to read the image from disk and have it searchable by
timestamp.
I still am unsure how to display the images, one option is to do meta
refresh 1-10 times a second, but i think this will be a burden on the
client. There should only be 1-2 clients accessing this data and it
will be via local lan most likely.
Concerns I have:
1. Would storing the images in the database directly be fast enough
(by passes the need to worry about file locations and directory
sizes).
2. How many files can you store in a directory before it becomes to
slow to work with (50,000? 1 million?)
3. How do you display these jpgs as a smooth animation without hogging
bandwidth and client cpu to display a slideshow.
4. Was considering storing into a movie format, but how do you search
by time and what method use to store as movie.
Any ideas or insight on this problem would be greatly appreciated.
Comment