FFMPEG: Video converted from FLV to MP4 does not play on iPod but works on iPhone

I used the command below to convert videos from FLV, M4V to MP4.

ffmpeg -y -i video_1336406262.flv -vcodec libx264 -vpre slow -vpre ipod640 -b 250k -bt 50k -acodec libfaac -ac 2 -ar 48000 -ab 64k -s 480x320 video_1336406262.mp4

Videos converted from M4V to MP4 play very well on both iPhone and iPod, but videos converted from FLV to MP4 do not work on iPod, but work on iPhone.

In the video area on the HTML5 page, iPod does not even show a play character.

Has anyone here helped?

I use the same command to convert from FLV and M4V to MP4.

thank

+3
source share
2 answers

HandBrakeCLI MP4.

Handbrake , , . https://trac.handbrake.fr/wiki/BuiltInPresets

IPod , handrake :

HandBrakeCLI -i video_1336406262.flv -e x264 -a 1 -E faac -6 dpl2 -R Auto -D 0.0 -f mp4 -I -m -x level=30:bframes=0:weightp=0:cabac=0:ref=1:vbv-maxrate=768:vbv-bufsize=2000:analyse=all:me=umh:no-fast-pskip=1:subme=6:8x8dct=0:trellis=0 -b 250 -B 64 -R 48 -X 480 -w 480 -l 320 -2 -o video_1336406262.mp4

, , , .

+5

m4v → mp4 . m4v mp4.

Mp4 , ///. , . iPhone h264.

-coder 0 , .

, , , , , :

iPod-iPhone 640 width, without presset :
ffmpeg -i INPUT -s 640x480 -r 30000/1001 -b 200k -bt 240k -vcodec libx264 coder 0 -bf 0 -refs 1 -flags2 -wpred-dct8x8 -level 30 -maxrate 10M -bufsize 10M-acodec libfaac -ac 2 -ar 48000 -ab 192k output.mp4

, , :

ffmpeg -y -i input -r 30000/1001 -s 480x272 -aspect 480:272 -vcodec libx264 -b 512k -bt 1024k -maxrate 4M -flags +loop -cmp +chroma -me_range 16 -g 300 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -rc_eq "blurCplx^(1-qComp)" -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -coder 0 -refs 1 -bufsize 4M -level 21 -partitions parti4x4+partp8x8+partb8x8 -subq 5 -f mp4 -pass 1 -an -title "Title" output.mp4

, !

, ffmpeg , Mencoder, ffmpeg ( ). Mencoder MeGUI , !

+3

All Articles