views:

43

answers:

0

I use the following ffmpeg command to convert a video for smartphones. It works for Droid x and Iphone4, but not windows media player nor the older version of droid. Can anyone shred some light?

Those droids works with Youtube h264 codec. But somehow doesn't play the video of my encoded mp4 (the audio plays just fine).

ffmpeg -y -i inputfile.mp4 -pass 1 -s 320x180 -vcodec libx264 -vpre fastfirstpass -b 64k -bt 64k -threads 0 -f mp4 -an /dev/null && ffmpeg -i inputfile.mp4 -pass 2 -acodec libfaac -ab 32k -ac 2 -vcodec libx264 -vpre hq -s 320x180 -b 64k -bt 64k -threads 0 -f mp4 -y output.mp4