Linux DTS-HD MA HDMI bitstream discontinuities with 23,976fps videos
#16
Get a proper Xorg.conf with modelines for 23,976Hz like in my Xorg.conf

http://pastebin.com/Pyc2CGuC

Important are Modelines and the settings for Vert. Refresh and Sync...
ASRock Beebox J3160 4GB RAM 120GB SATA SSD - Harmony Elite BT
Intel NUC Kit DN2820FYKH 4GB RAM 120GB SATA SSD - Harmony Smart Control BT
all @ Libreelec Testbuild
HP N54L @ Ubuntu 14.04.4 Minimal Server / MySQL DB
HP N40L @ Ubuntu 14.04.4 Minimal Server
Reply
#17
It might be madness, but have you tried setting streamsilence to 1 ?
Reply
#18
(2013-05-12, 14:11)wapcaplet Wrote: I have the same issue running 12.2 with a nvidia 220.

did noeikujoo find a solution?
As I recall, I found, but I do not remember what actually was the solution, since I have sold my previous HTPC. Sad Nowadays I have a Xtreamer Ultra Mini-ITX HTPC, which I installed everything from scratch. I copied some configuration files from the old HTPC. HD audio bitstreams seems to work fine without discontinuities via HDMI.

Here is my current xorg.conf:
Code:
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 304.43  (buildmeister@swio-display-x86-rhel47-13)  Sun Aug 19 21:19:28 PDT 2012

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    HorizSync       28.0 - 33.0
    VertRefresh     43.0 - 72.0
    Option         "DPMS"
    # 1920x1080p @ 23.976Hz (EIA/CEA-861B)
    ModeLine "1920x1080_23.976" 74.175 1920 2558 2602 2750 1080 1084 1089 1125 +hsync +vsync
    ModeLine "1920x1080_24"     74.250 1920 2558 2602 2750 1080 1084 1089 1125 +hsync +vsync
    # Remove # from below to use
    #Modeline "1920x1080_25"    74.25  1920 2448 2492 2640 1080 1084 1089 1125 +hsync +vsync
    #Modeline "1920x1080_60"    148.35 1920 2008 2052 2200 1080 1084 1089 1125 -hsync +vsync
    Option          "DPI" "96 x 96"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    Option         "NoLogo"                "true"
    Option         "DynamicTwinView"       "false"
    Option         "NoFlip"                "false"
    Option         "ConnectToAcpid"        "0"
    Option         "ModeValidation"        "NoVesaModes, NoXServerModes"
    Option         "ModeDebug"             "true"
    Option         "HWCursor"              "false"
    Option         "SWCursor"              "false"
    Option         "RenderAccel"           "1"
    Option         "UseEdidDpi"        "false"
    Option         "DPI"                   "96 x 96"

EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "TripleBuffer" "True"
    Option         "UseEvents" "True"
    Option         "ColorRange" "Limited"
    Option         "ColorSpace" "RGB"
    Option         "DynamicTwinView" "false"
    #Option        "FlatPanelProperties" "Scaling = Native"
    Option         "ModeValidation" "NoVesaModes, NoXServerModes"
    Option         "ExactModeTimingsDVI" "True"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Extensions"
    Option               "Composite" "Disable"
EndSection
Reply
#19
Didn't have much luck last night the problem still exists. I added the settings suggested one at a time to try and isolate a fix.

I haven't tried streamsilence I will try that tonight.


this is my current xorg.conf file.

Code:
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 304.88  (buildmeister@swio-display-x86-rhel47-06)  Wed Mar 27 15:32:58 PDT 2013

# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 304.88  (buildd@allspice)  Tue Apr  9 12:16:11 UTC 2013

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
    Option         "Xinerama" "0"
EndSection

Section "Files"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"

    # HorizSync source: edid, VertRefresh source: edid
   #Modeline       "1920x1080_50" 148.50 1920 2448 2492 2640 1080 1084 1089 1125 +hsync +vsync
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Pioneer Electronic Corporation VSX-1019AH"
    HorizSync      26-81
    VertRefresh    23-75
    ModeLine       "1920x1080_24_0" 74.250 1920 2558 2602 2750 1080 1084 1089 1125 +hsync +vsync
    ModeLine       "1920x1080_23.976" 74.230 1920 2560 2604 2752 1080 1084 1089 1125 +hsync +vsync
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GT 220"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "metamodes" "nvidia-auto-select +0+0"
    SubSection     "Display"
        Depth       24
        Modes      "1920x1080_50" "1920x1080_50i" "1920x1080_60" "1920x1080_60i" "1920x1080_60_0" "1920x1080_24" "1920x1080_23.976" "1920x1080_24_0"
        Option         "VertRefresh" "DFP-1: 23-75"
        Option         "HorizSync" "DFP-1: 26-81"
    EndSubSection
EndSection
Reply
#20
(2012-12-31, 14:04)noeikujoo Wrote: I was a little surprised, because I have understand that HD audio bitstreaming should not work with Nvidia GeForce GT220 card.

