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


Hi!

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):

http://monde.ccdmd.qc.ca/ressource/?id=48321
http://monde.ccdmd.qc.ca/ressource/?id=48322

Examples that work everywhere :

http://monde.ccdmd.qc.ca/ressource/?id=48225
http://monde.ccdmd.qc.ca/ressource/?id=49917

Any suggestion or idea would be really appreciated!

Thanks in advance!

Richard

5 Community Answers

Cooper Reid

JW Player Support Agent  
0 rated :

Hello Richard,

Here is an ffmpeg command that I recommend for MP4s:
http://www.jwplayer.com/blog/transcoding-best-practices/

You can also use ‘Handbrake’ for transcoding

Please make sure you are using these settings in your encoding: http://support.jwplayer.com/customer/portal/articles/1403635-media-format-reference#video/. Also, it is important that your server is using the proper mime-type.

-Cooper

MisterNeutron

User  
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.
-Cooper

dumoulin

User  
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 :

Excellent!
Cooper

This question has received the maximum number of answers.