media/segment_reference library