JorgenPhi / php-snapchat

A PHP library for the Snapchat API - With Commit History
MIT License
259 stars 73 forks source link

$snapchat->upload() doesn't work with all mp4 videos #97

Open nicolashardy opened 9 years ago

nicolashardy commented 9 years ago

Hello

I'm trying to use this library but I have a problem

All the mp4 files don't work apparently.

This one works http://techslides.com/demos/sample-videos/small.mp4 This one doesn't https://fat.gfycat.com/UncommonForkedArthropods.mp4

The method used is the same than in the example

$video = http://..... $id = $snapchat->upload( Snapchat::MEDIA_VIDEO, file_get_contents($video) );

$snapchat->send($id, array('MYID'), 8);

Do you have any ideas ? Thanks

ThePengwin commented 9 years ago

For starters, your second video is over 10 seconds long. Snapchat won't allow a video over 10 seconds.

nicolashardy commented 9 years ago

Thank you for your answer. Anyway, I still have the same issue with : https://fat.gfycat.com/ThreadbareGenuineHake.mp4 which is shorter than 10secs