
I ran into the same problem and realised that the image's orientation tag was not preserved when using ffmpeg.

Is there any way to stop this from happening? Video:554kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown Using dec to pass codec parameters to muxers is deprecated, use decpar instead. And this isn't a random occurrence, all the images that originally rotated still rotate no matter how many times I run the command.Ĭonsole Output ffmpeg version N-79942-gdc34fa6-tessus Copyright (c) 2000-2016 the FFmpeg developersīuilt with Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn)Ĭonfiguration: -cc=/usr/bin/clang -prefix=/opt/ffmpeg -as=yasm -extra-version=tessus -enable-avisynth -enable-fontconfig -enable-gpl -enable-libass -enable-libbluray -enable-libfreetype -enable-libgsm -enable-libmodplug -enable-libmp3lame -enable-libopencore-amrnb -enable-libopencore-amrwb -enable-libopus -enable-libschroedinger -enable-libsnappy -enable-libsoxr -enable-libspeex -enable-libtheora -enable-libvidstab -enable-libvo-amrwbenc -enable-libvorbis -enable-libvpx -enable-libwavpack -enable-libx264 -enable-libx265 -enable-libxavs -enable-libxvid -enable-libzmq -enable-version3 -disable-ffplay -disable-indev=qtkit -disable-indev=x11grab_xcb

Also, some images rotate clockwise, while some rotate counter-clockwise. This doesn't happen with every image, and even not all the portrait images. At first, I thought this was due to the -vf scale flag that I was using to resize the images, but I tried the following command and it still rotated the image.

Here is the original image, but as you see below, it gets rotated.Īs you see above, the image is rotated. I am trying to mass-resize images using FFMPEG, and I successfully did it using bash, but I noticed that some of the portrait images got rotated to landscape.
