Log in

View Full Version : the latest ffmpeg can not encode h264 video for ipod/iphone/appletv


amadis-soft
16th September 2008, 02:40
Hello All:
I have got the latest ffmpeg source from svn and complied it in mingw+msys.
I also update the faac and x264.
The facc version is 1.26, x264 version is x264-snapshot-20080912-2245
The ffmpeg command which i use is below:
ffmpeg -i "D:\media\s.mpeg" -acodec libfaac -ab 128k -s 640x480 -vcodec libx264 -b 1500000 -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 1500000 -maxrate 1.5M -bufsize 1.5M -rc_eq 'blurCplx^^(1-qComp)' -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -level 30 -aspect 16:9 -y "c:\temp\a1.mp4"
the video conversion is ok!
But I can not import it to itunes.
and while i use qicktime player to play it .
It report a error :Error-2041: an invalid sample description was found in the movie(a1.mp4)
Would you please tell me what's wrong with it?
Thank u all !
the ffmpeg output log is below:
FFmpeg version UNKNOWN, Copyright (c) 2000-2008 Fabrice Bellard, et al.

configuration: --enable-gpl --disable-shared --enable-static --enable-libmp3lame --enable-libamr-nb --enable-libamr-wb --enable-libvorbis --enable-libxvid --enable-liba52 --enable-libfaad --enable-libfaac --enable-libx264 --enable-avisynth --enable-libtheora --disable-ffserver --disable-ffplay --enable-memalign-hack --disable-debug --enable-network --enable-small --extra-cflags=-I/usr/local/include --extra-ldflags=-L/usr/local/lib --disable-ipv6 --extra-ldflags=-static --enable-nonfree --enable-w32threads

libavutil 49.10. 0 / 49.10. 0

libavcodec 51.71. 0 / 51.71. 0

libavformat 52.22. 1 / 52.22. 1

libavdevice 52. 1. 0 / 52. 1. 0

built on Sep 14 2008 19:17:34, gcc: 4.3.0 20080305 (alpha-testing) mingw-20080502

Input #0, mpeg, from 'D:\media\s.mpeg':

Duration: 00:03:18.64, start: 0.770956, bitrate: 281 kb/s

Stream #0.0[0x1e0]: Video: mpeg1video, yuv420p, 176x136 [PAR 1:1 DAR 22:17], 104857 kb/s, 25.00 tb(r)

Stream #0.1[0x1c0]: Audio: mp2, 44100 Hz, stereo, s16, 64 kb/s

Output #0, mp4, to 'c:\temp\a1.mp4':

Stream #0.0: Video: libx264, yuv420p, 640x480 [PAR 4:3 DAR 16:9], q=10-51, 1500 kb/s, 25.00 tb(c)

Stream #0.1: Audio: libfaac, 44100 Hz, stereo, s16, 128 kb/s

Stream mapping:

Stream #0.0 -> #0.0

Stream #0.1 -> #0.1

[libx264 @ 02C5FE30]using SAR=4/3

[libx264 @ 02C5FE30]using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64

Press [q] to stop encoding

........


video:35412kB audio:2515kB global headers:0kB muxing overhead 0.293528%

[libx264 @ 02C5FE30]slice I:52 Avg QP:15.34 size: 26033

[libx264 @ 02C5FE30]slice P:4915 Avg QP:17.19 size: 7102

[libx264 @ 02C5FE30]mb I I16..4: 32.6% 0.0% 67.4%

[libx264 @ 02C5FE30]mb P I16..4: 13.5% 0.0% 0.0% P16..4: 45.5% 0.0% 0.0% 0.0% 0.0% skip:41.0%

[libx264 @ 02C5FE30]final ratefactor: 17.31

[libx264 @ 02C5FE30]SSIM Mean Y:0.9885397

[libx264 @ 02C5FE30]kb/s:1460.0

Kurtnoise
16th September 2008, 07:27
Use mov container instead...

Moreover, there are several FFmpeg presets dedicated to iPod/iPhone available now.