Azimout's Linux weblog

transcoding videos for the iphone

leave a comment »

The iPhone can play videos if they’re in an .mp4 container, where the video stream is encoded in H264 (a.k.a. MPEG-4 AVC), 480×320. Audio can be either AAC, MP4A or MP3.

ffmpeg -i "$1" -vcodec libx264 -s 480x320 -b 1000k -maxrate 1250k -bufsize 4M -bt 256k -g 250 -qmin 10 -qmax 51 -qcomp 0.6 -i_qfactor 0.71 -acodec libmp3lame -ab 80k -ar 48000 -ac 2 "$2"

The above settings are necessary in order to avoid the error message “broken ffmpeg default settings detected”.



Written by azimout

02/11/2010 at 18:27

Posted in Howto

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: