-
I tried both these ammemds on just the tweet step using yesterday's 5into15.mp4 but it failed without confirming the video was uploaded so presume it is an error in the video.
I did a new timelapse using the old script to create a new and it worked again (although I had to confirm it could overwrite the mp4 as I hadn't removed it) - also it is upside down & half obscured as I wasn't thinking when setting it up. https://twitter.com/5into15/status/1382727672963461121?s=19
I'll ammend that to add in the response confirmation line as it'll be useful to have as well as the time checks at each step.
I guess the encoding of the video to h264 might be the problem point still?
1 Attachment
For a pause, put
near the top, then insert
between the upload_video and update_status lines. It'll probably achieve nothing, but it's something I'd try out of curiosity.
For verifying that the upload_video step is successful:
On line one, you're uploading your file to Twitter, and the response (including a unique identifier for the media file you just uploaded) is stashed in the response variable. You need that ID because when you then send your tweet with update_status, you need to attach the file to your tweet, and you do that by passing the ID of the media file along with your tweet: media_ids=[response['media_id']]
To verify the media upload worked, I'd probably start by just printing out response['media_id'] and seeing if it looks sane. E.g.