rework stream type and codec identification