Invalid Media



I’m using this library from Twitterdev in order to upload mp4 file on twitter :

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 ?


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

The format specifications are described here.


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