I have created one Application API, in this Application API When i have upload video from file manager than video is rotated but when i have capture and direct upload than video is perfect work.
i have use this command transpose=1
but capture video is rotated 90 degree when upload and if i have remove this command than file manager video is rotated.
so please give me solutions.
/usr/bin/ffmpeg -i video.mp4 -i watermark.png -filter_complex 'overlay=10:10' -s 640x1280 -b 512k -vcodec mpeg1video -acodec copy -vcodec h264 -acodec aac -strict -2 output_video.mp4
file manager upload video is auto rotated on 270 degree, i have not use any rotated command but capture video is work perfect.