leocrawford / picasawebsync

Sync local directories with picasaweb
MIT License
59 stars 16 forks source link

Cannot upload mp4 videos #33

Closed gowthamgts closed 8 years ago

gowthamgts commented 9 years ago

I've a directory with a sample image and video. While running the program, the image is successfully uploaded while it shows an error for the video as follows:

Skipped vids\bunny.mp4 (because can't upload file of type video/mp4).

So, are videos not supported?

leocrawford commented 9 years ago

By default --format is set to photo only, you probably want video or both.

gowthamgts commented 9 years ago

Thank you so much. I missed it.

gowthamgts commented 9 years ago

Hey, that's actually working for smaller files. But, when I tried to upload a bigger file less than 1GB, it shows the following error:

WARNING: Failed to UPLOAD_LOCAL on Home Chandi.mp4 identified as LOCAL_ONLY. This was due to [Errno 32] Broken pipe

Also, I cannot upload mkv files. They are supported by Picasa, but I cannot upload them.

leocrawford commented 9 years ago

The file type is easy to fix. Towards the bottom of the code is an enumeration with video mime types. Feel free to add, test and submit a patch.

Re the file size I have no idea? Is it airways exactly 1gb it fails at?

gowthamgts commented 9 years ago

Yeah I went through the code and issued a pull request supporting the .mkv. And the file size is 745MB.

leocrawford commented 9 years ago

Thanks for the pull. Merged.

leocrawford commented 9 years ago

I'm afraid I'm unlikely to look into the file size issue. I suspect google is closing the connection for some reason, but I don't have time to look into it. Happy to take a patch.

gowthamgts commented 9 years ago

@leocrawford Issue happens only for larger videos. Smaller videos are uploaded successfully.