mp4: call get_timestamp just once