Kodi Community Forum
60-second hiccup SOLVED? Yes, the operation was a success but the patient died! - 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: Linux (https://forum.kodi.tv/forumdisplay.php?fid=52)
+---- Thread: 60-second hiccup SOLVED? Yes, the operation was a success but the patient died! (/showthread.php?tid=136832)

Pages: 1 2 3 4 5


60-second hiccup SOLVED? Yes, the operation was a success but the patient died! - dsrl - 2012-07-25

I have been testing Eden on an HTPC and I like it. Kudos to the XBMC team -- Eden works so much better for me than Dharma did.

I have one problem with XMBCbuntu. I hope you can help.

DVD playback has a short pause every 60 seconds. The pause is very short and is very hard or impossible to see in some scenes. If there is smooth movement, however, even my wife can see it.

I tried turning on each and both of the following two video playback settings:
  • Adjust display refresh rate to match video
  • Sync playback to display
No combination of settings has helped.

The problem exists for playback of discs in a local drive and ripped DVDs that are stored on a local HDD.

I tried Eden under Windows 7 (64-bit) on the same HTPC. The problem does not exist. Playback is very smooth with no jumps or hiccups.




RE: 60-second hiccup - FernetMenta - 2012-07-25

Could you please provide a debug log.


RE: 60-second hiccup - dsrl - 2012-07-25

(2012-07-25, 08:15)FernetMenta Wrote: Could you please provide a debug log.

The log for playing a disc is here: http://xbmclogs.com/show.php?id=5576


RE: 60-second hiccup - FernetMenta - 2012-07-25

You were playing a video with fps 59.94 but display operated at 60Hz. That would result in the problem you have described. For some reason it does not switch. I suppose your TV supports it because you said it works using Windows.
Execute xbmc-xrandr. It will list all available modes. Maybe the driver has problems with EDID and you need to manually add this mode.


RE: 60-second hiccup - dsrl - 2012-07-25

(2012-07-25, 15:22)FernetMenta Wrote: You were playing a video with fps 59.94 but display operated at 60Hz. That would result in the problem you have described. For some reason it does not switch. I suppose your TV supports it because you said it works using Windows.
Execute xbmc-xrandr. It will list all available modes. Maybe the driver has problems with EDID and you need to manually add this mode.

Thanks for the reply.

With the rates you mentioned, I would have expected to see a hiccup about every 16 seconds (or maybe 32 seconds for 2 frames = 1 field) instead of 60 seconds. I have much to learn.

I ran xrandr and it showed the following for the current resolution (1920 x 1080): 60.0*+ 60.0

For what it may be worth, I switched to Windows 7 and took a log while playing the same disc. The log is here: http://xbmclogs.com/show.php?id=5588

Sorry, I am over my head here. I do not understand what I should do next to fix the XBMCbuntu system.

I do not currently have "Adjust display refresh rate to match video" enabled. Should I change that? I enabled it before and it did not seem to make any difference.

Do I need to edit a configuration file? If so, can you point me to some explanation of what to do?


RE: 60-second hiccup - FernetMenta - 2012-07-25

Quote:I would have expected to see a hiccup about every 16 seconds

Yeah, I did this little math too and was wondering Smile

But this is from your log running Windows. It has set 59.94 to the primary mode. Hence there is a better match.

Code:
19:09:17 T:2632   DEBUG: CAudioContext::RemoveActiveDevice - Removing device 2
19:09:17 T:3772  NOTICE:  fps: 59.940060, pwidth: 720, pheight: 480, dwidth: 853, dheight: 480
19:09:17 T:3772   DEBUG: CDVDPlayerVideo::OutputPicture - change configuration. 720x480. framerate: 59.94. format: YV12
19:09:17 T:3772  NOTICE: Display resolution DESKTOP : 1920x1080 @ 59.94 - Full Screen (12)
[/quote]

You should have enabled "Adjust display refresh rate to match video"

xbmc-xrandr should be in the same folder as xbmc.bin. Run this and it will tell you all available modes. Modes can be added in xorg.conf or dynamically using xrandr.


RE: 60-second hiccup - Jan0sh - 2012-07-25

Maybee its youre dvd drive/ dvd which hics up?


RE: 60-second hiccup - dsrl - 2012-07-26

(2012-07-25, 23:03)Jan0sh Wrote: Maybee its youre dvd drive/ dvd which hics up?

Thank you for the thought. The problem also occurs for DVDs ripped to the hard drive.


RE: 60-second hiccup - dsrl - 2012-07-26

(2012-07-25, 22:35)FernetMenta Wrote: xbmc-xrandr should be in the same folder as xbmc.bin. Run this and it will tell you all available modes. Modes can be added in xorg.conf or dynamically using xrandr.

I cannot execute xbmc-xrandr. I opened a terminal window and navigated to the directory where xbmc.bin and xbmc-xrandr are stored, entered "xbmc-xrandr" and received "command not found." I tried executing it from the File Manager. Nothing. EDIT: I could execute xbmc.

EDIT: Perhaps my logon does not have execute authority? I tried "sudo xbmc-xrandr", which prompted me for the password and then ... "command not found."

I returned to Windows7 and installed/ran a program to read EDID information.

This is a portion of what I got:

Code:
Established Timings :     
     800 x  600 @ 60Hz (VESA)
     640 x  480 @ 75Hz (VESA)
     640 x  480 @ 60Hz (IBM, VGA)
     720 x  400 @ 70Hz (IBM, VGA)
    1280 x 1024 @ 75Hz (VESA)
    1024 x  768 @ 75Hz (VESA)
    1024 x  768 @ 70Hz (VESA)
    1024 x  768 @ 60Hz (VESA)
     800 x  600 @ 75Hz (VESA)
     800 x  600 @ 72Hz (VESA)

Preferred Detailed Timing:
    Pixel Clock :                  148.5 Mhz

    Horizontal Active :            1920 pixels
    Horizontal Blanking :          280 pixels
    Horizontal Sync Offset :       88 pixels
    Horizontal Sync Pulse Width :  44 pixels
    Horizontal Border :            0 pixels
    Horizontal Size :              698 mm

    Vertical Active :              1080 lines
    Vertical Blanking :            45 lines
    Vertical Sync Offset :         4 lines
    Vertical Sync Pulse Width :    5 lines
    Vertical Border :              0 lines
    Vertical Size :                393 mm

    Input Type :                   Digital Separate
    Interlaced :                   False
    VerticalPolarity :             True
    HorizontalPolarity :           True

Monitor Range Limit:
    Maximum Vertical Frequency :   77 Hz
    Minimum Vertical Frequency :   50 Hz
    Maximum Horizontal Frequency : 70 KHz
    Minimum Horizontal Frequency : 31 KHz
    Maximum Pixel Clock :          150 MHz

There is no entry for 59.94 Hz.




RE: 60-second hiccup - wsnipex - 2012-07-26

/usr/lib/xbmc/xbmc-xrandr

thats if you installed as package. Otherwise go to the dir where it resides and tpye ./xbmc-xrandr


RE: 60-second hiccup - dsrl - 2012-07-26

(2012-07-26, 09:19)wsnipex Wrote: /usr/lib/xbmc/xbmc-xrandr

thats if you installed as package. Otherwise go to the dir where it resides and tpye ./xbmc-xrandr

Thank you. Just before you posted I discovered I had to enter the full path name of the file even though I had navigated to that directory.

I now have the xbmc-xrandr output. I do not see any entry for 59.94 Hz. What is next?

Code:
<screen id="0" minimum_w="320" minimum_h="200" current_w="1920" current_h="1080" maximum_w="8192" maximum_h="8192">
  <output name="VGA1" connected="false">
  </output>
  <output name="HDMI1" connected="false">
  </output>
  <output name="DP1" connected="false">
  </output>
  <output name="HDMI2" connected="false">
  </output>
  <output name="HDMI3" connected="true" w="1920" h="1080" x="0" y="0" wmm="698" hmm="393">
    <mode id="0x48" name="1920x1080" w="1920" h="1080" hz="60.00000" current="true" preferred="true"/>
    <mode id="0x49" name="1920x1080" w="1920" h="1080" hz="60.00000" current="false" preferred="false"/>
    <mode id="0x4a" name="1280x1024" w="1280" h="1024" hz="75.02467" current="false" preferred="false"/>
    <mode id="0x4b" name="1024x768" w="1024" h="768" hz="75.07622" current="false" preferred="false"/>
    <mode id="0x4c" name="1024x768" w="1024" h="768" hz="70.06936" current="false" preferred="false"/>
    <mode id="0x4d" name="1024x768" w="1024" h="768" hz="60.00384" current="false" preferred="false"/>
    <mode id="0x4e" name="800x600" w="800" h="600" hz="72.18757" current="false" preferred="false"/>
    <mode id="0x4f" name="800x600" w="800" h="600" hz="75.00000" current="false" preferred="false"/>
    <mode id="0x50" name="800x600" w="800" h="600" hz="60.31654" current="false" preferred="false"/>
    <mode id="0x51" name="640x480" w="640" h="480" hz="75.00000" current="false" preferred="false"/>
    <mode id="0x52" name="640x480" w="640" h="480" hz="60.00000" current="false" preferred="false"/>
    <mode id="0x53" name="720x400" w="720" h="400" hz="70.08166" current="false" preferred="false"/>
  </output>
  <output name="DP2" connected="false">
  </output>
  <output name="DP3" connected="false">
  </output>
</screen>



RE: 60-second hiccup - wsnipex - 2012-07-26

it might be one of the first two. TVs often have wrong(ly labled) EDID info. both are labled 60Hz, but probably are not the same.

try to switch to the 2nd mode:

/usr/lib/xbmc/xbmc-xrandr --output "HDMI3" --mode "0x49"


RE: 60-second hiccup - dsrl - 2012-07-26

(2012-07-26, 09:56)wsnipex Wrote: it might be one of the first two. TVs often have wrong(ly labled) EDID info. both are labled 60Hz, but probably are not the same.

try to switch to the 2nd mode:

/usr/lib/xbmc/xbmc-xrandr --output "HDMI3" --mode "0x49"

Thank you for your suggestions. I switched modes to 0x49 and the problem became worse. The "hiccup" still occurs at almost exactly 60-second intervals. With the first mode (0x48), movement pauses briefly. With the second mode (0x49), it seems like movement actually regresses (jumps backward slightly). Perhaps it just pauses for a longer period of time. The problem is more noticeable in the second mode.

Is there anything else to try? I would really like to use XBMCbuntu (or XBMC with Linux) rather than Windows but this 60-hiccup is really annoying -- I can't ignore it.


RE: 60-second hiccup - FernetMenta - 2012-07-26

Check out this guide. alanwww1 also references a working xorg.conf:
http://forum.xbmc.org/showthread.php?tid=114368&highlight=sandy


RE: 60-second hiccup - dsrl - 2012-07-26

(2012-07-26, 11:08)FernetMenta Wrote: Check out this guide. alanwww1 also references a working xorg.conf:
http://forum.xbmc.org/showthread.php?tid=114368&highlight=sandy

@Fernet,

I am not sure whether you are suggesting I do the Linux install described in the post or just use the xorg.conf file. I decided to try the configuration file.

I downloaded the xorg.conf file, changed "HDMI2" to "HDMI3" and copied it to the /etc/X11 directory. I ran XMBC and it still has the 60-second hiccup. The log is here: http://www.xbmclogs.com/show.php?id=5623

Am I reading the log correctly? It seems like the mode was set to 0x48, then the rate was changed to 59.94 Hz, then the mode was set to 0x4c as the movie starts.