Kodi Community Forum
Some mkv files won't play on Pi2 - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Raspberry Pi (https://forum.kodi.tv/forumdisplay.php?fid=166)
+---- Thread: Some mkv files won't play on Pi2 (/showthread.php?tid=258904)

Pages: 1 2


Some mkv files won't play on Pi2 - markonajolly - 2016-02-05

Any thoughts why the following mkv file might not play when others do? My system is a Raspberry Pi 2 running Kodi 15.2 under Raspbian 8? I hear a few seconds of audio but no video. The Pi is attached to a TV over HDMI for video and audio. The files play perfectly using VLC under Linux. Output of mkvinfo is:

+ EBML head
|+ Doc type: matroska
|+ Doc type version: 2
|+ Doc type read version: 2
+ Segment, size 1123026642
|+ Seek head (subentries will be skipped)
|+ EbmlVoid (size: 4027)
|+ Segment information
| + Timecode scale: 1000000
| + Muxing application: libebml v0.7.9 + libmatroska v0.8.1
| + Writing application: mkvmerge v3.1.0 ('Happy up here') built on Jan 19 2010 12:09:24
| + Duration: 2531.068s (00:42:11.068)
| + Date: Thu Nov 19 00:10:34 2015 UTC
| + Segment UID: 0xa6 0x1d 0x73 0x32 0x69 0xf4 0x76 0x8a 0x81 0x2e 0xcf 0x63 0xca 0x5e 0x44 0xea
|+ Segment tracks
| + A track
| + Track number: 1 (track ID for mkvmerge & mkvextract: 0)
| + Track UID: 1
| + Track type: video
| + Enabled: 1
| + Default flag: 0
| + Forced flag: 0
| + Lacing flag: 0
| + MinCache: 1
| + Timecode scale: 1
| + Max BlockAddition ID: 0
| + Codec ID: V_MPEG4/ISO/AVC
| + Codec decode all: 1
| + CodecPrivate, length 43 (h.264 profile: High @L4.1)
| + Default duration: 41.708ms (23.976 frames/fields per second for a video track)
| + Language: eng
| + Video track
| + Pixel width: 1280
| + Pixel height: 720
| + Interlaced: 0
| + Display width: 1280
| + Display height: 720
| + A track
| + Track number: 2 (track ID for mkvmerge & mkvextract: 1)
| + Track UID: 3423940230
| + Track type: audio
| + Enabled: 1
| + Default flag: 1
| + Forced flag: 0
| + Lacing flag: 1
| + MinCache: 0
| + Timecode scale: 1
| + Max BlockAddition ID: 0
| + Codec ID: A_AC3
| + Codec decode all: 1
| + Default duration: 32.000ms (31.250 frames/fields per second for a video track)
| + Language: und
| + Audio track
| + Sampling frequency: 48000
| + Channels: 6
|+ EbmlVoid (size: 1024)
|+ Cluster

Thanks for looking.
Mark


RE: Some mkv files won't play on Pi2 - popcornmix - 2016-02-05

The codec looks okay. A debug log (wiki) may help. A one minute sample file (e.g. produced with mmg from mkvtoolnix) might be useful.


RE: Some mkv files won't play on Pi2 - markonajolly - 2016-02-05

Log uploaded to http://xbmclogs.com/pgsrjo9ya
Thanks.


RE: Some mkv files won't play on Pi2 - popcornmix - 2016-02-05

Code:
14:06:13 T:1946509312  NOTICE: ARM mem: 944MB GPU mem: 64MB MPG2:1 WVC1:1

Not enough gpu memory for Kodi. We recommend setting gpu_mem=256 in config.txt.


RE: Some mkv files won't play on Pi2 - markonajolly - 2016-02-05

After googling "CMMALVideo::dec_control_port_cb Error (status=2 ENOSPC)" from the log I managed to get the file to play by disabling MMAL acceleration in Kodi.


RE: Some mkv files won't play on Pi2 - popcornmix - 2016-02-05

(2016-02-05, 16:31)markonajolly Wrote: After googling "CMMALVideo::dec_control_port_cb Error (status=2 ENOSPC)" from the log I managed to get the file to play by disabling MMAL acceleration in Kodi.

Not the right solution. Increase gpu_mem.


RE: Some mkv files won't play on Pi2 - markonajolly - 2016-02-05

Fantastic! Increasing the gpu memory has fixed playback with MMAL acceleration enabled.
Thank you for the swift and decisive help.


RE: Some mkv files won't play on Pi2 - GonerNL - 2016-02-05

Will increasing memory also work for playing .mkv files in x265/HEVC format or is that a CPU issue ?? Or GPU rather ...

(I've got a Pi 2B with Openelec 6.0.1)


RE: Some mkv files won't play on Pi2 - popcornmix - 2016-02-05

(2016-02-05, 17:45)GonerNL Wrote: Will increasing memory also work for playing .mkv files in x265/HEVC format or is that a CPU issue ?? Or GPU rather ...

(I've got a Pi 2B with Openelec 6.0.1)

OE should default to 256M which is plenty.

There is no hardware support for HEVC. OE 6.0.1 uses ffmpeg and will only play SD HEVC.
The nightly Milhouse builds have some GPU acceleration for HEVC. Most 720p videos should play (but not 1080p).


RE: Some mkv files won't play on Pi2 - scubacarlo - 2019-01-26

This works great !!
It took me almost a full Saturday to find this.
I have Kodi 17 running on Raspbian. I had the same problem, no video, black or green screen.
This simple solution saved my Saturday evening :-)


RE: Some mkv files won't play on Pi2 - Klojum - 2019-01-26

(2016-02-05, 17:57)popcornmix Wrote: The nightly Milhouse builds have some GPU acceleration for HEVC. Most 720p videos should play (but not 1080p).
1080p HEVC with a moderate bitrate on an RPI 3B+ as well as some moderate overclocking will do the job.

For 720p h.264 (or h.265) video I've never had to change the memory size on a RPi. A bit odd.


RE: Some mkv files won't play on Pi2 - rascas - 2019-01-27

Raspbian comes with only 64MB of GPU RAM by default, if you don't increase it, it won't play any videos.


RE: Some mkv files won't play on Pi2 - ashleywilliams - 2019-02-06

i guys. I am using Retropie and Kodi for more than a year now. Today I updated everything and received Kodi 18 Leia. Now I got the problem that half of my videos aren't playable anymore. When I start them it got just directly back to the library. I tried to remove Kodi and reinstall it, remove all Kodi settings, to set gpu memory and searched the web for hours - nothing helped. Under Krypton I had no such issues. Anyone else with this problem? Any ideas what to try?
Any idea how to downgrade back to Krypton? Thanks a lot!


RE: Some mkv files won't play on Pi2 - ActionA - 2019-02-07

Why not post logs so that folks can determine and advise you on why Kodi chokes on the videos and what you might do to fix it?


RE: Some mkv files won't play on Pi2 - ashleywilliams - 2019-02-07

Sure, here it is: https://paste.kodi.tv/kovubagiki
Thank you in anticipation!

All videos are the same NAS using smb. What I did in the log above is: Restart Kodi, open a video that is working, closing the video, opening a video that isn't working.