[LIVE] Matroska files do not perform properly
#1
Question 
Hello,

I have been running XBMC for quite some time now, first on the original Xbox and since late last year I migrated to XBMC Live 9.11 on a Acer Aspire Revo with 2 Gigs of RAM, Atom processor, Nvidia GPU and HDMI output; the main reason I decided to upgrade my hardware platform was achieving upscaling and HD support with the Xbox doesnt provide - and it has worked fine for Xvid/Quicktime/MPEG content.

I also make a point to keep the underlying Ubuntu Karmic OS up to date and get all security patches on a regular basis.

Yet whenever I try to play a matroska video file, in any resolution; i get lots of stuttering and a huge A/V sync mess. Basically general bad performance overall.

Can anyone let me know if there are any tweaks/configs that can apply to improve performance?
Reply
#2
This worked for me. I no longer have issues: http://forum.xbmc.org/showthread.php?tid=70068
Reply
#3
Thanks for your reply, fellow Marvelite Smile

Sadly I already ran that procedure a while back and while it id help somewhat, it hasn't fixed all the issues I experience with mkv files...

I'm starting to think that I should only play back Xvid and be done with it.... *sigh*
Reply
#4
Did you enable hardware acceleration under Video Playback in the settings? Also, how much RAM do you have allocated towards graphics in the BIOS?
Reply
#5
Gee, no xbmc.logs or MediaInfo reports, nor a xorg.conf. How in the blazes do you think we can help if you don't include any basic debugging aids. Not much we can do until the crystal ball gets fixed.
Reply
#6
Ok, sorry for not posting enough information. Here goes what I have:

In the BIOS the Frame Buffer memory setting is currently at 512 MBytes (the highest possible option) and VDPAU acceleration is enabled in my Playback settings.


My xorg.conf:
Code:
Section "Device"
        Identifier "nvidia"
        Driver  "nvidia"
        Option  "NoLogo"              "true"
        Option  "DynamicTwinView"     "false"
        Option  "FlatPanelProperties" "Scaling = Native"
        Option  "ModeValidation"      "NoVesaModes, NoXServerModes, NoVertRefreshCheck, NoHorizSyncCheck"
        Option  "UseDisplayDevice"    "DFP-1"
        Option  "ModeDebug"           "true"
    Option  "HWCursor"            "false"
EndSection

Section "Screen"
        Identifier      "screen"
        Device          "nvidia"
        SubSection      "Display"
                Modes "1920x1080_60_0" "1920x1080_24"
        EndSubSection
EndSection

Section "Extensions"
        Option  "Composite"           "false"
EndSection

xbmc.log during a few seconds of MKV playback:

