Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Some videos work on Android, others do not work on Android


I would like to ask you please for your help or advise :) I have a problem with some video on Android.

Details of the problem :
1) JWPlayer 6.11 is licensed and used
2) I converted about 100 videos using ffmpeg to make sure they play on all phones, tablet, computers etc.
3) Of the 100 videos, they all works fine on the equipments tested including iPhone, iPad, Mac, PC, etc.
4) On Android (I have an old Nexus one to make tests), 70% of the videos works natively. 30% failed to start (unable to read video).
5) I asked a friend with a newer Android photo to test and he got the same results

These are the settings I use for all the videos using ffmpeg :

/usr/local/bin/ffmpeg -i $media -c:v libx264 -s " . $x . "x" . $y . " -acodec libfaac -ac 1 -ar 16000 -ab 32000 -r 29.97 -f mp4 $outTmp 2>&1"

The videos are processed automatically on the web site and they are converted to 360p with the same "recipe".

Examples where they do not work on Android (but work everywhere else):

Examples that work everywhere :

Any suggestion or idea would be really appreciated!

Thanks in advance!


5 Community Answers

Cooper Reid

JW Player Support Agent  
0 rated :

Hello Richard,

Here is an ffmpeg command that I recommend for MP4s:

You can also use ‘Handbrake’ for transcoding

Please make sure you are using these settings in your encoding: Also, it is important that your server is using the proper mime-type.



0 rated :

Shouldn't the ffmpeg flags also include "-movflags faststart"?

Cooper Reid

JW Player Support Agent  
0 rated :

Good tip, Mr Neutron. This will ensure that your video beings playback instantly, rather than waiting til the video is downloaded.


0 rated :

Thanks Cooper and MisterNeutron!

I will try your mp4 recipe.

I normally to the qt-faststart command after the ffmpeg but I will try it!

Cooper Reid

JW Player Support Agent  
0 rated :


This question has received the maximum number of answers.