Does your drive with the media go to sleep? I’ve seen it where if the drive is asleep, the app can’t identify the codecs quick enough so it has PMS transcode to be safe. The second time, the drive is available, so it can identify the codecs and playback correctly.