Code:
19:47:32 T:127691632 M:1403023360  NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
19:47:33 T:127691632 M:1405140992  NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
19:47:34 T:127691632 M:1406017536  NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
19:47:34 T:127691632 M:1404895232  NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
19:47:35 T:127691632 M:1404653568  NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
19:47:35 T:127691632 M:1405546496  NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
19:47:36 T:127691632 M:1404592128  NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
19:47:36 T:127691632 M:1398534144  NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
19:47:37 T:127691632 M:1405325312  NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
19:47:43 T:3078125440 M:1397014528  NOTICE: DVDPlayer: Opening: /opt/multimedia/downloads/video/TV/Caprica/Caprica.S01E09.720p.HDTV.x264-CTU.mkv
19:47:43 T:3078125440 M:1396760576 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
19:47:43 T:2830044016 M:1396760576  NOTICE: Creating InputStream
19:47:43 T:2830044016 M:1396760576  NOTICE: Creating Demuxer
19:47:43 T:2830044016 M:1394348032  NOTICE: Opening video stream: 1 source: 256
19:47:43 T:2830044016 M:1394348032  NOTICE: Creating video codec with codec id: 28
19:47:43 T:2830044016 M:1394348032  NOTICE: CDVDVideoCodecFFmpeg::Open() Creating VDPAU(1280x720)
19:47:43 T:2830044016 M:1394200576  NOTICE: vdp_device = 0x00000000 vdp_st = 0x00000001
19:47:43 T:2830044016 M:1394200576   ERROR: (VDPAU) unable to init VDPAU - vdp_st = 0x1.  Falling back.
19:47:43 T:2830044016 M:1394200576  NOTICE: CDVDVideoCodecFFmpeg::Open() Failed to get VDPAU device
19:47:43 T:2830044016 M:1394200576  NOTICE:  (VDPAU) ~CVDPAU
19:47:43 T:2830044016 M:1394200576  NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
19:47:44 T:2830044016 M:1392160768  NOTICE: Creating video thread
19:47:44 T:2830044016 M:1392160768  NOTICE: Opening audio stream: 0 source: 256
19:47:44 T:2830044016 M:1392160768  NOTICE: Finding audio codec for: 86020
19:47:44 T:2767104880 M:1392160768  NOTICE: running thread: video_thread
19:47:44 T:2830044016 M:1392312320  NOTICE: Creating audio thread
19:47:44 T:2756615024 M:1392312320  NOTICE: running thread: CDVDPlayerAudio::Process()
19:47:44 T:2756615024 M:1392463872  NOTICE: Creating audio device with codec id: 86020, channels: 2, sample rate: 48000, pass-through
19:47:44 T:2767104880 M:1379123200  NOTICE:  fps: 24.000000, pwidth: 1280, pheight: 720, dwidth: 1280, dheight: 720
19:47:44 T:2767104880 M:1379123200  NOTICE: Display resolution DESKTOP : 1920x1080 @ 60.00 - Full Screen (12)
19:47:44 T:3078125440 M:1372901376  NOTICE: Using GL_TEXTURE_2D
19:47:44 T:3078125440 M:1373077504  NOTICE: GL: Selecting Single Pass YUV 2 RGB shader
19:47:44 T:3078125440 M:1372696576  NOTICE: GL: NPOT texture support detected
19:47:50 T:2767104880 M:1381888000  NOTICE:  fps: 23.976025, pwidth: 1280, pheight: 720, dwidth: 1280, dheight: 720
19:47:50 T:2767104880 M:1381888000  NOTICE: Display resolution DESKTOP : 1920x1080 @ 60.00 - Full Screen (12)
19:47:50 T:2767104880 M:1381888000 WARNING: Decode - avcodec_decode_video didn't consume the full packet. size: 5647, consumed: 0
19:47:50 T:3078125440 M:1381888000  NOTICE: Using GL_TEXTURE_2D
19:47:50 T:3078125440 M:1381888000  NOTICE: GL: Selecting Single Pass YUV 2 RGB shader
19:47:50 T:3078125440 M:1381888000  NOTICE: GL: NPOT texture support detected
19:47:54 T:2767104880 M:1381490688 WARNING: Decode - avcodec_decode_video didn't consume the full packet. size: 5291, consumed: 0
19:47:56 T:2767104880 M:1381535744 WARNING: Decode - avcodec_decode_video didn't consume the full packet. size: 6655, consumed: 0
19:47:56 T:2767104880 M:1381572608 WARNING: Decode - avcodec_decode_video didn't consume the full packet. size: 6252, consumed: 0
19:47:57 T:2767104880 M:1381572608 WARNING: Decode - avcodec_decode_video didn't consume the full packet. size: 7792, consumed: 0
19:47:57 T:2767104880 M:1381572608 WARNING: Decode - avcodec_decode_video didn't consume the full packet. size: 6110, consumed: 0
19:47:58 T:2767104880 M:1381568512 WARNING: Decode - avcodec_decode_video didn't consume the full packet. size: 3433, consumed: 0
19:48:09 T:2767104880 M:1379753984 WARNING: Decode - avcodec_decode_video didn't consume the full packet. size: 7427, consumed: 0
19:48:11 T:2767104880 M:1379667968 WARNING: Decode - avcodec_decode_video didn't consume the full packet. size: 5755, consumed: 0
19:48:12 T:2767104880 M:1378832384 WARNING: Decode - avcodec_decode_video didn't consume the full packet. size: 5295, consumed: 0
19:48:13 T:2767104880 M:1378832384 WARNING: Decode - avcodec_decode_video didn't consume the full packet. size: 7352, consumed: 0
19:48:14 T:2767104880 M:1378746368 WARNING: Decode - avcodec_decode_video didn't consume the full packet. size: 4076, consumed: 0
19:48:26 T:3078125440 M:1377783808  NOTICE: CDVDPlayer::CloseFile()
19:48:26 T:3078125440 M:1377783808  NOTICE: DVDPlayer: waiting for threads to exit
19:48:26 T:2830044016 M:1377783808  NOTICE: CDVDPlayer::OnExit()
19:48:26 T:2830044016 M:1377783808  NOTICE: DVDPlayer: closing audio stream
19:48:26 T:2830044016 M:1377783808  NOTICE: Closing audio stream
19:48:26 T:2830044016 M:1377783808  NOTICE: Waiting for audio thread to exit
19:48:26 T:2756615024 M:1377783808  NOTICE: thread end: CDVDPlayerAudio::OnExit()
19:48:26 T:2830044016 M:1377783808  NOTICE: Closing audio device
19:48:26 T:2830044016 M:1377783808  NOTICE: Deleting audio codec
19:48:26 T:2830044016 M:1377783808  NOTICE: DVDPlayer: closing video stream
19:48:26 T:2830044016 M:1377783808  NOTICE: Closing video stream
19:48:26 T:2830044016 M:1377783808  NOTICE: waiting for video thread to exit
19:48:26 T:2767104880 M:1377783808  NOTICE: thread end: video_thread
19:48:26 T:2830044016 M:1378418688  NOTICE: deleting video codec
19:48:26 T:2830044016 M:1387053056  NOTICE: CDVDPlayer::OnExit() deleting demuxer
19:48:26 T:2830044016 M:1392766976  NOTICE: CDVDPlayer::OnExit() deleting input stream
19:48:26 T:3078125440 M:1392766976  NOTICE: DVDPlayer: finished waiting
19:48:26 T:3078125440 M:1395052544  NOTICE: CDVDPlayer::CloseFile()
19:48:26 T:3078125440 M:1395052544 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
19:48:26 T:3078125440 M:1395052544  NOTICE: DVDPlayer: waiting for threads to exit
19:48:26 T:3078125440 M:1395052544  NOTICE: DVDPlayer: finished waiting
19:48:40 T:3078125440 M:1396764672  NOTICE: Storing total System Uptime
19:48:40 T:3078125440 M:1396764672  NOTICE: Saving settings
19:48:40 T:3078125440 M:1396764672  NOTICE: stop all
19:48:40 T:3078125440 M:1396764672  NOTICE: ES: Stopping event server
19:48:40 T:3078125440 M:1396764672  NOTICE: stopping zeroconf publishing
19:48:41 T:3053968240 M:1396637696  NOTICE: ES: UDP Event server stopped
19:48:41 T:3078125440 M:1396637696  NOTICE: stop dvd detect media
19:48:41 T:3078125440 M:1396637696  NOTICE: stop sap announcement listener
19:48:41 T:3078125440 M:1396637696  NOTICE: clean cached files!
19:48:41 T:3078125440 M:1396637696  NOTICE: unload skin
19:48:41 T:3078125440 M:1401597952  NOTICE: stop python
19:48:41 T:3078125440 M:1401597952  NOTICE: stopped
19:48:41 T:3078125440 M:1401597952  NOTICE: destroy
19:48:41 T:3078125440 M:1401724928  NOTICE: unload sections

