Attempting to upload a video that succeeds on website but fails on Chunked Video API

video

#1

Hi all,

Got another head scratcher here. I’ve got an MP4 video that uploads fine on native Twitter (via twitter.com) – https://snd-staging.s3.amazonaws.com/6b8cf261-dffc-11e5-886f-4f6f38c83520.mp4

However, when we try to upload it (via the chunked media/upload endpoint) and send it as a media_id via the API, it fails, with the API firing back “media parameter is invalid”. I’ve tried both our own code and the code that @rchoi was kind enough to write on a post a while back @ http://django-rest-apis.herokuapp.com/media

As far as I can tell, the video meets all the specs expected of it, and the fact that native Twitter accepts it leads me to believe it’s not an encoding issue. Am I missing something? Thanks!

Eric


#2

@grales Your video file is failing because it exceeds max allowed resolution. See https://dev.twitter.com/rest/public/uploading-media for video specifications that we support.


#3

Thanks @tushargj – the weird part is that it uploads fine via twitter.com. Does the native Twitter website automatically downscale videos?


#4

@tushargj here’s a tweet with that same video that I posted via twitter.com: https://twitter.com/352Eric/status/705398896458072064


#6

@grales Yes. Twitter native clients downscale video. We are going to make that functionality available to everyone.


#7

#8

This topic was automatically closed after 7 days. New replies are no longer allowed.