This is one of those internet half-truths propagated by one guy somewhere not getting his bitstreaming to work.
Reply
#21
(2013-05-14, 07:18)negge Wrote: This is one of those internet half-truths propagated by one guy somewhere not getting his bitstreaming to work.
You are right about that. Some things are worth a try and not trust what is written on the internet. Reliable information is sometimes hard to find on the internet because the manufacturers website is not always being told directly what kind of audio bitstreaming the device supports.
Reply
#22
this is the output of xbmc-xrandr whilst playing back a bluray that has the audio problem

does this mean my modelines are not being picked up correctly?

Code:
$ DISPLAY=:0 /usr/lib/xbmc/xbmc-xrandr
<screen id="0" minimum_w="8" minimum_h="8" current_w="1920" current_h="1080" maximum_w="8192" maximum_h="8192">
  <output name="DVI-I-0" connected="false">
  </output>
  <output name="VGA-0" connected="false">
  </output>
  <output name="DVI-I-1" connected="false">
  </output>
  <output name="HDMI-0" connected="true" w="1920" h="1080" x="0" y="0" wmm="160" hmm="90">
    <mode id="0x24f" name="1920x1080" w="1920" h="1080" hz="60.00000" current="true" preferred="true"/>
    <mode id="0x250" name="1920x1080" w="1920" h="1080" hz="59.93939" current="false" preferred="false"/>
    <mode id="0x251" name="1920x1080" w="1920" h="1080" hz="50.00000" current="false" preferred="false"/>
    <mode id="0x252" name="1920x1080" w="1920" h="1080" hz="29.97172" current="false" preferred="false"/>
    <mode id="0x253" name="1920x1080" w="1920" h="1080" hz="25.00000" current="false" preferred="false"/>
    <mode id="0x254" name="1920x1080" w="1920" h="1080" hz="23.97091" current="false" preferred="false"/>
    <mode id="0x255" name="1920x1080" w="1920" h="1080" hz="29.99838" current="false" preferred="false"/>
    <mode id="0x256" name="1920x1080" w="1920" h="1080" hz="25.02224" current="false" preferred="false"/>
    <mode id="0x257" name="1680x1050" w="1680" h="1050" hz="59.95425" current="false" preferred="false"/>
    <mode id="0x258" name="1600x1200" w="1600" h="1200" hz="60.00000" current="false" preferred="false"/>
    <mode id="0x259" name="1440x900" w="1440" h="900" hz="74.98443" current="false" preferred="false"/>
    <mode id="0x25a" name="1440x900" w="1440" h="900" hz="59.88745" current="false" preferred="false"/>
    <mode id="0x25b" name="1280x1024" w="1280" h="1024" hz="75.02467" current="false" preferred="false"/>
    <mode id="0x25c" name="1280x1024" w="1280" h="1024" hz="60.01974" current="false" preferred="false"/>
    <mode id="0x25d" name="1280x960" w="1280" h="960" hz="60.00000" current="false" preferred="false"/>
    <mode id="0x25e" name="1280x800" w="1280" h="800" hz="59.81033" current="false" preferred="false"/>
    <mode id="0x25f" name="1280x720" w="1280" h="720" hz="59.94343" current="false" preferred="false"/>
    <mode id="0x260" name="1280x720" w="1280" h="720" hz="50.00000" current="false" preferred="false"/>
    <mode id="0x261" name="1152x864" w="1152" h="864" hz="75.00000" current="false" preferred="false"/>
    <mode id="0x262" name="1024x768" w="1024" h="768" hz="75.02858" current="false" preferred="false"/>
    <mode id="0x263" name="1024x768" w="1024" h="768" hz="70.06936" current="false" preferred="false"/>
    <mode id="0x264" name="1024x768" w="1024" h="768" hz="60.00384" current="false" preferred="false"/>
    <mode id="0x265" name="800x600" w="800" h="600" hz="75.00000" current="false" preferred="false"/>
    <mode id="0x266" name="800x600" w="800" h="600" hz="72.18757" current="false" preferred="false"/>
    <mode id="0x267" name="800x600" w="800" h="600" hz="60.31654" current="false" preferred="false"/>
    <mode id="0x268" name="720x576" w="720" h="576" hz="50.00000" current="false" preferred="false"/>
    <mode id="0x269" name="720x480" w="720" h="480" hz="59.94006" current="false" preferred="false"/>
    <mode id="0x26a" name="640x480" w="640" h="480" hz="75.00000" current="false" preferred="false"/>
    <mode id="0x26b" name="640x480" w="640" h="480" hz="72.80880" current="false" preferred="false"/>
    <mode id="0x26c" name="640x480" w="640" h="480" hz="59.94048" current="false" preferred="false"/>
    <mode id="0x26d" name="480x576" w="480" h="576" hz="50.00000" current="false" preferred="false"/>
    <mode id="0x26e" name="480x480" w="480" h="480" hz="59.94006" current="false" preferred="false"/>
    <mode id="0x26f" name="411x576" w="411" h="576" hz="50.07059" current="false" preferred="false"/>
    <mode id="0x270" name="411x480" w="411" h="480" hz="59.97279" current="false" preferred="false"/>
  </output>