I will post MediaInfo reports later on, as I have to compile it first.

Hope this will make things easier, I appreciate any help I can get.
Reply
#7
"ERROR: (VDPAU) unable to init VDPAU - vdp_st = 0x1. Falling back."

you are dead here, xbmc then falls back to sw decoding.
Reply
#8
Ok, I dont understand why VDPAU is not working, as i have the propietary NVIDIA driver installed and the vdpau libraries as well:

Code:
root@XBMCLive:~# dpkg -l|grep nvidia
ii  nvidia-195-kernel-source                195.36.24-0ubuntu1                      NVIDIA binary kernel module source
ii  nvidia-195-libvdpau                     195.36.24-0ubuntu1                      Video Decode and Presentation API for Unix
ii  nvidia-195-modaliases                   195.36.24-0ubuntu1                      Modaliases for the NVIDIA binary X.Org drive
ii  nvidia-glx-195                          195.36.24-0ubuntu1                      NVIDIA binary Xorg driver
ii  nvidia-glx-195-dev                      195.36.24-0ubuntu1                      NVIDIA binary Xorg driver development files
ii  nvidia-settings                         190.36-0ubuntu6                         Tool of configuring the NVIDIA graphics driv

section of dmesg:

Code:
[    6.961789] nvidia: module license 'NVIDIA' taints kernel.
[    6.961800] Disabling lock debugging due to kernel taint
[    7.234262] ACPI: PCI Interrupt Link [LPMU] enabled at IRQ 22
[    7.234279] nvidia 0000:00:03.5: PCI INT B -> Link[LPMU] -> GSI 22 (level, low) -> IRQ 22
[    7.235393] ACPI: PCI Interrupt Link [SGRU] enabled at IRQ 21
[    7.235406] nvidia 0000:03:00.0: PCI INT A -> Link[SGRU] -> GSI 21 (level, low) -> IRQ 21
[    7.235423] nvidia 0000:03:00.0: setting latency timer to 64
[    7.236281] NVRM: loading NVIDIA UNIX x86 Kernel Module  195.36.24  Thu Apr 22 09:18:20 PDT 2010

