Kodi Community Forum

Full Version: RPi 2 cannot play some mkv files
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey there,

I just installed LibreELEC on my RPi 2 and found that it can play some mkv files. Is there any solution about this?
Here is the log file trying to open a mkv file:
https://pastebin.com/aTZLA63E

For some reason, other mkv files are playing with no problem. 
Here's a log file:
https://pastebin.com/QG4RpMri

Thank you in advance guys!
Several things....

1) Please don't post bits of log files, what you think is not relevant might well be.
2) Post proper "debug" log files not just bits of the general logging Kodi does.

3) your issue is that the RPi2 cannot decode HEVC in hardware, therefore falls back to software and does not have enough grunt to decode it on the CPU.

Solution - upgrade to a RPi 4 which can decode hevc just fine.
A 1080p x265 HEVC-file will be to much for a Pi2, probably even a Pi3, Pi4 will play it without a problem.
In the failed log it only shows it was unable to access the file, not generally unable to play the file (once accessed).

Check your permissions.

To note, most usually it's expected to receive a Full, Unredacted, Debug Log for assistance as with your log posts we are unable to see if there were errors leading up to the failure.
Thanks for your time guys! Actually, some of the mkv movies aren't hevc, e.g. Hunter Killer - 720 HD, x264, AC3. Tomorrow I will post a log file trying to open this movie. Also, I will provide a full debug log.

As to your suggestions for buying RPi 4 or so, I will consider it for sure. Thanks once again!
(2023-01-11, 19:37)nujnicka Wrote: [ -> ]Is there any solution about this?

Stick to h264 videos. HEVC/h265 is too complex for a RPi2 device.
Hey guys,

Here's the full debug log when I'm trying to open some mkv files:
https://drive.google.com/file/d/1iGULYaR...sp=sharing
I'm sorry but I can't upload it to Pastebin because the file is too big.

As you can see some of them are working fine, but here's a list of movies/tv that don't work. I checked and they are h264 codec, not HEVC, and that's weird.
- Hunder killer 2018 720p h264 ac3 mkv 
- gangs of london 1080p x264 mkv
- the x files 1080p bluray x264 mkv
- the last kingdom 1080p h264 mkv

In the log file you can see that other mkv movies/tv work fine. 

Can you please help me with this? Thanks in advance!
(2023-01-12, 12:30)nujnicka Wrote: [ -> ]I'm sorry but I can't upload it to Pastebin because the file is too big.

You can split the log into parts and provide a https://paste.kodi.tv/ link for each part. It makes it easier for people to review it without having to download a files, open, etc.
The log shows errors reading the file from your NAS. eg:
Code:
2023-01-12 10:18:19.136 T:1149    DEBUG <general>: CFileCache::Seek - <smb://192.168.0.101/Home/timecapsule/TV Shows/The Last Kingdom/The.Last.Kingdom.S01E01.1080p.WEB-DL.DD5.1.H.264-EsQ/The.Last.Kingdom.S01E01.1080p.WEB-DL.DD5.1.H.264-EsQ.mkv> waiting for position 2491240091
2023-01-12 10:18:19.139 T:1151    ERROR <general>: Read - Error( -1, 22, Invalid argument )
2023-01-12 10:18:19.140 T:1151    ERROR <general>: Process - <smb://192.168.0.101/Home/timecapsule/TV Shows/The Last Kingdom/The.Last.Kingdom.S01E01.1080p.WEB-DL.DD5.1.H.264-EsQ/The.Last.Kingdom.S01E01.1080p.WEB-DL.DD5.1.H.264-EsQ.mkv> source read failed with -1!
2023-01-12 10:18:19.187 T:1149  WARNING <general>: CFileCache::Seek - <smb://192.168.0.101/Home/timecapsule/TV Shows/The Last Kingdom/The.Last.Kingdom.S01E01.1080p.WEB-DL.DD5.1.H.264-EsQ/The.Last.Kingdom.S01E01.1080p.WEB-DL.DD5.1.H.264-EsQ.mkv> failed to get remaining data
2023-01-12 10:18:19.201 T:1149    DEBUG <general>: CFileCache::Seek - <smb://192.168.0.101/Home/timecapsule/TV Shows/The Last Kingdom/The.Last.Kingdom.S01E01.1080p.WEB-DL.DD5.1.H.264-EsQ/The.Last.Kingdom.S01E01.1080p.WEB-DL.DD5.1.H.264-EsQ.mkv> waiting for position 2491241317
2023-01-12 10:18:19.204 T:1151    ERROR <general>: Read - Error( -1, 22, Invalid argument )
2023-01-12 10:18:19.205 T:1151    ERROR <general>: Process - <smb://192.168.0.101/Home/timecapsule/TV Shows/The Last Kingdom/The.Last.Kingdom.S01E01.1080p.WEB-DL.DD5.1.H.264-EsQ/The.Last.Kingdom.S01E01.1080p.WEB-DL.DD5.1.H.264-EsQ.mkv> source read failed with -1!
2023-01-12 10:18:19.252 T:1149  WARNING <general>: CFileCache::Seek - <smb://192.168.0.101/Home/timecapsule/TV Shows/The Last Kingdom/The.Last.Kingdom.S01E01.1080p.WEB-DL.DD5.1.H.264-EsQ/The.Last.Kingdom.S01E01.1080p.WEB-DL.DD5.1.H.264-EsQ.mkv> failed to get remaining data
2023-01-12 10:18:19.253 T:1149    DEBUG <general>: Open - avformat_find_stream_info starting
2023-01-12 10:18:19.290 T:1149    ERROR <general>: ffmpeg[0x2b95200X]: [matroska,webm] File ended prematurely

Copy the file to a USB drive (to rule our problems with your NAS) and also verify that the file on the USB drive plays fine on your PC/Mac/whatever (to rule out broken files).

so long,

Hias
(2023-01-11, 19:46)nymdbwdp Wrote: [ -> ]In the failed log it only shows it was unable to access the file, not generally unable to play the file (once accessed).

Check your permissions.
Guys, I really don't have an issue accessing these movies form other Kodi devices. I don't this is the issue here.

As to the kodi log uploaded to Google Drive, I will split the file. Sorry about that!