Hey all.
I have a weird issue there. We have a platform which generates video for media companies. All of our users are big media companies with 1M+ followers on their account.

Some videos generated by our platform can’t be uploaded through the standard Tweet composer : https://twitter.com/compose/tweet. Inspecting the web page I see an error during the STATUS request {"media_id":1574500883131514881,"media_id_string":"1574500883131514881","media_key":"7_1574500883131514881","size":25698005,"processing_info":{"state":"failed","progress_percent":100,"error":{"code":1,"name":"InvalidMedia","message":"VideoTool threw an exception"}}}

The weirdest starts now, if I take the same video. But I try to upload it threw Twitter Media Studio, everything works correctly. No videotool exception.
{"media_id":1574503259213103104,"media_id_string":"1574503259213103104","media_key":"13_1574503259213103104","size":25698005,"expires_after_secs":1295995,"video":{"video_type":"video\/mp4"},"processing_info":{"state":"succeeded","progress_percent":100}}

Last, if I reencode this video without changing anything, I can upload it without any issue in the standard composer or in Media.

My clients wants me to make the videos uploadable without having to reencode them.

Could someone at Twitter check this video for example and let me know what’s wrong with it please ?

Does it match the recommended spec here? Media Best Practices | Docs | Twitter Developer Platform

Yes it does. I use Twitter Pro Media API as my client has a “media account”. and the same video works correctly when it is uploaded through the Twitter Media Studio interface.

1 Like