Getting 500 error when uploading video to twitter from android app

android

#1

I am trying to compress a video using FFMPEG Android library using the following command.
{"-y" ,"-i", file.getAbsolutePath(),
"-c:v", “libx264”, “-crf”, “20”,
"-aspect", “1:1”,
"-pix_fmt", “yuv420p”,
"-c:a", “aac”, “-strict”,“experimental”,
"-b:a", “96k”, “-ac”, “2”, “-ar”, “44100”,
"-preset", “ultrafast”,
"/storage/emulated/0/output.mp4"}

When i try to share the video on Twitter from my android app, i get 500 Internal Server Error. I am able to share same video on Facebook & on my app.
I have been read a lot of forums and FFMPEG manuals but no luck. Also 500 error does not clearly indicate the cause.

It is a very urgent issue. I will really appreciate if anyone can provide inputs on this.

Thanks in advance!


#2

Maybe this will help? Uploading video chunked error on FINALIZE command


#3

Hi, the video_mime_type that i am trying to upload is video/mp4 so i don’t think that should be an issue.