lspci:

Code:
03:00.0 VGA compatible controller: nVidia Corporation ION VGA (rev b1)
        Subsystem: Acer Incorporated [ALI] Device 0222
        Flags: bus master, fast devsel, latency 0, IRQ 21
        Memory at fb000000 (32-bit, non-prefetchable) [size=16M]
        Memory at e0000000 (64-bit, prefetchable) [size=256M]
        Memory at f8000000 (64-bit, prefetchable) [size=32M]
        I/O ports at ec00 [size=128]
        [virtual] Expansion ROM at fafe0000 [disabled] [size=128K]
        Capabilities: [60] Power Management version 2
        Capabilities: [68] Message Signalled Interrupts: Mask- 64bit+ Queue=0/0 Enable-
        Kernel driver in use: nvidia
        Kernel modules: nvidia, nvidiafb

So, is that it? is the hardware not up to providing acceleration or is there anything else I can do?
Reply
#9
how about a pastebin of xorg's log file to see if it's actually being used. Next would be the FULL xbmc.log so we can see the bits you cut off. A pastebin of the FULL dmesg might also help. pastebin as in copy/paste to a pastebin site like http://www.pastebin.com
Reply
#10
Xorg.0.log:

http://pastebin.com/ERz5VMpn

xbmc.log:

http://pastebin.com/RyRLzZFh

dmesg:

http://pastebin.com/yDZzQrXe


Thanks for looking into it...
Reply
#11
havok1977 Wrote:Xorg.0.log:

http://pastebin.com/ERz5VMpn

xbmc.log:

http://pastebin.com/RyRLzZFh

dmesg:

http://pastebin.com/yDZzQrXe


Thanks for looking into it...

(WW) Jun 23 22:12:24 NVIDIA(0): Unable to find any of the requested display device "DFP-1" in
(WW) Jun 23 22:12:24 NVIDIA(0): the list of available display devices "DFP-0".

Perhaps using DFP-0 would be better than DFP-1.

I'd revert to a previous nvidia driver version if that does not help.
Reply
#12
I've noticed that XBMC often does not play all files in a dynamically-linked MKV file. I'm not sure if that is the correct terminology. I come across this issue with some anime releases. XBMC will just play the main episode - usually not the opening and ending songs as it should. Mplayer and VLC will play the entire episode and OP and ED songs as they should. I'm not sure if this is an issue with XBMC or ffmpeg.
Reply
#13
Thumbs Up 
Well reconfiguring xorg.conf to DFP-0 fixed the graphical server error, but did not help with the VDPAU issue.

So i am installing NVIDIA driver version= 190.53 and removing the newer one as suggested...

