[FFmpeg-user] Rotate video with ffmpeg library in iPhone application

Gagandeep gagandeep.bawa at ironroad.com
Thu Sep 29 05:15:37 CEST 2011


Thanks for reply

I need this rotation thing to be done from ffmpeg library code inside iphone app itself not from command line tool. Otherwise I can use ffmpeg transpose command on server which rotate video 90. Is this transpose command will leave audio from file after rotation?

Sent from my iPhone4

On 28-Sep-2011, at 10:09 PM, mikkel meinike <mimeini at gmail.com> wrote:

> OK first a little about stripping and adding audio
> 
> 
> First, strip the video into a silent file:
> 
> ffmpeg -i in.avi -an -vcodec copy out.avi.
> 
> This will copy just the video stream with no audio.
> 
> Then, add your audio track:
> 
> ffmpeg -i out.avi -vcodec copy -i audio.file new_out.avi -newaudio
> 
> --------------------------------
> 
> The mplayer command for rotating video and saving it to a file.
> 
> mplayer -vo xv -vf rotate=2 yuv4mpeg:file=ret0tmp.y4m Video0011.3gp
> 
> That file than have to be convert to something usable. For that you'll
> need mjpegtool.
> 
> I talk a littel about it in this blogpost.
> 
> http://nerdcore-enthusiasm.blogspot.com/2010/12/add-subtitles-to-video-clip-with-pure.html
> 
> 
> Mikkel
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user


More information about the ffmpeg-user mailing list