Fixed an issue with stream to file output path
Initialize QSV encoder before querying parameters

Fixes crash with buffer set to 0