Twitter gives error on ffmpeg generated video "The media you tried to upload was invalid."

api

#1

ffmpeg generated video gives error “Cannot read property ‘code’ of undefined

I am generating video from audio.
my sample code Example is:

ffmpeg -i audio.webm -i image.png -vcodec libx264 -pix_fmt yuv420p -strict -2 -acodec aac video.mp4


#2

Can you provide the steps you’ve followed in the API to upload your video (preferably with a code sample), and a link to an example file that fails?


#3

I am directly trying to upload from twitter website.
my upload code for twitter is working perfect. but issue is in generated video.
So, Even I am trying to upload generated video directly in tweeter then also it gives error