Scanning a file

David Rasmussen david.rasmussen at
Tue Nov 1 20:36:07 CET 2005

Bengt Richter wrote:
> Good point, but perhaps the bit pattern the OP is looking for is guaranteed
> (e.g. by some kind of HDLC-like bit or byte stuffing or escaping) not to occur
> except as frame marker (which might make sense re the problem of re-synching
> to frames in a glitched video stream).


> The OP probably knows. I imagine this thread would have gone differently if the
> title had been "How to count frames in an MPEG2 file?" and the OP had supplied
> the info about what marks a frame and whether it is guaranteed not to occur
> in the data ;-)

Sure, but I wanted to ask the general question :) I am new to Python and 
I want to learn about the language.


More information about the Python-list mailing list