Getting 400 when uploading video file programmatically

I see the process spinner running for a while before video shows up. However from API, it was fairly fast for the upload and complete API to return. I am wondering if there is anything I missed. Thank a ton for your advice.