title: YouTube Upload Error - Upload failed: Can't process file
body: <p>I am using this sample application for uploading a video on to YouTube. Initially I can able to upload the videos successfully without any issue, but after few days suddenly I have been facing the below error.</p>
  
  <p><a href="https://github.com/youtube/api-samples/tree/master/java" rel="noreferrer">https://github.com/youtube/api-samples/tree/master/java</a></p>
  
  <p>After completing upload, when I check the video in the Videos list of my channel, there it is showing an error(Upload failed: Can't process file) like below</p>
  
  <p><a href="https://i.stack.imgur.com/RctSg.png" rel="noreferrer"><img src="https://i.stack.imgur.com/RctSg.png" alt="enter image description here"></a></p>
  
  <p>The class I am using is</p>
  
  <p><a href="https://github.com/youtube/api-samples/blob/master/java/src/main/java/com/google/api/services/samples/youtube/cmdline/data/UploadVideo.java" rel="noreferrer">https://github.com/youtube/api-samples/blob/master/java/src/main/java/com/google/api/services/samples/youtube/cmdline/data/UploadVideo.java</a></p>
  
  <p>And while executing, the messages in the console are as in the below.</p>
  
  <pre><code>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
  </code></pre>