Code:
19:10:51 T:3077945232 M:1432158208  NOTICE: DVDPlayer: Opening: /opt/multimedia/downloads/video/TV/Caprica/Caprica.S01E09.720p.HDTV.x264-CTU.mkv
19:10:51 T:3077945232 M:1432158208 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
19:10:51 T:3021982576 M:1432158208  NOTICE: Creating InputStream
19:10:51 T:3021982576 M:1432158208  NOTICE: Creating Demuxer
19:10:51 T:3021982576 M:1425928192  NOTICE: Opening video stream: 1 source: 256
19:10:51 T:3021982576 M:1425928192  NOTICE: Creating video codec with codec id: 28
19:10:51 T:3021982576 M:1425723392  NOTICE: CDVDVideoCodecFFmpeg::Open() Creating VDPAU(1280x720)
19:10:52 T:3021982576 M:1424994304  NOTICE: vdp_device = 0x00000001 vdp_st = 0x00000000
19:10:52 T:3021982576 M:1424994304  NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (VDPAU acceleration)
19:10:52 T:3021982576 M:1422569472  NOTICE: Creating video thread
19:10:52 T:3021982576 M:1422569472  NOTICE: Opening audio stream: 0 source: 256
19:10:52 T:2962865008 M:1422569472   ERROR: (VDPAU) ReleasePixmap called without valid pixmap
19:10:52 T:3021982576 M:1422569472  NOTICE: Finding audio codec for: 86020
19:10:52 T:2962865008 M:1422569472  NOTICE: running thread: video_thread
19:10:52 T:3021982576 M:1422721024  NOTICE: Creating audio thread
19:10:52 T:2952375152 M:1422721024  NOTICE: running thread: CDVDPlayerAudio::Process()
19:10:53 T:2962865008 M:1421721600  NOTICE: Creating 1920x1080 pixmap
19:10:53 T:2962865008 M:1416331264  NOTICE:  (VDPAU) Didnt find a Video Surface Available (Total: 0). Creating a new one. TRY #1
19:10:53 T:2962865008 M:1414443008  NOTICE:  (VDPAU) FiniVDPAUOutput
19:10:53 T:2962865008 M:1414443008  NOTICE:  (VDPAU) screenWidth:1920 vidWidth:1280
19:10:53 T:2962865008 M:1414443008  NOTICE:  (VDPAU) screenHeight:1080 vidHeight:720
19:10:53 T:2962865008 M:1391153152  NOTICE:  (VDPAU) Total Output Surfaces Available: 4 of a max (tmp: 4 const: 4)
19:10:53 T:2962865008 M:1391153152  NOTICE: VDPAU Decoder capabilities:
19:10:53 T:2962865008 M:1391153152  NOTICE: name          level macbs width height
19:10:53 T:2962865008 M:1391153152  NOTICE: ------------------------------------
19:10:53 T:2962865008 M:1391153152  NOTICE: MPEG1             0  8192  2048  2048
19:10:53 T:2962865008 M:1391153152  NOTICE: MPEG2_SIMPLE      3  8192  2048  2048
19:10:53 T:2962865008 M:1391153152  NOTICE: MPEG2_MAIN        3  8192  2048  2048
19:10:53 T:2962865008 M:1391153152  NOTICE: H264_MAIN        41  8190  2032  2048
19:10:53 T:2962865008 M:1391153152  NOTICE: H264_HIGH        41  8190  2032  2048
19:10:53 T:2962865008 M:1391153152  NOTICE: VC1_SIMPLE        1  8190  2048  2048
19:10:53 T:2962865008 M:1391026176  NOTICE: VC1_MAIN          2  8190  2048  2048
19:10:53 T:2962865008 M:1391026176  NOTICE: VC1_ADVANCED      4  8190  2048  2048
19:10:53 T:2952375152 M:1391026176  NOTICE: Creating audio device with codec id: 86020, channels: 2, sample rate: 48000, pass-through
19:10:53 T:2962865008 M:1391026176  NOTICE:  (VDPAU) Didnt find a Video Surface Available (Total: 1). Creating a new one. TRY #1
19:10:53 T:2962865008 M:1389121536  NOTICE:  (VDPAU) Didnt find a Video Surface Available (Total: 2). Creating a new one. TRY #1
19:10:53 T:2962865008 M:1387089920  NOTICE:  (VDPAU) Creating the video mixer
19:10:53 T:2962865008 M:1380327424  NOTICE:  fps: 24.000000, pwidth: 1280, pheight: 720, dwidth: 1280, dheight: 720
19:10:53 T:2962865008 M:1380327424  NOTICE: Display resolution DESKTOP : 1920x1080 @ 60.00 - Full Screen (12)
19:10:53 T:2962865008 M:1380327424  NOTICE:  (VDPAU) Didnt find a Video Surface Available (Total: 3). Creating a new one. TRY #1
19:10:53 T:2962865008 M:1378168832  NOTICE:  (VDPAU) Didnt find a Video Surface Available (Total: 4). Creating a new one. TRY #1
19:10:53 T:3077945232 M:1375342592  NOTICE: Using GL_TEXTURE_2D
19:10:53 T:3077945232 M:1375342592  NOTICE: GL: Using VDPAU render method
19:10:53 T:3077945232 M:1375342592  NOTICE: GL: NPOT texture support detected
19:10:55 T:3077945232 M:1372049408  NOTICE: Created m_glPixmapTexture (77)
19:10:55 T:80214896 M:1384112128  NOTICE: -->Python Interpreter Initialized<--
19:10:58 T:2962865008 M:1387823104  NOTICE:  fps: 23.976025, pwidth: 1280, pheight: 720, dwidth: 1280, dheight: 720
19:10:58 T:2962865008 M:1387823104  NOTICE: Display resolution DESKTOP : 1920x1080 @ 60.00 - Full Screen (12)
19:10:58 T:3077945232 M:1387823104  NOTICE: Using GL_TEXTURE_2D
19:10:58 T:3077945232 M:1387823104  NOTICE: GL: Using VDPAU render method
19:10:58 T:3077945232 M:1387823104  NOTICE: GL: NPOT texture support detected

Guess that was it, video is flowing naturally now

Thanks to everyone for your input.
Reply

Logout Mark Read Team Forum Stats Members Help
[LIVE] Matroska files do not perform properly0