A method of encoding a sequence of digital images into a bitstream, at least one portion of an image being encoded by motion compensation with respect to a reference image portion, wherein, for at least one image portion to encode, the method comprises the steps of: - obtaining a target number of motion information predictors to be used for said image portion to encode; - generating a set of motion information predictors having the obtained target number of motion information predictors; and - selecting a motion information predictor from among the generated set of motion information predictors for encoding motion information for said image portion to encode; and wherein the generating step comprises: - obtaining a first set of motion information predictors each associated with an image portion having a predetermined spatial and/or temporal relationship with said image portion being encoded, said first set of motion information predictors having a number of motion information predictors not greater than the target number, - modifying said first set of motion information predictors by removing one or more duplicate motion information predictors to obtain a reduced set of motion information predictors containing a first number of motion information predictors, each motion information predictor of said reduced set being different from any other motion information predictor of said reduced set and - after obtaining said reduced set of motion information predictors, comparing said first number of motion information predictors to said target number obtained, and - if said first number is lower than said target number, - obtaining one or more additional motion information predictors, and - adding said one or more additional motion information predictors to said reduced set of motion information predictors, wherein the motion information predictors of said first set are actual motion information predictors, having motion vectors obtained from image portions of said image being encoded or of a reference image, and characterized in that the one or more additional motion information predictors include a virtual motion information predictor not having a motion vector obtained from an image portion of said image being encoded or of a reference image, and said adding generates the set of motion information predictors having the obtained target number of motion information predictors. - obtaining a target number of motion information predictors to be used for said image portion to encode; - generating a set of motion information predictors having the obtained target number of motion information predictors; and - selecting a motion information predictor from among the generated set of motion information predictors for encoding motion information for said image portion to encode; - obtaining a first set of motion information predictors each associated with an image portion having a predetermined spatial and/or temporal relationship with said image portion being encoded, said first set of motion information predictors having a number of motion information predictors not greater than the target number, - modifying said first set of motion information predictors by removing one or more duplicate motion information predictors to obtain a reduced set of motion information predictors containing a first number of motion information predictors, each motion information predictor of said reduced set being different from any other motion information predictor of said reduced set and - after obtaining said reduced set of motion information predictors, comparing said first number of motion information predictors to said target number obtained, and - if said first number is lower than said target number, - obtaining one or more additional motion information predictors, and - adding said one or more additional motion information predictors to said reduced set of motion information predictors, wherein the motion information predictors of said first set are actual motion information predictors, having motion vectors obtained from image portions of said image being encoded or of a reference image, and characterized in that the one or more additional motion information predictors include a virtual motion information predictor not having a motion vector obtained from an image portion of said image being encoded or of a reference image, and said adding generates the set of motion information predictors having the obtained target number of motion information predictors. - obtaining one or more additional motion information predictors, and - adding said one or more additional motion information predictors to said reduced set of motion information predictors,