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

Playing MKV in JW Player 5.10 Rev 2393


Hello, I'm trying to play some MKV file using this version of JW Player 5:
http://developer.longtailvideo.com/trac/browser/trunk/fl5?order=date

Using the code like shown in the guide doesn't work, it says:
- Task Queue failed at step 5: Playlist could not be loaded: Playlist file did not contain a valid playlist.
Or this, with a different file:
- Task Queue failed at step 5: Playlist could not be loaded: Error #2032

Do I have to import something inside the MKV file to make it work with JW Player? I used different MKV files but didn't help, all were encoded in H.264 AVC and AAC audio.

I tried doing like it is explained here:
http://www.longtailvideo.com/support/forums/jw-player/video-encoding/31007/play-mkv-files/

Even though the player appears normally, when I try to click play it does nothing, it's like frozen (in both Chrome and FireFox). That happens when using type: "mp4" in the script, strangely it couldn't play anymore even MP4 files so I just removed it and it played MP4 videos like before but, the MKV problem (that playlist error) still persists, even changing/removing the skin didn't help.

This is the code of my page:
bc.. <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>MKV Testing</title>
<script type="text/javascript" src="stream/jwplayer5/jwplayer.js"></script>
<link rel="shortcut icon" href="home_files/favicon.ico" />
</head>

<body background="home_files/background.jpg">

<center>
<div class="div01">
<h1><img src="home_files/header.png" alt="MKV Testing"/></h1>

<div id="Player">JW Player</div>
<script type="text/javascript">
jwplayer("Player").setup({
flashplayer: "stream/jwplayer5/player.swf",
primary: "flash",
file: "stream/videos/opening.mkv",
image: "stream/snapshots/logo.jpg",
skin: "stream/jwplayer5/slim/slim.xml",
width:640,
height:360
});
</script>

</div>
</center>

</body>
</html>


What should I add in the script to make it play MKV files?
I started just recently using html for a school project so I'm not an expert yet, if you could be detailed in your explanation I'd appreciate it a lot, thanks in advance.

7 Community Answers

Ethan Feldman

JW Player Support Agent  
0 rated :

Do you have a link?

JW Player

User  
0 rated :

I tried again online (first it was offline, I just uploaded the page) and using type: "mp4" in the script doesn't freeze anymore but instead gives a new error:
- Loaded file is not a valid media provider.

Here: http://rand.juplo.com/home.html

While here is the version without type: "mp4" in the script (which gives the playlist error):
http://rand.juplo.com/home2.html

Ethan Feldman

JW Player Support Agent  
0 rated :

You are using jw5 here but using jw6 code.

Change:

primary: “flash”, type: “mp4”,

To:

provider: “video”,

and you should be all set.

JW Player

User  
0 rated :

Probably I was reading the wrong guide, for the code, anyway I tried using that but still it won't load the video, says:
- Video not found or access denied
In both offline and online browsing.

Updated here: http://rand.juplo.com/home.html

Ethan Feldman

JW Player Support Agent  
0 rated :

I downloaded the file. How did you encode it? Is it encoded in H.264?

JW Player

User  
0 rated :

Yes, in the same folder http://rand.juplo.com/stream/videos/ there's a mp4 file and that works fine in JW Player, the difference between the 2 files is that the MKV was generated from that MP4 using VLC Media Player, only the container was changed not the codecs. Now I tried again remuxing the MKV (generated by VLC), using MKV Merge but even using a different program it gives the same error.

These are the details for the MKV (rand.juplo.com/stream/videos/opening.mkv)
bc.. General
Unique ID : 171085234349759800264406759628609243964 (0x80B5D14D6CF49A5DBF98E70796594B3C)
Complete name : opening.mkv
Format : Matroska
Format version : Version 2
File size : 7.79 MiB
Duration : 5mn 33s
Overall bit rate : 196 Kbps
Writing application : Lavf54.17.3 ? (VLC Media Player)
Writing library : Lavf54.17.3 ? (VLC Media Player)

Video
ID : 2
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L3.1
Format settings, CABAC : Yes
Format settings, ReFrames : 16 frames
Codec ID : V_MPEG4/ISO/AVC
Width : 640 pixels
Height : 368 pixels
Original height : 360 pixels
Display aspect ratio : 1.739
Original display aspect ratio : 16:9
Frame rate mode : Variable
Original frame rate : 23.976 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Writing library : x264 core 130 r2273 b3065e6
Encoding settings : cabac=1 / ref=16 / deblock=1:0:0 / analyse=0x3:0x133 / me=umh / subme=10 / psy=1 / psy_rd=0.75:0.00 / mixed_ref=1 / me_range=24 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=3 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=10 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=240 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=50 / rc=crf / mbtree=1 / crf=25.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / ip_ratio=1.40 / aq=1:0.60
Default : Yes
Forced : No

Audio
ID : 1
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : A_AAC
Duration : 5mn 33s
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 44.1 KHz
Compression mode : Lossy
Delay relative to video : 10ms
Default : Yes
Forced : No


The audio and video stream were both encoded using MeGUI and the codecs are:
Nero AAC http://www.nero.com/enu/company/about-nero/nero-aac-codec.php
x264 http://x264.nl/

Ethan Feldman

JW Player Support Agent  
0 rated :

I downloaded your file , it came out as “RanD.matroska”.

I did a lot of tests locally, it looks like MKV is not a supported format, I’m afraid. H.264 encoding is required 100% though.

This question has received the maximum number of answers.