question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Is it possible to do >15MB video uploads, async, using upload_video()?

See original GitHub issue

I want to upload videos to Twitter that are larger than 15MB, which is only possible using “async”.

Twython’s upload_video() method says it only supports up to 15MB, but it looks like it can maybe do async uploads, using the check_progress parameter?

But this isn’t documented in the comments or the documentation, so I’m not sure (a) how to use that, (b) if that is actually for doing async uploads, and © if it will allow the uploading of >15MB videos.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
thisisparkercommented, May 6, 2019

@TariqMK this is a bit beyond the scope of this issue, but you can get a more recent version than what’s in the operating system repos by using pip or installing from source. You may want to uninstall the version you got through apt to avoid conflicts.

Forgive me if you know this, but, you can start to run into problems if you’re installing modules for your “system” Python, and you can save yourself a lot of headaches by putting each project in a virtual environment. There are a bunch of options for that and people are opinionated, but you will probably want to find one that works for you if you haven’t yet.

1reaction
thisisparkercommented, Aug 9, 2017

Hi @philgyford:

I know it’s a fair bit later, but I ran into this issue and only solved my problem after, so I’m going to answer here in the hopes that it’s helpful to you or somebody else. If you haven’t gotten it working yet, and if you’re using Twython 3.5.0, I’d add a ‘media_category’ to your request. So in this case it would look like:

response = twitter.upload_video(media=my_video, media_type='video/mp4', media_category='tweet_video', check_progress=True)

Twitter’s documentation on this is really fuzzy, but I found that explicitly including the category was enough to make it work on longer videos.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Media Best Practices | Docs | Twitter Developer Platform
Uploading media with OAuth can be a bit tricky, so we've outlined some things to ... You may attach up to 4 photos,...
Read more >
Uploading Large Files as Chunks Using ReactJS & .Net Core
In this article, I will demonstrate how to upload a file without limitations of size using React Js and .Net Core Web API...
Read more >
Upload videos longer than 15 minutes - YouTube Help
By default, you can upload videos that are up to 15 minutes long. Verified accounts can upload videos longer than 15 minutes. To...
Read more >
Get video duration when input a video file - Stack Overflow
I am using this code to upload video files of 4+ GB. Any idea why video duration is missing for the format you...
Read more >
Easy Ways to Upload and Validate Large Files in ASP.NET
The files are uploaded using Post HTTP request in absolutely the same manner as the normal <input type="file" />. Since both modules upload...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found