[quote]If you want me to explain how to drop duplicate frames from a live video feed using current tools, I don't think that I can.[/quote]
thanks for a detailed explanation
(don't get this wrong,but you asked for it...)
my solution is not borked untill you say a better solution...
when you say better solution,my solution can be trashed....
[quote]You may want to take a look at Karl Lillevold's DropDupe filter. [/quote]
dunno about that one,but karl did a helluva job in turning d9 new codecs forum into real9 hangout....and that's a good thing...for anime freaks,that is.....
(this is a sidenote without a real connection to this issue..i just had the urge to say it...)
[quote]Using a user-adjustable setting, you determine if the current frame is different enough to warrant storing.[/quote]
that is good,yes,but again,i'm questioning the real benefits if the image is REALLY STILL...then mpeg4 works extremely efficient too...
i guess the main problem with this surveillance cameras (let's say this guy indeed had simillar job,as sure as hell he never really said what's it all about) is the noise,and that noise can trigger the filter to let the frame...also,images are typically very lo-res,and that another big issue....
so i wouldn't rely on such a filter,but rather would capture all of it...after all it's a surveillance and we need complete record...if the cat triggered the alarm,we need to see it etc.
lately i saw hi-res camera for surveillance(first of it's kind)...developed by a man that did a "The Scientist and Engineer's Guide to Digital Signal Processing" (Steven W.Smith)..that's a neat device...if you can afford it,that is...
[quote]
1. If you send a set of perfectly identical frames to a lossy codec, each frame will actually be different. This is because most codecs will compare the current frame to how the previous frame would look decoded. Because a lossy codec has lost detail on the image, it spends the next few frames correcting the image. I had assumed the same thing until I tried storing some still images as video and became frustrated with this.[/quote]
i disagree...i was just toying with quantization matrices and i used still image for a test sequence (avs' imagereader) and all frames are the same and bitrate is extremely low(in fact i don't think it could be called " bitrate" at all...heh)
that test resulted this thread;
http://neuron2.net/ipw-web/bulletin/bb/viewtopic.php?t=372if your results differ(as you said),i think you need to see my clips...
they have all frames looking the same...no mv's employed at all....no error residue encoded likewise....silly low bitrates as a result
[quote]2. Real video (especially security cameras) always have some variation from one frame to the next in the form of noise/static. Codecs are going to try and store this noise.[/quote]
indeed,as i said...but also as i said this noise can trigger the motion detection and then we see problems with your approach....(as it may result in all frames capped...so no difference to my proposal)
so it was just overkill to employ motion detection...
[quote]3. Because you have to store these differences, the bitrate doesn't ever reach zero, or even just a few bytes/frame.[/quote]
this is same as point2...
[quote]4. You are going to want to store a keyframe every so often in case you ever need to go back and play a section, and for error protection. Even a single keyframe every minute is going to take SOME space.[/quote]
so?
your solution has all-keyframes is it's capping scene changes only....
so your bitrate goes up that tway...
[quote]5. If you combine all four videos into single stream, any extra keyframes forced by a stream with movement requires all four video streams to be stored in the keyframe. [/quote]
who says scene change in one stream will trigger KF at all?
infact i think less KF's will be generated thsi way than in your "detect-motion" way....
[quote]In this way, the frames that have no movement never even make it to the encoder, and thus never get saved. You could even play back that file in any current DirectShow player.[/quote]
i doubt this is a reliable way to do video surveillance;video surveillance relies on simple principle;capture the complete duration,don't skip...you know the murphy's law....your scd would fail in the first place...
also,your system is just an idea..i said a system that works...(actually i was soldering(producing) some ISA cards that do exactly that:4inputs video multiplexer...can switch between the inouts or can show 4 screens at once..feed this to vdub(or simply use "camstudio" or so),use mpeg4 to compress and there you go.....you only need big hdd....surveillance is NOT a place to be saving bitrate excessivelly anyway....)
[quote]Passing an audio codec audio samples that are all at zero does make for pretty good compression ratios.[/quote]
i like high compression ratios too,but come on....some people's life may depend on this stuff....we need ALL the frames on a hdd....not just frames that some filter thinks are worthy...
[quote]@i4004: It just occured to me that you may have been asking how to solve this guys problem using Matroska and dropping out massive frames.[/quote]
no,you just mixed the two of us;you said to drop frames and use mkv...i didn't...
i said your idea won't work....
[quote]This isn't an option since he needs it in an MPEG-1/2 or AVI source. I was just giving a possible solution for storing 4 mostly static video feeds really efficiently. My apologies if I answered the wrong question. [/quote]
this is just an converstaion about two ideas..i think your idea is too-fantastic and can't be applied in a sensible way...(regardless of container used)
he can store mpeg in avi too(with ffvfw...

)
cheers
/ivo