Closed mavalon closed 7 years ago
We've just published a Python (not PHP) sample that works with larger videos. It may help you to understand the steps needed to move to the async model.
@andypiper I don't know Python, but as far as I can tell, the logic looks pretty much the same as the Video Files example. I guess there is no way to accomplish this with PHP (and more specifically, with the codebird-php library).
@andypiper How to trigger async processing? Will the Twitter server decide on its own, so I only need to check for processing_info
in FINALIZE?
To deal with this problem, i used a video manipulation package to edit the video before uploading to twitter. It's the most efficient way i could think of. Although, it will take some playing around to get everything perfect, you need to install ffmpeg etc
@ScooterSam Could you please connect with the OP in #171 and join forces to get these media upload issues fixed?
According to the media upload (FINALIZE) docs, async behaviour is triggered when a media_category is specified.
This behavior is enabled if an upload session was initialized with a media_category parameter, and when the media type is either video or animated GIF.
I am using the code sample under "Video Files" in README.md. It works fine as long as I upload small videos. The limitations for uploaded videos is far more restrictive for sync than for async as noted here: https://dev.twitter.com/rest/media/uploading-media#videorecs
How can I upload asynchronously using codebird? I am getting the following error when trying to upload videos that don't meet the sync specifications:
"Resolution too large, too many pixels. Maximum: 1310720, Actual: 2073600" or "Duration too long, maximum:30000, actual:43266"