Page 8 of 49

Posted: Sat Nov 26, 2005 1:01 am
by jameswilson
ok i have made an export to jpeg function that allows you to export a selected video in the viewer to a folder and save all the successive jpegs.

I was impressed i managed this but i digress.
Working on this makes me appriciate 2 things
1 people that can spell and type neatly
2 HOW THE HELL DOES PHIL do this

Anyway im trying to create video files now
and am wondering if anyone here (if anyone actually reads this) knows how to work work with the system.io.stream of .net
this i beleive is what i need to use to create movie files
Im posting this as now im probably up to 3500 views of this topic and hopefully someone knows how to write this stuff properly????

Anyway respond here pm me call me anything these bottles of wine really are not helping lol.

James

Posted: Sat Nov 26, 2005 2:05 am
by jameswilson
update zm4msbeta now export properly without stalling
added progress info for event creation, i have designed it so you can use thumb drives etc

Just need to get avi and mpeg creation sorted now

You are cooking with Gas!

Posted: Sat Nov 26, 2005 2:44 am
by wa4bro
Damn James you are adding faster than I can download and test :lol:

Ok here are my latest obs:

1. I screwed up when I told you that version 1 got the url's ok from ImageSalsa. I reloaded it yesterday and it fails too locally, however it works from remote and so does v2 from remote. There is just something too weird over the lan local with it.

2. There is some light as I have ImageSalsa saving a fixed .jpg every .5 seconds and then I can grab it with v2 with no problems. Not quite as smooth as a true stream, but works for me.

3. Last version, have not grabbed the really latest in the last 30 mins <G> The Seq. Cycle crashes. Never noticed this before. It crashes as soon as it is clicked with error. If you continue at the error, the popup box comes up but with no images.

4. I have not been able to test the playback. I have opened mysql port on my server but can't seem to log in from player without error. I have granted user permission from the remote ip address but stil can't login as it rejects the user. I have got some more research to do there. I have never used a database remotely before. I may be missing something.

5. Question: Looks as though you can not record or cycle view a url grab, Is this intentional or by design? Also noticed URL grabs will not display in map view either.

If you want to see your screen at work see http://roswellweather.net/james.jpg


I do not know why you are not getting a lot of feedback James, I still think this is about the best thing I have seen since ZM! Not just for ZM James, I plugged in 36 scenic cams from around the world using url grab and on one screen I took a world tour :D Good darn thing I am not a pervert! :twisted:

I guess from the url grab wish list the only other thing that would be great for url grabs is individual refreshes for url grabs. The reason is to keep from taxing remote servers bandwidths. I would like to grab some images from time to time with much longer refreshes either because the image is semi static with refesh times that may exceed 4 or 5 mins or becasue it is an active webcam that I would like to grab an image every so often as not to over tax his server with with 1-10 second updates.

That wine is making me thirsty, think I will wet my whistle and grab your next update <G>

Great Work!

Dan

Posted: Sat Nov 26, 2005 10:51 am
by jameswilson

Code: Select all

Damn James you are adding faster than I can download and test 
Better slow down then lol
1. I screwed up when I told you that version 1 got the url's ok from ImageSalsa. I reloaded it yesterday and it fails too locally, however it works from remote and so does v2 from remote. There is just something too weird over the lan local with it
Ok then ill leave this for now and work out what the issue is with this salsa thing and fix it later but im gonna have to do a bit of research as i have no local salsa to test with
2. There is some light as I have ImageSalsa saving a fixed .jpg every .5 seconds and then I can grab it with v2 with no problems. Not quite as smooth as a true stream, but works for me.

Thats the max refersh rate of the viewer anyway so you shouldnt notice any difference



3. Last version, have not grabbed the really latest in the last 30 mins <G> The Seq. Cycle crashes. Never noticed this before. It crashes as soon as it is clicked with error. If you continue at the error, the popup box comes up but with no images.
I would assume this is due to a url issue i never altered seq or live map viewer for url's


