Kodi Community Forum

Full Version: MKV and MP4 playback
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I recently installed XBMC on ubuntu 10.10 started by adding media library and check playing several different media files.

Avi files play with no problem, but MKV and MP4 simply do nothing, filename turns yellow and file does not play. As far as I read mkv and h.264 are supported container and codec. In fact with default media player in Ubuntu (Totem) and VLC every file runs perfect. I read that XBMC uses MPlayer as default player and FFmpeg library.

How can I play these kind of files?

Regards.
You'll need to supply logs so we can see what's going on. MP4 and MKV are supported containers and h264 is a supported codec. All should work out of the box just fine.
I just checked the log and saw this error:

23:27:15 T:2836048752 M:1441640448 NOTICE: (VDPAU) screenWidth:1280 vidWidth:1280
23:27:15 T:2836048752 M:1441640448 NOTICE: (VDPAU) screenHeight:720 vidHeight:720
23:27:15 T:2836048752 M:1420115968 ERROR: (VDPAU) Error: A catch-all error, used when no other error code applies.(25) at VDPAU.cpp:905
23:27:15 T:2836048752 M:1420115968 NOTICE: Attempting recovery
23:27:15 T:2836048752 M:1442353152 ERROR: VDPAU Device Preempted - attempting recovery
23:27:15 T:2836048752 M:1442353152 ERROR: (VDPAU) Error: The display was pre-empted, or a fatal error occurred.(2) at VDPAU.cpp:748
23:27:15 T:2836048752 M:1441611776 NOTICE: vdp_device = 0x00000001 vdp_st = 0x00000000
23:27:15 T:2836048752 M:1441611776 NOTICE: (VDPAU) screenWidth:1280 vidWidth:1280
23:27:15 T:2836048752 M:1441611776 NOTICE: (VDPAU) screenHeight:720 vidHeight:720
23:27:15 T:2836048752 M:1421197312 ERROR: (VDPAU) Error: A catch-all error, used when no other error code applies.(25) at VDPAU.cpp:905
23:27:15 T:2836048752 M:1421197312 NOTICE: Attempting recovery

I disabled VDPAU inside XBMC and voila now it works. Many thanks.
Do you have an nVidia video card? If not, then there's no reason to have vdpau enabled.