calculation and comparison of live video frames

Posted on 2004-11-19
Last Modified: 2010-04-15

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
    LVL 3

    Expert Comment

    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.

    LVL 96

    Expert Comment

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

    LVL 3

    Accepted Solution

    That's another valid point, Bob

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Bit flags and bit flag manipulation is perhaps one of the most underrated strategies in programming, likely because most programmers developing in high-level languages rely too much on the high-level features, and forget about the low-level ones. Th…
    It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now