dilame / instagram-private-api

NodeJS Instagram private API SDK. Written in TypeScript.
MIT License
5.99k stars 1.14k forks source link

Auto transform videos/photos before upload using ffmpeg #1302

Open JaLe29 opened 4 years ago

JaLe29 commented 4 years ago

First of all I saw this thread: https://github.com/dilame/instagram-private-api/issues/1112

I am having a lot of errors of the wrong format/ration during the upload.

Is there any generic recommendation how to transform/check all files before upload using ffmpeg ?

I found:

ffmpeg -i input -vf "pad=w=max(ih*4/5\,iw):h=ih:x=(iw-ow)/2:y=(ih-oh/2):color=black,pad=w=iw:h=max(iw*9/16\,ih):x=(iw-ow)/2:y=(ih-oh/2):color=black" output

It is sufficient?

Any recommendations ?

seanconrad1 commented 3 years ago

@JaLe29 wondering if you ended up finding a solution to your problem