a method and a device for providing for sharing encoder resources in an mcu without compromising with image quality and bandwidth adaption is provided . the method and device comprises dynamic allocation of encoders in a multi - party video conference of a number of endpoints , wherein the video conference endpoints are adapted to encode and transmit a media stream comprising the steps of creating a new encoder at a request for a new pad , determining whether a maximum number of encoders is reached , if the maximum number of encoders is not reached , then linking the new pad to the new encoder , if the maximum number of encoders is reached , then linking all existing pads to the new encoder , 15 and releasing all unused encoders .