It links with the system media kit libraries for input, which are backed by ffmpeg. For export it links directly to ffmpeg since the ffmpeg API exposes a lot more options and codec variations compared to BeAPI (ie. you can access the very strict/strict/normal/experimental/unofficial codec combinations).