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

jwplayer and apple .mov upload


I managed to upload a .mov file from an iphone to a website that uses jwplayer, it can play the iphone .mov file on the ipad and iphone from that website hosting the jwplayer but it shows black screen on the PC.

How can I fix that on the PC?


Also, if I use the iphone camera recording to upload the file, I still have the same issue.


7 Community Answers

MisterNeutron

Best Answer 

That shouldn't be happening. Do you see that happening on any of the JW Player demo pages?

Please give us a link to one of your original, uncoverted MOV files.

View in conversation

MisterNeutron

User  
0 rated :

Some MOV files are encoded as H.264, and can be played on a PC, but not the MOV files produced by an iPhone. Those require QuickTime on a PC, and JW Player does not invoke that plugin.

JW Player passes the video either to the browser's <video> tag, or to a Flash plugin. Try playing one of those videos on a page that uses just a <video> tag, without any player script at all - if that doesn't work, the file isn't encoded the way it needs to be, and JW Player won't be able to display it.

To fix it on a PC, you need to convert the MOV file to MP4, with H.264 encoding and with its moov atom at the beginning of the file.

shadi

User  
0 rated :

I tried it with ffmpeg and all I get is blank page...below is black screen

ffmpeg -i input.mov -c copy -f mp4 -movflags faststart out.mp4

MisterNeutron

User  
0 rated :

Sigh. You're not actually telling ffmpeg to convert the video to H.264. The "-c copy" flag, in fact, specifically tells it NOT to re-encode the video. The "-f mp4" flag tells it to use the file packaging for an MP4, but again, doesn't tell it to use H.264 to encode the package contents.

This is not the place for a seminar on ffmpeg. But try this set of basic flags:

ffmpeg -i input.mov -acodec libfaac -vcodec libx264 -metadata:s:v:0 rotate=0 -movflags faststart out.mp4

As an experiment, run your video through Handbrake with default options, plus check "Web optimized." Not a server-side application, but it will quickly tell you whether you have an encoding problem or not. http://handbrake.fr/

shadi

User  
0 rated :

ffmeg did not recognize the libfaac encoding so I used the libvo_aacenc

MisterNeutron

User  
0 rated :

You can install ffmpeg with a variety of codes - libvo_aacenc will do just fine.

Those simple flags won't deal with videos whose sound tracks have the wrong sampling frequencies, and they won't cut the size of the uploaded videos, so you're going to end up with some that are much too large for web use. But those subjects are beyond the scope of this forum. Find an ffmpeg forum for help with that.

shadi

User  
0 rated :

After I convert the .mov files to mp4 files using your command, HTML5 jwplayer plays them small inside the jwplayer window while jwplayer using flash plays them in the full jwplayewr window.

How can I make the html5 plays them on the full jwplayer window?

MisterNeutron

Best Answer  User  
0 rated :

That shouldn't be happening. Do you see that happening on any of the JW Player demo pages?

Please give us a link to one of your original, uncoverted MOV files.

This question has received the maximum number of answers.