Invalid Media

media-upload
video

#1

I’m using this library from Twitterdev in order to upload mp4 file on twitter : https://github.com/twitterdev/large-video-upload-python

This videos are uploaded to Facebook without any problem so I assume their are well formatted.

But I always got the same response from twitter api :
{u’state’: u’failed’, u’error’: {u’message’: u’VideoTool threw an exception’, u’code’: 1, u’name’: u’InvalidMedia’}, u’progress_percent’: 100}

Is there some foramtting rule specific that I’ve never heard about ?


#2

Are you able to share a link to an example video file that is failing to be uploaded?

The format specifications are described here.


#3

Finally works… I just forget to use ‘-pix_fmt yuv420p’ with ffmpeg during the convertion