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

play .mkv files


hi,

is there a way to play .mkv files with the jwplayer?

17 Community Answers

Ethan Feldman

JW Player Support Agent  
1 rated :

Yes, they should work if the file is encoded in h.264.

JW Player

User  
1 rated :

Thanks for the answer, but my video have the codec
Codec: H264 - MPEG-4 AVC (part 10) (avc1)
and the player says
Error loading player:
No playable sources found.
here is the link to the sample, http://myanimesource.de/vid/
and the link of the .mkv file http://myanimesource.de/vid/video.mkv if it helps,

regards
chris

Ethan Feldman

JW Player Support Agent  
1 rated :

Set the player’s type variable to mp4

JW Player

User  
0 rated :

thanks, but it only works with the chrome browser not with firefox.

Ethan Feldman

JW Player Support Agent  
0 rated :

Set the primary variable to flash.

JW Player

User  
0 rated :

thanks, but that dont work either :/
without primary: flash works on my google chrome browser, but not with firefox

Ethan Feldman

JW Player Support Agent  
0 rated :

Show me an example?

JW Player

User  
0 rated :

yes, is on the same site http://myanimesource.de/vid/
first with primary, second without and the third is a .mp4

Ethan Feldman

JW Player Support Agent  
0 rated :

Your site has malware on it, AVG popped up an alert on my machine and now has blocked access…

JW Player

User  
-1 rated :

huh.. i dont know why, but here is the source of the site:

<!doctype html>
<html>
<head>
<title>README: JW Player Free</title>
<style>
body { padding: 50px 100px; width: 700px; font: 13px/20px Arial; background: #FFF; }
a, h1, h2 { color: #369; }
h2 { margin-top: 50px; }
pre { font-size: 12px; background:#E5F3C8; padding:5px 10px; border: 1px solid #D3EAA4; }
</style>
</head><body>

<pre>
<script type="text/javascript" src="/jwplayer/jwplayer.js" ></script>
<script type="text/javascript">jwplayer.key="n10rVGRPrhhACDmx9eziEvtsV2xj7ziU8aQtyw==";</script>
</pre>

<pre>
<h1>Playback of a .mkv with primary flash</h1>
<div id="myElement">Loading the player...</div>

<script type="text/javascript">
jwplayer("myElement").setup({
file: "video.mkv",
type: "mp4",
primary: "flash"
});
</script>
</pre>

<pre>
<h1>Playback of a .mkv without primary flash</h1>
<div id="myElement2">Loading the player...</div>

<script type="text/javascript">
jwplayer("myElement2").setup({
file: "video.mkv",
type: "mp4"
});
</script>
</pre>

<pre>
<h1>Playback of a .mp4</h1>
<div id="myElement3">Loading the player...</div>

<script type="text/javascript">
jwplayer("myElement3").setup({
file: "video.mp4",
type: "mp4"
});
</script>
</pre>

</body>
</html>

Ethan Feldman

JW Player Support Agent  
0 rated :

I would check your server side MIME TYPEs.

JW Player

User  
0 rated :

If the error caused by the MIME TYPEs, why did it work on google chrome :/?

Ethan Feldman

JW Player Support Agent  
0 rated :

I don’t know, but I can’t check your link now…

JW Player

User  
0 rated :

i've uploaded it on a new webspace, but it still dosen't work
http://okabe.bplaced.net/

Ethan Feldman

JW Player Support Agent  
0 rated :

Your MKV file returns a404 not found, and has this mime type:

video/x-matroska

Shouldn’t it be video/mkv?

JW Player

User  
0 rated :

I dont think so, because wikipedia says
Filename extension .mkv .mk3d .mka .mks
Internet media type video/x-matroska audio/x-matroska
and the link works fine
http://okabe.bplaced.net/video.mkv
:(

Ethan Feldman

JW Player Support Agent  
0 rated :

Well, there are a coupe things here. How did you encode the file? Also, the file is gzipped, which shouldn’t be done on media files.

This question has received the maximum number of answers.