Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No video with supported format and MIME type found

Tags:

html5-video

I have the next code in my index for a video:

<video width="100%"  controls>
  <source src="video/v1.ogv" type="video/ogg">
  <source src="video/v1.webm" type="video/webm">
  <source src="video/v1.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>

When i try to load it in firefox it will return "No video with supported format and MIME type found."

Firebug will return

"NetworkError: 500 Internal Server Error - https://root/folder/video/v1.ogv"

v1.ogv

HTTP load failed with status 500. Load of media resource https://root/folder/video/v1.ogv failed.


...,c=l.length;c--;)(f=l[c])&&(v[d[c]]=!(y[d[c]]=f));if(i){if(o||e){if(o){for(l=[],...

jquery.min.js (line 2)

"NetworkError: 500 Internal Server Error - https://root/folder/video/v1.webm"

v1.webm

HTTP load failed with status 500. Load of media resource https://root/folder/video/v1.webm failed.

Specified "type" attribute of "video/mp4" is not supported. Load of media resource video/v1.mp4 failed.

All candidate resources failed to load. Media load paused.

Any clue? It's not working in Google Chrome neither.

like image 601
Gonzalo Mass Avatar asked Mar 25 '13 02:03

Gonzalo Mass


People also ask

What does no video with supported format and MIME type found mean?

The 'No video with supported format and MIME type found' error message is about the HTML5 media player. So you do not appear to have support in Windows for playing the media file(s) in the formats that are available. See also: https://support.mozilla.org/kb/viewing-html5-audio-and-video.

What is MIME type error?

If a web server or application reports an incorrect MIME type for content (including a "default type" for unknown content), a web browser has no way of knowing the author's intentions. This may cause unexpected behavior. Some web browsers, such as Internet Explorer, try to guess the correct MIME type.


2 Answers

Are the paths valid?

  • https://root/folder/video/v1.ogv
  • https://root/folder/video/v1.webm

Firefox doesn't support .mp4 files which explains the Specified "type" attribute of "video/mp4" is not supported. error.

If you are using Apache, you can force it to use the correct MIME type. Add the following to your .htaccess file.

# MIME types for Video
AddType video/mp4 mp4 m4v f4v f4p
AddType video/ogg ogv
AddType video/webm webm
AddType video/x-flv flv
like image 173
Danny Thompson Avatar answered Oct 31 '22 00:10

Danny Thompson


@Gonzalo- As @Daniel has pointed out in his answer - make sure that /video folder in source tag is accessible. For example - you are accessing your page at

https://abcdomain/approot/somepage

and assuming that you have this video folder inside approot, then you need to modify the source tag and it would be something like -

<source src="/approot/video/v1.ogv" type="video/ogg">

Hope, this helps.

like image 41
Tirath Avatar answered Oct 30 '22 22:10

Tirath