calculation and comparison of live video frames


first of all this is my final project(Video based security over IP) of MCS .Basically it is the client server application

client side detect the video motion from webcam and send this stream to server over ip

from server side it already calculate the value of client side and in runtime its calculate and compare the video frames if difference occur then nothing esle its generate the alarm
my question is that how can we calculate the video frame in binary form and how it compare with olf frame with new frame
Thank yoy
Mohammad Aamir QureshiAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

This reminds me of my grad project - we wrote an MPEG2 player and analyzer in 1997 - long before it became the standard for DVD.

I am not sure what format you are using for the video stream. If it is MPEG2, You can detect the start of a new frame based on whether it is an I-frame, P-frame or B-frame. Look at the MPEG Protocol for details.

If you are sending the frames as gifs or jpegs, it should be no problem to insert a flag for BOF and EOF(Begin Frame/End Frame) and store the frame data in a binary array for comparison.

Again - your question is too high-level to answer in a forum like this, but hope this helps.

Bob LearnedCommented:
You must not think that it is too important, because it is a very complex problem for only 20 points :))

That's another valid point, Bob

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.