Click here to Skip to main content
15,881,625 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I exported edited videos from imovie to put on a website, and for some reason none will play- they continuously freeze or don't start at all.
The video itself is 20,681 KB, and is probably the smallest video file I plan to use. The code is pretty simple, if there is an alternative that works better please let me know!

<p align="center">
<video controls="" height="360" width="640"><source src="video_name.mp4" type="video/mp4" /></video>
</p>
Posted
Comments
Sergey Alexandrovich Kryukov 13-Apr-15 14:15pm    
Is your video file correct, did you tested it locally with some player?
If it works, keep in mind: not all browsers not on all systems support all video containers and all streams, not all codecs.
—SA

1 solution

Please see my comment to the question, this is what you want to consider. Also please review the issues of video compatibility with HTML video element in this article: http://en.wikipedia.org/wiki/HTML5_video#Supported_video_formats.

Also note that the file name pattern like *.mp4 tells next to nothing. Under this name, there can be many different container and different video, audio and other streams. Not everything supports everything.

See also:
http://en.wikipedia.org/wiki/Digital_container_format,
http://en.wikipedia.org/wiki/Open_source_codecs_and_containers,
http://en.wikipedia.org/wiki/MPEG-4.

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900