</screen>
Reply
#23
yes. the video is playes at 60Hz... in your xorg.conf your options are for DFP-1 wich is Device 1 but you are using DFP-0 wich is Device 0. Change this and try again.
ASRock Beebox J3160 4GB RAM 120GB SATA SSD - Harmony Elite BT
Intel NUC Kit DN2820FYKH 4GB RAM 120GB SATA SSD - Harmony Smart Control BT
all @ Libreelec Testbuild
HP N54L @ Ubuntu 14.04.4 Minimal Server / MySQL DB
HP N40L @ Ubuntu 14.04.4 Minimal Server
Reply
#24
Hi John,

So when I start playing back a video at a different frame rate, should I see a change to "current" mode?
Reply
#25
(2013-05-14, 08:17)noeikujoo Wrote:
(2013-05-14, 07:18)negge Wrote: This is one of those internet half-truths propagated by one guy somewhere not getting his bitstreaming to work.
You are right about that. Some things are worth a try and not trust what is written on the internet. Reliable information is sometimes hard to find on the internet because the manufacturers website is not always being told directly what kind of audio bitstreaming the device supports.
Having said that it is not only quite difficult to ascertain which cards support which formats, but also manufacturers can affect that by bad implementations.
If I have helped you or increased your knowledge, click the 'thumbs up' button to give thanks :) (People with less than 20 posts won't see the "thumbs up" button.)
Reply
#26
(2013-05-15, 04:47)wapcaplet Wrote: Hi John,

So when I start playing back a video at a different frame rate, should I see a change to "current" mode?

yes.... a 23,976Hz File should use the 23,976 Hz Mode. As i said, your xrandr output says that you are using dfp-0 and your xorg.conf options are for dfp-1 so the dont aply to the device that you are using.
ASRock Beebox J3160 4GB RAM 120GB SATA SSD - Harmony Elite BT
Intel NUC Kit DN2820FYKH 4GB RAM 120GB SATA SSD - Harmony Smart Control BT
all @ Libreelec Testbuild
HP N54L @ Ubuntu 14.04.4 Minimal Server / MySQL DB
HP N40L @ Ubuntu 14.04.4 Minimal Server
Reply
#27
I have same problem as the OP on DTS-HD material too.

Proper modelines, tried streamslinece=1 and various other nonsense.

Fairly certain this is a general bug in XBMC/AE

1. The odd glitch in audio momentarily.
2. The odd 2-3 seconds where audio drops out completely then returns.
3. Happens every 10-12 minutes or so,

Seems to be a common problem on more than a few posts with DTS-HD material.
Reply
#28
(2013-05-16, 11:42)robo989 Wrote: Seems to be a common problem on more than a few posts with DTS-HD material.
You realise that as long as everyone keeps not uploading debug logs as you do, we will not be able to find the cause.
One of the problems is that it is hard to reproduce. My systems bitstream DTS-HD MA fine because I have set them up properly .
Reply
#29
(2013-05-16, 11:45)Kibje Wrote:
(2013-05-16, 11:42)robo989 Wrote: Seems to be a common problem on more than a few posts with DTS-HD material.
You realise that as long as everyone keeps not uploading debug logs as you do, we will not be able to find the cause.
One of the problems is that it is hard to reproduce. My systems bitstream DTS-HD MA fine because I have set them up properly .

I appreciate the response, thanks.

Please could you list the settings that need to be changed to enable proper playback without skipping/dropouts?

I will get round to uploading a log at some point tonight or tomorrow, my apologies for the blunt tone previously but I thought this was basically a known issue.
Reply
#30
Hi John,

So I finally got around to do a bit more testing.

I dropped in your xorg.conf file and turned on debugging. here is an extract from the debug log. a couple of seconds after the audio drop out I stopped playback.

Code:
21:42:50 T:139902051452672   ERROR: CAESinkALSA::HandleError(snd_pcm_wait) - underrun
21:42:51 T:139900993115904   DEBUG: CDVDPlayerAudio:: Discontinuity2 - was:1405440404.595361, should be:1405429619.557876, error:-10785.037485
21:42:52 T:139900993115904   DEBUG: CDVDPlayerAudio:: Discontinuity1 - was:1405669646.439876, should be:1405568940.844667, error:-100705.595209
21:42:55 T:139902413649792   DEBUG: Keyboard: scancode: 88, sym: 00b2, unicode: 0000, modifier: 0
21:42:55 T:139902413649792   DEBUG: OnKey: stop (f0bc) pressed, action is Stop

I also checked the output of xbmc-xrandr and it was still at 60Hz

I hope this can be of some assistance.
Reply

Logout Mark Read Team Forum Stats Members Help
DTS-HD MA HDMI bitstream discontinuities with 23,976fps videos0