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

Why is a .mov file not displayed in IE, Chrome or FF?


I tried to use jwPlayer for the display of a movie in a "IMG_0205.MOV" file in a slide show, see
http://www.andrewolff.nl/testjalbum/slides/IMG_0205.html

This page works fine with Safari, but not with IE, Chrome, FF or on the iPad.

If I use the same page to play a "2011-09-02 15 53 24.mp4" file, it works fine in Safari, Chrome, FF, IE and on the iPad.

I use version 5.10 with the next code:

bc.. <div id='player' >This div will be replaced by the JW Player.</div>

<script type='text/javascript' src='../../jwplayer/jwplayer.js'></script>

<script type='text/javascript'>
pause = true;
jwplayer('player').setup({
'flashplayer': '../../jwplayer/jwplayer/player.swf',
'autostart': 'true',
'controlbar': 'bottom',
'width': '100%',
'height': '95%',
//'file': '2011-09-02 15 53 24.mp4', // OK on Safari, IE and Chrome, not in FF
'file': 'IMG_0205.MOV', // OK on Safari, not on IE and Chrome
events: {
onComplete: function(event) { next(); }
},
'modes': [
{type: 'html5'},
{type: 'flash', src: '../../jwplayer/jwplayer/player.swf'},
{type: 'download'}
]
});
</script>



What do I wrong?

13 Community Answers

Ethan Feldman

JW Player Support Agent  
0 rated :

Your MOV file needs to be encoded in H.264.

JW Player

User  
0 rated :

I tried MOV files made with an Canon Camera and a MOV file made with an iPad. Are these files not encoded in H.264?
How can I check that?
Should they be converted? How?

And why is it possible to play these files with Safari and on an iPad with my html page and not with IE FF and Chrome?

JW Player

User  
0 rated :

Encode your video using this: http://handbrake.fr/

Tick the 'web optimised' box for quick start. You'll find lots of other info re encoding with this software by typing 'handbrake' into the search box

Ethan Feldman

JW Player Support Agent  
0 rated :

Yes, HandBrake is the best encoder to use.

JW Player

User  
0 rated :

I do not need the Handbrake encoder, because according the specs of my camera, it is coded in H.264, so the used movie is OK. If it was required to use the encoder first it was useless, because the code should be used in the Improved slide show skin for jAlbum, see http://jalbum.net/nl/skins/skin/Improved%20Slide%20Show%203/

I downloaded the newest version 5.10 of jwPlayer, but still see the reported problem, so it must be a bug in jwPlayer.

JW Player

User  
0 rated :

I think it has something to do with the player.swf file, because if I remove the modes parameters or just the line {type: 'html5'}, Safari shows the same wrong behaviour as the other browsers.

By the way how can I correct a previous message in this forum or remove a message?

JW Player

User  
0 rated :

I solved the problem with the next code:
bc.. <script type='text/javascript' src='../../jwplayer/jwplayer.js'></script>

<video height="95%" width="100%" id="player">
<source src="IMG_0205.MOV">
</video>

<script type='text/javascript'>
pause = true;
jwplayer("player").setup({
'autostart': 'true',
'controlbar': 'bottom',
events: {
onComplete: function(event) { next(); }
},
'modes': [
{type: 'html5'},
{type: 'flash', src: '/jwplayer/player.swf'}
]
});
</script>



The relative path '../../jwplayer/jwplayer/player.swf' was causing the problem. This is not a problem for the jwplayer.js file.

The disadvantage is that it works only on the server for all browsers correctly; only Safari works also in local mode.

JW Player

User  
0 rated :

@Bill, Ethan

*Handbrake is not the only product available that will encode video into H.264; the chief advantage that it has over commercial products is that it is a freeware.*

The "IMG_0205.MOV does play in FF, Chrome and IE that is to say
http://www.andrewolff.nl/testjalbum/slides/IMG_0205.MOV on my system as I have QT installed.

*Since the mov format has a quick time 'wrapper' I wonder IF "Quicktime" is installed on the system. You fail to mention IF QT is installed on your system or not; IF not then it will not play and therefore the argument that to re-encode using handbrake is invalid.
*

Here is an analysis of the "IMG_0205.MOV" which should be named as *.mov to be more correct.

bc.. Format : MPEG-4
Format profile : QuickTime
Codec ID : qt
File size : 421 KiB
Duration : 4s 160ms
Overall bit rate : 830 Kbps
Recorded date : 2011-09-11T08:40:19+0200
Encoded date : UTC 2011-09-11 06:44:02
Tagged date : UTC 2011-09-11 06:44:03
Writing application : 4.3.5
Writing library : Apple QuickTime
Make : Apple
xyz : +52.3723+006.6731/
Model : iPad 2
com.apple.quicktime.make : Apple
com.apple.quicktime.creationdate : 2011-09-11T08:40:19+0200
com.apple.quicktime.location.ISO6709 : +52.3723+006.6731/
com.apple.quicktime.software : 4.3.5
com.apple.quicktime.model : iPad 2

Video
ID : 2
Format : AVC
Format/Info : Advanced Video Codec
Format profile : Main@L3.0
Format settings, CABAC : No
Format settings, ReFrames : 1 frame
Format settings, GOP : M=1, N=30
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 4s 160ms
Source duration : 4s 200ms
Bit rate : 753 Kbps
Width : 568 pixels
Height : 320 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 30.000 fps
Standard : Component
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.138
Stream size : 383 KiB (91%)
Source stream size : 385 KiB (91%)
Title : Core Media Video
Encoded date : UTC 2011-09-11 06:44:02
Tagged date : UTC 2011-09-11 06:44:03
Color primaries : BT.709-5, BT.1361, IEC 61966-2-4, SMPTE RP177
Transfer characteristics : BT.709-5, BT.1361
Matrix coefficients : BT.709-5, BT.1361, IEC 61966-2-4 709, SMPTE RP177

Audio
ID : 1
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : 40
Duration : 4s 160ms
Source duration : 4s 180ms
Bit rate mode : Constant
Bit rate : 64.0 Kbps
Channel(s) : 1 channel
Channel positions : Front: C
Sampling rate : 44.1 KHz
Compression mode : Lossy
Stream size : 32.4 KiB (8%)
Source stream size : 32.6 KiB (8%)
Title : Core Media Audio
Encoded date : UTC 2011-09-11 06:44:02
Tagged date : UTC 2011-09-11 06:44:03




Info as in above is useful when troubleshooting. The utility used is "Mediainfo" obtained at

http://mediainfo.sourceforge.net/en/Download

JW Player

User  
0 rated :

What's your problem Willie? Having a bad day or something? I'm perfectly well aware of the fact that Handbrake isn't he only encoding program. I use Sony Vegas, in fact, but Handbrake is a good 'industry standard'. And yes, it's free. The suggestion to try re-encoding was simply to eliminate one possible problem.

JW Player

User  
0 rated :

Thanks for your info Willie Meier.

I corected in the meantime the code, so it runs always and Yes I have QuickTime installed on my PC.

JW Player

User  
0 rated :

I am curious in what you did to get it running

JW Player

User  
0 rated :

Willie, the correct working code is shown above and in the first block of thread http://www.longtailvideo.com/support/forums/jw-player/setup-issues-and-embedding/27427/how-can-i-use-playerswf-in-a-relative-path

Ethan Feldman

JW Player Support Agent  
0 rated :

@Andre – Glad you got it working.

@Willie – He posted the solution in this very thread. Nothing to do with encoding.

This question has received the maximum number of answers.