Skip to content

Twitter API allows for video to be max 512mb/140s but Twit limits to 15mb/30s #461

@pthieu

Description

@pthieu

Looking up the API specs: https://developer.twitter.com/en/docs/media/upload-media/uploading-media/media-best-practices.html

It states:

Video files must meet all of the following criteria:

Duration should be between 0.5 seconds and 30 seconds (sync) / 140 seconds (async)
File size should not exceed 15 mb (sync) / 512 mb (async)
Dimensions should be between 32x32 and 1280x1024
...

According to https://github.com/ttezel/twit/blob/master/lib/file_uploader.js#L6, Twit is limiting to 15mb.

Wondering if I'm just looking at the wrong file, but I'd like to use T.postMediaChunked to tweet videos as high as 512mb/140s.

Can @ttezel or anyone advise on a solution?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions