Just a short reminder to self, when i'll be struggling with uploading video to Instagram. For some reason my MIUI v5 port has troubles with recording proper video to be successfully uploaded to Instagram.
First of all: encoding should be mpeg4, not h264!, regardless of file extension (but should probably be mp4).
All the options passed to ffmpeg are order dependant: first options executed first, last will override previous. Thus, input file is defined early, output file is defined at the very end.
All filters can be setup per stream (a
for audio and v
for video) and should be defined as -filter
(for both),