. I have not been able to test the playback. I have opened mysql port on my server but can't seem to log in from player without error. I have granted user permission from the remote ip address but stil can't login as it rejects the user. I have got some more research to do there. I have never used a database remotely before. I may be missing something.
You need to add the user you are using in setting to mysql but im no expert on this, i maybe because i havnt included enough libs in the setup program i will check


5. Question: Looks as though you can not record or cycle view a url grab, Is this intentional or by design? Also noticed URL grabs will not display in map view either.
not intentional or by design forgot about it when i added urls
If you want to see your screen at work see http://roswellweather.net/james.jpg
Looks good, thankyou

Im not why im getting no feedback either i can only assume there is about 3 of us using this


I guess from the url grab wish list the only other thing that would be great for url grabs is individual refreshes for url grabs. The reason is to keep from taxing remote servers bandwidths. I would like to grab some images from time to time with much longer refreshes either because the image is semi static with refesh times that may exceed 4 or 5 mins or becasue it is an active webcam that I would like to grab an image every so often as not to over tax his server with with 1-10 second updates.
Ok Ill see what i can do im thinking of having a referesh rate per cam then that if has a value in it uses tis value instead of the other values

James

Posted: Sat Nov 26, 2005 9:57 pm
by jameswilson
I have not been able to test the playback. I have opened mysql port on my server but can't seem to log in from player without error. I have granted user permission from the remote ip address but stil can't login as it rejects the user. I have got some more research to do there. I have never used a database remotely before. I may be missing something.
I used mySql administrator to test my links first you can download it as a windows app from mysql. Also download the query browser then you can check your login details will work to browse the relevant db.

James

Posted: Sat Nov 26, 2005 10:52 pm
by jameswilson
another update to beta
Added export to jpeg
When in playback mode whatever event you are currently viewing clicking on export will load a new window
This has a button on it marked export to jpeg
once pressed a file dialog will open select the directory, thumb drive etc (maybe cd in xp havnt tried) and give your images a name eg "breakin rear store door"
press ok and the export should start
Each image from the event will be downlaoded in order and saved to local disk in chosen folder.
Works great on lan, works slowly (obviously) remote (especially on megapixel cams)
At the moment this is the only way to get images (apart from still) out of my app. I am looking at finding a way to create a video from these images.
I wouls have thought i was relativly easy to create an avi in .net but not the case. I will continue to search for a way to create a vid (it reaaly needs to) and add it when i can. In the mean time if anyone here has any pointers for me on this issue i would welcome them. I would like to be able to creat all sorts of different formats but would prefer if possible to keep all the means of doing so inside the app, else it would have dependancy issues which i am trying to avoid but i might not be able too.

Anyway im gonna start on adding/fixing Wabro's issues now will post new beta when complete.

James

Posted: Sun Nov 27, 2005 12:04 am
by jameswilson
Update
From Wa4bro's post

Bug 3 FIXED
It was due to me adding port number support and missing some things in the cycle code

Bug 5 FIXED
You can now use url or native zm details together seemlessly
The only thing you cannot do is playback from zm via a url as it assumes its not a zm else you wouldnt be using url mode for that monitor

James

Posted: Sun Nov 27, 2005 12:08 am
by jameswilson
wa4bro
Im looking now into your idea for different referesh rates if in url mode
Im not sure of the best way to go
Im thinking at the moment to have dynamic update speed enableable/disableable (wher it works out how many windows are currently open and slows down or speeds up dependant upon the setting in settings)
and then have a fixed update speed per monitor for the zm mode and url mode
that way you could have your local cams doing 500ms updates and your remote zm cams doing 10 second updates and your wierd irl things doing 60 second updates, but dynamic refresh rates would have to be disabled

What do you think?

James

Posted: Sun Nov 27, 2005 2:39 am
by jameswilson
Video wise again im out, i have been doing a bit of reading about compiling ffmpeg for windows. If i had or could make command line converter work this would do as i could pass commands to it via a command line, anyone any thoughts on this, as to how to achieve it?

Please!?

James

