ffmpeg settings for video encoding for iphone?

196 views
Skip to first unread message

CyberTron

unread,
Oct 5, 2007, 3:17:59 PM10/5/07
to iPhoneWebDev
Wonder if anyone can share what's the 3gp and m4v settings you use for
ffmpeg for encoding the videos to iphone that's suitable to play from
safari?

mickey9801

unread,
Oct 14, 2007, 12:54:42 AM10/14/07
to iPhoneWebDev
I was using this cmd to encode movie for download mp4 through safari
in iPod touch:

ffmpeg -i INPUT -acodec libfaac -ac 2 -ar 44100 -ab 128k -s 320x240 -
vcodec libx264 -b 300k -flags +loop -cmp +chroma -partitions
+parti4x4+partp8x8+partb8x8 -me umh -subq 5 -trellis 1 -refs 1 -coder
0 -me_range 16 -g 300 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -
bt 300k -maxrate 300k -bufsize 300k -rc_eq 'blurCplx^(1-qComp)' -qcomp
0.6 -qmin 15 -qmax 51 -qdiff 4 -level 30 -aspect 320:240
OUTPUT.mp4;AtomicParsley OUTPUT.mp4 --DeepScan --iPod-uuid 1200 --
overWrite --title "THE MOVIE TITLE";

You have to install AtomicParsley to fix the UUIDatom bug in ffmpeg.
It is OK if you download the mp4 file directly through safari, but it
doesn't work when I trying to use a PHP proxy script to read and
stream the same file to safari, stream.php?file=OUTPUT... I don't know
what should I put into the header if I want to stream the mp4 movie to
iPod touch like vTap is doing.

Reply all
Reply to author
Forward
0 new messages