Init for goamf encode and decode.
Still have lots of feature needed to add.