try opening output codec