Patent ID: 7289564

Claim:
A video encoding method with support for editing when scene changed, the distance between two reference pictures being defined as M in a GOP, the method comprising the steps of: capturing pictures in a display order; detecting the scene change for a picture PIC n ; and coding the pictures in a coding order when there is not a scene change occurred for the picture PIC n , and coding the pictures by a special processing when there is a scene change occurred for the picture PIC n ; the special processing comprising: executing a first and a third coding stages when the picture PIC n−1 is not a reference picture; and executing a second and the third coding stages when the picture PIC n−1 is a reference picture; wherein the first coding stage is to re-code the picture PIC n−1 as a P-picture type, the second coding stage is to code the pictures of B-picture type preceding the picture PIC n−1 , and the third coding stage is to start a new GOP, to code a picture PIC n+M−1 as a I-picture type, and to code the pictures PIC n to PIC n+M−2 as B-picture type with only referencing to the picture PIC n+M−1 .