update for multiple encoding and audio and video