PHP - avconv create thumbnail wrong rotation -


in server using avconv library in order generate thumbnails videos. call works fine except image generated got rotated 90 degrees.

here call:

shell_exec("avconv -itsoffset -4  -i $video -vcodec mjpeg -vframes 1 -an -f rawvideo -s 400x244 $thumbnail"); 

how can remove rotation in order exact image orientation?

it possible using transpose video filter. cannot rotate 180 degrees, can rotate 90 degrees , chain filter.

avconv -i video.mp4 -vf transpose=1,transpose=1 out.mkv

see transpose in avconv manpage: http://manpages.ubuntu.com/manpages/quantal/en/man1/avconv.1.html


Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -