I use this application to upload videos to YouTube. At first, I can successfully upload the video without any problems, but after a few days I encountered an error below.
https://github.com/youtube/api-samples/tree/master/java
After the download is completed, when I check the video in the "Video" list of my channel, an error is displayed there ("Download failed: cannot process file"), as shown below

The class I'm using
https://github.com/youtube/api-samples/blob/master/java/src/main/java/com/google/api/services/samples/youtube/cmdline/data/UploadVideo.java
And at runtime, messages in the console are displayed as shown below.
Jul 15, 2017 2:02:59 PM com.google.api.client.util.store.FileDataStoreFactory setPermissionsToOwnerOnly WARNING: unable to change permissions for everybody: C:\Users\Krishna\.oauth-credentials Jul 15, 2017 2:02:59 PM com.google.api.client.util.store.FileDataStoreFactory setPermissionsToOwnerOnly WARNING: unable to change permissions for owner: C:\Users\Krishna\.oauth-credentials is is not empty Initiation Started Initiation Completed Upload in progress Upload percentage: 10485760 Upload Completed! ================== Returned Video ================== - Id: wYB8OfEe9jU - Title: ex - Tags: [video, file] - Privacy Status: public - Video Count: 0
source share