Thanks everyone for your help. I searched through the ffmpeg source code and stumbled across a function which allows you to redirect it's logging functions to a callback function. With that I was able to see the error text and resolve the issue I was having. Thanks again for everything. Even though I didn't use your specific advice it did lead me down the right path.

Dan