Open rcpinheiro opened 6 years ago
in file: instagram-photo-video-upload-api.class.php find:
public function UploadVideo($video, $image, $caption){ $this->UploadVideoApi($video); $this->UploadPhotoApi($image); $this->ConfigVideoApi($caption); }
add sleep(x) between "UploadPhotoApi" and "ConfigVideoApi" where x is the number of seconds it should wait before sending the post. This will give instagram enough time (hopefully) to transcode the video before accepting your post.
the new code should look like this:
public function UploadVideo($video, $image, $caption){ $this->UploadVideoApi($video); $this->UploadPhotoApi($image); sleep(60); $this->ConfigVideoApi($caption); }
in file: instagram-photo-video-upload-api.class.php find:
public function UploadVideo($video, $image, $caption){ $this->UploadVideoApi($video); $this->UploadPhotoApi($image); $this->ConfigVideoApi($caption); }
add sleep(x) between "UploadPhotoApi" and "ConfigVideoApi" where x is the number of seconds it should wait before sending the post. This will give instagram enough time (hopefully) to transcode the video before accepting your post.
the new code should look like this:
public function UploadVideo($video, $image, $caption){ $this->UploadVideoApi($video); $this->UploadPhotoApi($image); sleep(60); $this->ConfigVideoApi($caption); }
That doesn't work for me, I put even 180 seconds. is there any other way?
Hi! I'm getting this error on video upload: {"message": "Transcode not finished yet.", "status": "fail"}
The video has less than 60 seconds and is under 10MB (MP4,1280x720,AAC) Any fix for this problem? Thanks!