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

mikkel meinike mimeini at gmail.com
Wed Sep 28 18:39:02 CEST 2011


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


More information about the ffmpeg-user mailing list