How to use amlogic media module to create two es video codec at same time

how to use amlogic media module to create two es video codec at same time? If anyone have sample for that.