[Encoder] add total length in encoder output and complete statistics

being reviewed at: https://rbcommons.com/s/OpenH264/r/917/