Thanks you, all I found my problem. The do - while loop doesn't handle correctly. I also found that in the decrew example MIN_USEFUL_BYTES is 1 for my test avi file. Steve