I received an error message "Error: Failed to create video writer sink".

This means you aren't able to directly change a file to another particular type.

Try converting to another file type and then convert that file to the file type you want e.g. Convert to .AVI then from .AVI to .WMV