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

MP4 Video won't load from Amazon S3...


I am having a very strange issue with my implementation of the JWPlayer on a dynamic ASP.NET site...

The jwplayer loads fine, and displays thumbnails from an Amazon S3 bucket, and on iOS devices (Safari), the videos load and play, but on Chrome, or Firefox, they don't. Only difference I can tell is the mode the player is in.... iOS devices are rendering the player in HTML5, and the regular desktop browsers are rendering Flash.

I have set up the crossdomain.xml file in the root of my Amazon S3 bucket, but that doesn't seem to help.

I can download the direct link from S3, and debugging using Firebug, I can see that the video file is downloading correctly, but the spinner just keeps spinning...

Anyone know why on earth this would be happening??

Additional info:

*MP4 Video Metadata (from FFMPEG):*
major_brand : isom
minor_version : 512
compatible_brands: isomiso2mp41
creation_time : 1970-01-01 00:00:00
encoder : Lavf52.64.2
start: 0.000000, bitrate: 617 kb/s
Stream #0:0(und): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D), yuv420p, 640x480 [SAR 1:1 DAR 4:3], 615 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 30k tbc

*Test URL: *
http://video.funovation.com/watch.aspx?v=eb60084c-1201-44f6-9219-91e1b1ee5e72

Thank you so much for your help!

9 Community Answers

Ethan Feldman

JW Player Support Agent  
0 rated :

Try to run this tool on your mp4 file – http://renaun.com/blog/2010/06/qtindexswapper-2/

JW Player

User  
0 rated :

I ran the video on that test page through the tool, and then re-uploaded it to Amazon, so the test page is now pointing at the index-swapped MP4 file, but the behavior is still the same...

Any other ideas? :)

Ethan Feldman

JW Player Support Agent  
0 rated :

Hmm, maybe it is encoding based.

What happens if you use this file to test? – http://www.longtailvideo.com/jw/upload/bunny.mp4

JW Player

User  
0 rated :

It works fine with that file... It must be the Lavf52.64.2 encoder that was used...

I'll try another one if available, and see if that helps...

Just curious, there is no audio stream in the MP4 file, would that cause any issues?

Thanks,

Matt

Ethan Feldman

JW Player Support Agent  
0 rated :

Ok, what happens if you put the file on your server though (or the place you are serving the mp4 file from).

It shouldn’t , it just won’t play any audio in that case =)

JW Player

User  
0 rated :

I did place the bunny.mp4 on the amazon server, and it works fine... there must be an issue with the codec we're using to encode the video...

Ethan Feldman

JW Player Support Agent  
0 rated :

Yeah, it has to be encoding based then, not server based.

I would recommend using this program to encode then – http://handbrake.fr/

JW Player

User  
0 rated :

Is that what y'all used to encode the bunny.mp4? Could you post the settings you used, or the command line options as an example?

Thank you again so much!

Ethan Feldman

JW Player Support Agent  
0 rated :

Yep!

Sure:

When encoding, please make sure you are using H.264 Baseline Profile Level 3.0 or lower with no more than three reference frames, AAC Low Complexity Profile, and an MP4 container if you want to support older iProducts. The “Normal” profile in Handbrake doesn’t use Baseline Profile H.264 so the older devices can’t decode it. Use the iPod or iPhone presets in Handbrake and they will work fine in Flash as well! Make sure to also check off Web Optimized, and iPod 5G Support! Also, please note, older iOS devices (3Gs for example), have a resolution limit of 640×480!

This question has received the maximum number of answers.