[FFmpeg-trac] #515(avformat:new): Problem in video rotation in FFMPEG for IPhone video

FFmpeg trac at avcodec.org
Wed Sep 28 11:38:13 CEST 2011


#515: Problem in video rotation in FFMPEG for IPhone video
--------------------------------+------------------------------------
             Reporter:  Gagan   |                    Owner:
                 Type:  defect  |                   Status:  new
             Priority:  normal  |                Component:  avformat
              Version:  0.8.4   |               Resolution:
             Keywords:          |               Blocked By:
             Blocking:          |  Reproduced by developer:  0
Analyzed by developer:  0       |
--------------------------------+------------------------------------

Comment (by Gagan):

 I am not working from command line tool. I integrated ffmpeg libraries in
 my IPhone project and doing compression through code. Can you tell me how
 can we rotate video through code ? I apply the fixes or patches given by
 few users in "mov_read_tkhd" method in mov.c file (see below). But i guess
 they are to just extract orientation information in auxMatrix, but i want
 to rotate file by 90 degree.

 for (i = 0; i < 3; i++) {
         st->auxMatrix[i][0] = display_matrix[i][0] = avio_rb32(pb);   //
 16.16 fixed point
         st->auxMatrix[i][1] = display_matrix[i][1] = avio_rb32(pb);   //
 16.16 fixed point
         avio_rb32(pb);           // 2.30 fixed point (not used)
     }

-- 
Ticket URL: <https://avcodec.org/trac/ffmpeg/ticket/515#comment:2>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list