Posted: Sun Nov 27, 2005 2:47 am
by jameswilson
success just found an ffmpeg for windows
Phil i assume you use command line options to ffmpleg to make it create what it creates
How well do you know the command line?
Can ffmpeg work out for itself when the jpegs end or do you need to pass a limit to ffmpeg
so basically assuming a source (dir with jpegs in) of c:\source
and a destination of c:\destination\video.***
with jpegs orrdered as Zm does 001 - 999 then 1000-9999 etc etc
whats the command line you use

James

Posted: Sun Nov 27, 2005 5:08 am
by jameswilson
WOOHOO
Success on the video generation front, not complete by any means but definetly worth a play with again this is only the beta version

Added a button under export to jpeg called export MPEG

Press this button and it should generate an mpeg file in a set directory
PLEASE NOTE
REQUIRES
ffmpeg compiled for windows had to use 0.4.8 as it was the only one i caould find that would work
ffmpeg needs to be installed in a c:\ffmpeg\ (will make this changeable later)
You must create a folder called c:\cctv this is where all the temp files are stored to generate the mpeg and is where the mpeg ends up

Will be adding diferent support for different video types and tiding up the interface etc

Hope this makes it more interesting for ya

Ni night its 5am here and i have been on this damn video creation thing since 6pm (you should never decide your gonna get something working before you goto bed!!!)

James

Posted: Sun Nov 27, 2005 5:16 pm
by jameswilson
Update to Beta

Now well on the way to this not being a viewer anymore but a full front end.
Have fixed all 'bugs' i have found so far so i think the beta is ready to go
Have added
MPEG creation
AVI creation
ASF creation

Image
Uses ffmpeg and if you dont have ffmpeg saved to the folder saved in setting the buttons wont show.

Allows creation of required event into whatever format required
I have an annoying error box that appears that can be ignored relating to unable to delete files, this is just trying to cleanup if the previous movie creation failed before it cleaned up (crash power outage etc) but as it doesnt have anything to clean it throws an error, i will fix this but at the moment i dont know why it does it.

Anyhow we are getting there now!!!

PS ffmpeg req as previously stated is the windows version
google for ffmpeg.exe

James

You are smoking on that code!

Posted: Sun Nov 27, 2005 7:42 pm
by wa4bro
Hi James,
Sorry I been a little tied up with trying to get a cheap 16 Port Ebay card (120 FPS NTSC) to play with a new load of ZM on Mandriva 2006... Finally got the card to play somewhat but have horizontal sync problems. Tried all kinds of insmod settings but still got problems. Eventually I will figure it out when I have more time to play.

Thanks for the bug fixes with the URL mode.

I down loaded ffmpeg for windows but still can not connect to my database. Where are you getting the database name from ???
I am getting the error "not able to connect to database'zm' , in my installation the zoneminder database is called 'zoneminder' not zm and I noticed that you have just user and password but no database name to connect in the play back setup screen.

Dan


URLs are working in the record screen and the cycle screen.... thanks!

As far as refesh, yes the ability to atleast set a referesh rate per url grab would be useful.

On another front, Since there is plenty of real estate in the montior window headers, would be nice for a spot to have a box to put a camera description on each camera. Cam1 Casm2 etc is not real helpful for quick locate. ( Stock_Room, East_Corner etc etc) more useable.

Posted: Sun Nov 27, 2005 7:49 pm
by jameswilson
i agree on the update suggestions give me an hour on that
regarding your db problem, yeah mine is called zm and is hard coded ill makeit an option.

james.

ps i assume the column names are all the same? else this is gonna e a pain

Posted: Sun Nov 27, 2005 8:30 pm
by wa4bro
jameswilson wrote:i agree on the update suggestions give me an hour on that
regarding your db problem, yeah mine is called zm and is hard coded ill makeit an option.

james.

ps i assume the column names are all the same? else this is gonna e a pain
You mean in the database structure ? Yes they would be the same as zm creates the table structure, but the option on what to call the database is optional.



Oh, Just noticed that the camera cycle view does not display url grabs. I have ZM cams in my 1st. 4 and when it hits 5 for the url grab it keeps the last zm camera picture displayed but shows it cycling count upwards. So I guess url is still not working in cycle view.

Dan