/    Sign up×
Community /Pin to ProfileBookmark

no video with supported file type and mime found

right now i use this code:

[code=html]<video width=”320″ height=”240″ controls>
<source src=”games/racegame/filmpje/racegamefilmpje.mp4″ type=”video/mp4″>
Your browser does not support the video tag.
</video>
[/code]

and it works if i test it offline but whenever i upload my website to my host i get this error in firefox: no video with supported file type and mime found

and in chrome the video just wont load

any ideas why

to post a comment
HTML

10 Comments(s)

Copy linkTweet thisAlerts:
@Sup3rkirbyJan 19.2015 — My first guess is going to be the '[B][I]src[/I][/B]' attribute for your video. When you upload everything, is the video copied to the server using the exact same relative folder structure? Because it sounds like the browser can't find the video, being that it's probably not in the exact same place.
Copy linkTweet thisAlerts:
@OriBonJan 19.2015 — What version of Firefox are you using?

And which OS?

I know that the "no video with supported file type and mime found" was a bug in Firefox, as a result of using the HTML5 video tag with a format the Firefox doesn't recognize.

But as far as I know, that bug was resolved in the newer versions of Firefox.

https://developer.mozilla.org/en-US/docs/Web/HTML/Supported_media_formats
Copy linkTweet thisAlerts:
@thebest07111authorJan 20.2015 — hello

i use windows 8.1 and the newest version of firefox

the path to the video is the same

The weird thing is

it doesnt work on my pc and also not working on my friends pc with chrome and firefox

but when i go the my site with my own laptop in chrime

it works fine
Copy linkTweet thisAlerts:
@Sup3rkirbyJan 20.2015 — I'm not really asking if the path is the same but rather, I'm asking if the video is in the same folder [B][I]relative to your webpage[/I][/B]. Because everything you describe definitely fits the idea that the video file's relative location is different on your server than it would be on with your local files.

A simple test would be to go directly to the .mp4 video itself (in your browser's address bar). You haven't really shared any links so I can't tell you exactly what to type. But basically, you are going to want to go to your page (the version uploaded to your server). Then remove the name of the current page/file (if there is one) and add "[I]games/racegame/filmpje/racegamefilmpje.mp4[/I]" to the end of the URL.

For example, if your page is being uploaded to [B][I]http://www.some-random-site.com/video.html[/I][/B]

You will want to remove '[I]video.html[/I]' and add "[I]games/racegame/filmpje/racegamefilmpje.mp4[/I]" giving you:

[B][I]http://www.some-random-site.com/games/racegame/filmpje/racegamefilmpje.mp4[/I][/B]

If the video plays directly in your browser (which should happen in all modern browsers) or at the very least, downloads a file, then you've got a more complicated problem. However, if the video does not play (or download), then you have incorrectly linked to the video on your server.
Copy linkTweet thisAlerts:
@thebest07111authorJan 20.2015 — hi

i will try that

if you want to test it yourself here is the link

http://u402695.gluweb.nl/game1.html

but i think it is still weird that it works on my laptop in the browser and not on my pc in the same browser
Copy linkTweet thisAlerts:
@thebest07111authorJan 20.2015 — hi

when i try the link of the video on my laptop

it doesnt work

but when i am just in the webpage it works fine
Copy linkTweet thisAlerts:
@Sup3rkirbyJan 20.2015 — Well after looking at the page I can definitely say the .ogg version of the video (also listed as a source) does not exist (at least, not on your server). The .mp4 version is rather peculiar though. It almost seems like the file exist, but is either invalid or the server is doing something weird with access to the file. The request to load the file will either time-out or never completes.

Using the 'Network' tab in any browser's developer tools (F12) shows that the page tries to get the video file but can't. In fact, it can't even get a filesize or any file information on the file. So I get the feeling that either the file is corrupt or improperly encoded. But more than likely, corrupt since the filesize can't even be retrieved.

Have you tried re-uploading the video?
Copy linkTweet thisAlerts:
@thebest07111authorJan 20.2015 — hi

i have looked into my webserver

and when i press on game1.html in my webserver it opens the page

and then the video loads

but for some reason not when i go to the page with just the url
Copy linkTweet thisAlerts:
@Sup3rkirbyJan 20.2015 — 
i have looked into my webserver

and when i press on game1.html in my webserver it opens the page

and then the video loads[/QUOTE]


I feel like there are a lot of details you are leaving out. Where is your webserver? Is this something you hosting yourself? That's almost what it sounds like. And that you are saying when you open the game1.html file on your computer (the same computer that is running the server), everything works fine. But when you try to load the page using the actual domain, it doesn't work.

I also notice you keep adding sources to your <video> tag. An .ogv version and now a .webm version. But you don't seem to be uploading any files for these (they definitely don't exist). In order to use multiple sources you'll have to convert your video to those formats and then upload them in the same folder on your webserver.
Copy linkTweet thisAlerts:
@thebest07111authorJan 20.2015 — no it was hosted from my school

i bought a host from one.com

now it works fine
×

Success!

Help @thebest07111 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...