Set codec and quality settings for videopool

How and where would you set the codec and quality settings to suit slow and faster connections in a livestream broadcast videopool? I want to make only the first subscriber have best settings and subsequent subscriber videos low settings. But I want to set the codec as h.264 for all.