Cannot upload video

video
media-upload

#1

Hello, I have been trying for ages to get a video upload to work. I am trying to get the last block of code in this blog post - https://lorenstewart.me/2017/02/03/twitter-api-uploading-videos-using-node-js/ - to work (since the video is hosted in an s3 bucket).

This video https://s3-ap-northeast-1.amazonaws.com/ojo-video-finals/sample1/mp4-sample1.mp4 is the output of an AWS elastic transcoder job using a preset that AWS Support created for me and which they are sure conforms to your requirements.

At my last attempt, the data passed to the T.postMediaChunked callback was:

{
“media_id”: 1070702097660670000,
“media_id_string”: “1070702097660669954”,
“media_key”: “7_1070702097660669954”,
“size”: 3075310,
“expires_after_secs”: 86400,
“processing_info”: {
“state”: “pending”,
“check_after_secs”: 1
}
}

The data passed to the T.post(‘media/metadata/create’) callback was:

“”

And the error passed to the T.post(‘statuses/update’) callback was:

{ errors: [ { code: 324, message: ‘Not valid video’ } ] }

Please help ASAP before I lose my mind :slight_smile: