Forum

Full Version: Cant play mkv files
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi there, got almost everything working but MKV (h264) is a no go
i have even bought the mpeg2 license, when i start the file
nothing happens. I have Raspberry Pi 2, using lastest Xbian
from webpage,

Config file looks like this, i did see a thread about changing gpu_mem but that
was an old thread for older version of raspberry.

initramfs initramfs.gz 0x1000000
gpu_mem_1024=256
gpu_mem_512=144
gpu_mem_256=100
initial_turbo=3
hdmi_ignore_cec_init=1
disable_overscan=1
disable_splash=1
decode_MPG2=xxxxxxxxxxxxxxxx

Anyone got a clue ? Ohh i using NFS share to run the files, xvid files works fine so i know all
that is working.
log file? media info of the file? etc
should have no probs with mkv containers wit H.264 at all
here is some info

from logfile
19:59:16 T:1960591360 NOTICE: DVDPlayer: Opening: nfs://192.168.1.1/Better.Call.Saul/Better.Call.Saul.S01E05.720p.mkv
19:59:16 T:1960591360 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
19:59:16 T:1825567760 NOTICE: Thread DVDPlayer start, auto delete: false
19:59:16 T:1825567760 NOTICE: Creating InputStream
19:59:16 T:1825567760 ERROR: CDVDPlayer::OpenInputStream - error opening [nfs://192.168.1.1/Television/Better.Call.Saul/Better.Call.Saul.S01E05.720p.mkv]

mediainfo:
Format : Matroska
Format version : Version 4 / Version 2
File size : 700 MiB
Duration : 44mn 12s
Overall bit rate : 2 214 Kbps
Encoded date : UTC 2015-03-03 03:46:22
Writing application : mkvmerge v6.7.0 ('Back to the Ground') 64bit built on Jan 8 2014 14:31:51
Writing library : libebml v1.3.0 + libmatroska v1.4.1

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
Format settings, CABAC : Yes
Format settings, ReFrames : 8 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 44mn 12s
Bit rate : 1 786 Kbps
Width : 1 280 pixels
Height : 720 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 23.976 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.081
Stream size : 565 MiB (81%)
Writing library : x264 core 144 r2525 40bb568



(5th Mar, 2015 05:36 AM)rikardo1979 Wrote: [ -> ]log file? media info of the file? etc
should have no probs with mkv containers wit H.264 at all
It looks to be a nfs issue not kodi, to test copy the file locally and try it.
i think the same, I am just about to test the file, but I doubt its file or XBian or Kodi issue
That DID work, but why dont NFS work (worked fine on an xvid file)
i tried SMB but that is just nasty to get to work for me so i tried NFS.

Any ideas ? or any other ways to stream media from a server ?


(5th Mar, 2015 06:30 AM)f1vefour Wrote: [ -> ]It looks to be a nfs issue not kodi, to test copy the file locally and try it.
(5th Mar, 2015 06:43 AM)znoopy Wrote: [ -> ]That DID work, but why dont NFS work (worked fine on an xvid file)
i tried SMB but that is just nasty to get to work for me so i tried NFS.

Any ideas ? or any other ways to stream media from a server ?


(5th Mar, 2015 06:30 AM)f1vefour Wrote: [ -> ]It looks to be a nfs issue not kodi, to test copy the file locally and try it.

I using NFS and SMB from my local server, no issues at all
Tested NFS on my old system with ubuntu and kodi and same file
worked fine on that one... very strange why i dont work on raspberry
and NFS.

(5th Mar, 2015 06:47 AM)rikardo1979 Wrote: [ -> ]
(5th Mar, 2015 06:43 AM)znoopy Wrote: [ -> ]That DID work, but why dont NFS work (worked fine on an xvid file)
i tried SMB but that is just nasty to get to work for me so i tried NFS.

Any ideas ? or any other ways to stream media from a server ?


(5th Mar, 2015 06:30 AM)f1vefour Wrote: [ -> ]It looks to be a nfs issue not kodi, to test copy the file locally and try it.

I using NFS and SMB from my local server, no issues at all
just tested your file on my RPi setup and all is fine, so problem in somewhere on your side.
can you try remove/re-add all your sources under Kodi and clean/re-scan your libraries?
all my sources are NFS
I'm also using NFS root
no problem at all

All mounts are system mounts through fstab

exports
Code:
/nfs4exports/Videos      192.168.1.0/24(rw,nohide,async,insecure,root_squash,no_subtree_check,anonuid=1000,anongid=10​0)
uid 1000 and gid 100 are local user owning files on my server

fstab
Code:
192.168.1.8:/nfs4exports/Videos   /Videos   nfs    rw,nolock,async,nfsvers=3,actimeo=0,udp,soft,intr,rsize=32768,wsize=32768,n​oatime 0 0
Why not convert MKV to MP4 to have a try? Check out this article.
http://www.videoconverterfactory.com/tips/convert-mkv-to-mp4-video-format.html
MKV plays just fine on a pi.

Remember that mkv is a container only. The video could already be mp4 inside it!
it seems like any other issue, not kodi
Go to VLC Menu – From Tools menubar - Select Preferences option.
Select All Radio Button on the bottom left from the dialog window.
Go to the Input/Codecs section – a list will appear.
Select the File Caching(ms) option under the advanced section.
Set it to 1000.

Choppy videos spoil the fun of viewing experience. There can be several reasons behind a rough, jerky, or broken video. Reasons include faulty SD cards, technical glitches, audio/video codec issues, outdated media players, corrupt or damaged video files, unsupportable video file format, etc.

Go to VLC Menu – From Tools menubar - Select Preferences option.
Select All Radio Button on the bottom left from the dialog window.
Select Input/Codecs option.
Select the Video Codecs option.
Select FFmpeg option - Disable Hardware Decoding option on the list that appears.

Most VLC users get frustrated when the VLC media player produces no audio while playing the videos. Like viewing, aural experience is equally essential for enjoyment. If the problem continues to persist after checking all the sound-related panels and speakers on our devices, just check the steps.

Go to VLC Menu – From Tools menubar - Select Preferences option.
Click on the Audio icon.
Select the Enable Audio option.
Go to Output option and Select options from Output Module and HDMI/SPDIF audio passthrough.
The best choice for playing MKV files is to use VLC media player software. To download this program, you can refer to the official download page from the main site of this company.
After downloading and installing this software, to make MKV files dependent on VLC, right-click on one of the files with this format and select the Properties option. Then on the General tab, click the Change option and select VLC Player from the screen that appears.
After that, whenever you want to play MKV files, double-click on them to open them automatically with VLC.

Method 2: Use codecs to be compatible with other players
Reference URL's