Fixed vp_file_open() flags
[WIP] Implement vp_encode()