The code in this region is fetching binary data from a URL - not a filename... I suggest adding a variant of geturl (getbinaryurl?) which returns an MCDataRef. (The code here is putting a downloaded video file into a temp file!).