Linux DTS-HD MA HDMI bitstream discontinuities with 23,976fps videos
#31
Get me:
DISPLAY =:0 /usr/lib/xbmc/xbmc-xrandr | pastebinit

and of course you have to turn on "Video -> Playback -> Adjust Refreshrate to match video".

And don't cut logfiles ...
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#32
so turning on "adjust display refresh rate to match video" to On start/stop or Always seems to select the correct modeline. unfortunately the audio dropouts are still present.

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="1020" hmm="570">
    <mode id="0x1c7" name="1920x1080" w="1920" h="1080" hz="60.00000" current="false" preferred="true"/>
    <mode id="0x1c8" name="1920x1080" w="1920" h="1080" hz="24.00000" current="false" preferred="false"/>
    <mode id="0x1c9" name="1920x1080" w="1920" h="1080" hz="23.97610" current="true" preferred="false"/>
    <mode id="0x1ca" name="1920x1080" w="1920" h="1080" hz="59.93939" current="false" preferred="false"/>
    <mode id="0x1cb" name="1920x1080" w="1920" h="1080" hz="50.00000" current="false" preferred="false"/>
    <mode id="0x1cc" name="1920x1080" w="1920" h="1080" hz="29.97172" current="false" preferred="false"/>
    <mode id="0x1cd" name="1920x1080" w="1920" h="1080" hz="25.00000" current="false" preferred="false"/>
    <mode id="0x1ce" name="1920x1080" w="1920" h="1080" hz="23.97091" current="false" preferred="false"/>
    <mode id="0x1cf" name="1920x1080" w="1920" h="1080" hz="29.99838" current="false" preferred="false"/>
    <mode id="0x1d0" name="1920x1080" w="1920" h="1080" hz="25.02224" current="false" preferred="false"/>
    <mode id="0x1d1" name="1680x1050" w="1680" h="1050" hz="59.95425" current="false" preferred="false"/>
    <mode id="0x1d2" name="1600x1200" w="1600" h="1200" hz="60.00000" current="false" preferred="false"/>
    <mode id="0x1d3" name="1440x900" w="1440" h="900" hz="74.98443" current="false" preferred="false"/>
    <mode id="0x1d4" name="1440x900" w="1440" h="900" hz="59.88745" current="false" preferred="false"/>
    <mode id="0x1d5" name="1280x1024" w="1280" h="1024" hz="75.02467" current="false" preferred="false"/>
    <mode id="0x1d6" name="1280x1024" w="1280" h="1024" hz="60.01974" current="false" preferred="false"/>
    <mode id="0x1d7" name="1280x960" w="1280" h="960" hz="60.00000" current="false" preferred="false"/>
    <mode id="0x1d8" name="1280x800" w="1280" h="800" hz="59.81033" current="false" preferred="false"/>
    <mode id="0x1d9" name="1280x720" w="1280" h="720" hz="59.94343" current="false" preferred="false"/>
    <mode id="0x1da" name="1280x720" w="1280" h="720" hz="50.00000" current="false" preferred="false"/>
    <mode id="0x1db" name="1152x864" w="1152" h="864" hz="75.00000" current="false" preferred="false"/>
    <mode id="0x1dc" name="1024x768" w="1024" h="768" hz="75.02858" current="false" preferred="false"/>
    <mode id="0x1dd" name="1024x768" w="1024" h="768" hz="70.06936" current="false" preferred="false"/>
    <mode id="0x1de" name="1024x768" w="1024" h="768" hz="60.00384" current="false" preferred="false"/>
    <mode id="0x1df" name="800x600" w="800" h="600" hz="75.00000" current="false" preferred="false"/>
    <mode id="0x1e0" name="800x600" w="800" h="600" hz="72.18757" current="false" preferred="false"/>
    <mode id="0x1e1" name="800x600" w="800" h="600" hz="60.31654" current="false" preferred="false"/>
    <mode id="0x1e2" name="720x576" w="720" h="576" hz="50.00000" current="false" preferred="false"/>
    <mode id="0x1e3" name="720x480" w="720" h="480" hz="59.94006" current="false" preferred="false"/>
    <mode id="0x1e4" name="640x480" w="640" h="480" hz="75.00000" current="false" preferred="false"/>
    <mode id="0x1e5" name="640x480" w="640" h="480" hz="72.80880" current="false" preferred="false"/>
    <mode id="0x1e6" name="640x480" w="640" h="480" hz="59.94048" current="false" preferred="false"/>
    <mode id="0x1e7" name="480x576" w="480" h="576" hz="50.00000" current="false" preferred="false"/>
    <mode id="0x1e8" name="480x480" w="480" h="480" hz="59.94006" current="false" preferred="false"/>
    <mode id="0x1e9" name="411x576" w="411" h="576" hz="50.07059" current="false" preferred="false"/>
    <mode id="0x1ea" name="411x480" w="411" h="480" hz="59.97279" current="false" preferred="false"/>
  </output>
</screen>
Reply
#33
Choose Sync Playback to Display and select "Audio Clock" - just for fun. And provide a full and complete link to a debug log (paste.ubuntu.com).
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#34
adjust display refresh rate to match video: off
sync playback to display: on
a/v sync method: audio clock

http://paste.ubuntu.com/5690153/

audio dropout a couple of seconds before I stopped playback (line 2415)
Reply
#35
Quote:adjust display refresh rate to match video: off
sync playback to display: on
a/v sync method: audio clock

No.

Turn on Adjust Refreshrate to match video again, having 23.976 running at 60hz is just not fine - google pulldown correction.
Your xbmc vdpau installation is quite old - use the frodo version from the wsnipex ppa and retry.
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#36
(2013-05-22, 13:49)wapcaplet Wrote: 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.

Do you only copyd my xorg.conf or changed the display devices to the one you are using?

(2013-05-22, 14:09)wapcaplet Wrote: so turning on "adjust display refresh rate to match video" to On start/stop or Always seems to select the correct modeline. unfortunately the audio dropouts are still present.

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="1020" hmm="570">
    <mode id="0x1c7" name="1920x1080" w="1920" h="1080" hz="60.00000" current="false" preferred="true"/>
    <mode id="0x1c8" name="1920x1080" w="1920" h="1080" hz="24.00000" current="false" preferred="false"/>
    <mode id="0x1c9" name="1920x1080" w="1920" h="1080" hz="23.97610" current="true" preferred="false"/>
    <mode id="0x1ca" name="1920x1080" w="1920" h="1080" hz="59.93939" current="false" preferred="false"/>
    <mode id="0x1cb" name="1920x1080" w="1920" h="1080" hz="50.00000" current="false" preferred="false"/>
    <mode id="0x1cc" name="1920x1080" w="1920" h="1080" hz="29.97172" current="false" preferred="false"/>
    <mode id="0x1cd" name="1920x1080" w="1920" h="1080" hz="25.00000" current="false" preferred="false"/>
    <mode id="0x1ce" name="1920x1080" w="1920" h="1080" hz="23.97091" current="false" preferred="false"/>
    <mode id="0x1cf" name="1920x1080" w="1920" h="1080" hz="29.99838" current="false" preferred="false"/>
    <mode id="0x1d0" name="1920x1080" w="1920" h="1080" hz="25.02224" current="false" preferred="false"/>
    <mode id="0x1d1" name="1680x1050" w="1680" h="1050" hz="59.95425" current="false" preferred="false"/>
    <mode id="0x1d2" name="1600x1200" w="1600" h="1200" hz="60.00000" current="false" preferred="false"/>
    <mode id="0x1d3" name="1440x900" w="1440" h="900" hz="74.98443" current="false" preferred="false"/>
    <mode id="0x1d4" name="1440x900" w="1440" h="900" hz="59.88745" current="false" preferred="false"/>
    <mode id="0x1d5" name="1280x1024" w="1280" h="1024" hz="75.02467" current="false" preferred="false"/>
    <mode id="0x1d6" name="1280x1024" w="1280" h="1024" hz="60.01974" current="false" preferred="false"/>
    <mode id="0x1d7" name="1280x960" w="1280" h="960" hz="60.00000" current="false" preferred="false"/>
    <mode id="0x1d8" name="1280x800" w="1280" h="800" hz="59.81033" current="false" preferred="false"/>
    <mode id="0x1d9" name="1280x720" w="1280" h="720" hz="59.94343" current="false" preferred="false"/>
    <mode id="0x1da" name="1280x720" w="1280" h="720" hz="50.00000" current="false" preferred="false"/>
    <mode id="0x1db" name="1152x864" w="1152" h="864" hz="75.00000" current="false" preferred="false"/>
    <mode id="0x1dc" name="1024x768" w="1024" h="768" hz="75.02858" current="false" preferred="false"/>
    <mode id="0x1dd" name="1024x768" w="1024" h="768" hz="70.06936" current="false" preferred="false"/>
    <mode id="0x1de" name="1024x768" w="1024" h="768" hz="60.00384" current="false" preferred="false"/>
    <mode id="0x1df" name="800x600" w="800" h="600" hz="75.00000" current="false" preferred="false"/>
    <mode id="0x1e0" name="800x600" w="800" h="600" hz="72.18757" current="false" preferred="false"/>
    <mode id="0x1e1" name="800x600" w="800" h="600" hz="60.31654" current="false" preferred="false"/>
    <mode id="0x1e2" name="720x576" w="720" h="576" hz="50.00000" current="false" preferred="false"/>
    <mode id="0x1e3" name="720x480" w="720" h="480" hz="59.94006" current="false" preferred="false"/>
    <mode id="0x1e4" name="640x480" w="640" h="480" hz="75.00000" current="false" preferred="false"/>
    <mode id="0x1e5" name="640x480" w="640" h="480" hz="72.80880" current="false" preferred="false"/>
    <mode id="0x1e6" name="640x480" w="640" h="480" hz="59.94048" current="false" preferred="false"/>
    <mode id="0x1e7" name="480x576" w="480" h="576" hz="50.00000" current="false" preferred="false"/>
    <mode id="0x1e8" name="480x480" w="480" h="480" hz="59.94006" current="false" preferred="false"/>
    <mode id="0x1e9" name="411x576" w="411" h="576" hz="50.07059" current="false" preferred="false"/>
    <mode id="0x1ea" name="411x480" w="411" h="480" hz="59.97279" current="false" preferred="false"/>
  </output>
</screen>

Still no 23,976 mode used...

PLEASE check your xorg.conf (correct Display devices). In your case it is DFP-0 but i mentioned this before... you cannot just copy my xorg.conf becaus in my case it is DFP-1 and not DFP-0

And update your xbmc version...
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
#37
I had planned to get 3 sets of logs for each combination of audio sync and refresh rate setting. But I ended up going to bed instead Smile

the only time the 23,967 mode was active was when I had the refresh rate setting turned on. Even the TV changed modes.

Interesting note about my vdpau version. I will try find some time to look into that tonight.

I appreciate your help guys.
Reply
#38
(2013-05-22, 18:59)john.cord Wrote:
(2013-05-22, 13:49)wapcaplet Wrote: 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.

Do you only copyd my xorg.conf or changed the display devices to the one you are using?

(2013-05-22, 14:09)wapcaplet Wrote: so turning on "adjust display refresh rate to match video" to On start/stop or Always seems to select the correct modeline. unfortunately the audio dropouts are still present.

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="1020" hmm="570">
    <mode id="0x1c7" name="1920x1080" w="1920" h="1080" hz="60.00000" current="false" preferred="true"/>
    <mode id="0x1c8" name="1920x1080" w="1920" h="1080" hz="24.00000" current="false" preferred="false"/>
    <mode id="0x1c9" name="1920x1080" w="1920" h="1080" hz="23.97610" current="true" preferred="false"/>
    <mode id="0x1ca" name="1920x1080" w="1920" h="1080" hz="59.93939" current="false" preferred="false"/>
    <mode id="0x1cb" name="1920x1080" w="1920" h="1080" hz="50.00000" current="false" preferred="false"/>
    <mode id="0x1cc" name="1920x1080" w="1920" h="1080" hz="29.97172" current="false" preferred="false"/>
    <mode id="0x1cd" name="1920x1080" w="1920" h="1080" hz="25.00000" current="false" preferred="false"/>
    <mode id="0x1ce" name="1920x1080" w="1920" h="1080" hz="23.97091" current="false" preferred="false"/>
    <mode id="0x1cf" name="1920x1080" w="1920" h="1080" hz="29.99838" current="false" preferred="false"/>
    <mode id="0x1d0" name="1920x1080" w="1920" h="1080" hz="25.02224" current="false" preferred="false"/>
    <mode id="0x1d1" name="1680x1050" w="1680" h="1050" hz="59.95425" current="false" preferred="false"/>
    <mode id="0x1d2" name="1600x1200" w="1600" h="1200" hz="60.00000" current="false" preferred="false"/>
    <mode id="0x1d3" name="1440x900" w="1440" h="900" hz="74.98443" current="false" preferred="false"/>
    <mode id="0x1d4" name="1440x900" w="1440" h="900" hz="59.88745" current="false" preferred="false"/>
    <mode id="0x1d5" name="1280x1024" w="1280" h="1024" hz="75.02467" current="false" preferred="false"/>
    <mode id="0x1d6" name="1280x1024" w="1280" h="1024" hz="60.01974" current="false" preferred="false"/>
    <mode id="0x1d7" name="1280x960" w="1280" h="960" hz="60.00000" current="false" preferred="false"/>
    <mode id="0x1d8" name="1280x800" w="1280" h="800" hz="59.81033" current="false" preferred="false"/>
    <mode id="0x1d9" name="1280x720" w="1280" h="720" hz="59.94343" current="false" preferred="false"/>
    <mode id="0x1da" name="1280x720" w="1280" h="720" hz="50.00000" current="false" preferred="false"/>
    <mode id="0x1db" name="1152x864" w="1152" h="864" hz="75.00000" current="false" preferred="false"/>
    <mode id="0x1dc" name="1024x768" w="1024" h="768" hz="75.02858" current="false" preferred="false"/>
    <mode id="0x1dd" name="1024x768" w="1024" h="768" hz="70.06936" current="false" preferred="false"/>
    <mode id="0x1de" name="1024x768" w="1024" h="768" hz="60.00384" current="false" preferred="false"/>
    <mode id="0x1df" name="800x600" w="800" h="600" hz="75.00000" current="false" preferred="false"/>
    <mode id="0x1e0" name="800x600" w="800" h="600" hz="72.18757" current="false" preferred="false"/>
    <mode id="0x1e1" name="800x600" w="800" h="600" hz="60.31654" current="false" preferred="false"/>
    <mode id="0x1e2" name="720x576" w="720" h="576" hz="50.00000" current="false" preferred="false"/>
    <mode id="0x1e3" name="720x480" w="720" h="480" hz="59.94006" current="false" preferred="false"/>
    <mode id="0x1e4" name="640x480" w="640" h="480" hz="75.00000" current="false" preferred="false"/>
    <mode id="0x1e5" name="640x480" w="640" h="480" hz="72.80880" current="false" preferred="false"/>
    <mode id="0x1e6" name="640x480" w="640" h="480" hz="59.94048" current="false" preferred="false"/>
    <mode id="0x1e7" name="480x576" w="480" h="576" hz="50.00000" current="false" preferred="false"/>
    <mode id="0x1e8" name="480x480" w="480" h="480" hz="59.94006" current="false" preferred="false"/>
    <mode id="0x1e9" name="411x576" w="411" h="576" hz="50.07059" current="false" preferred="false"/>
    <mode id="0x1ea" name="411x480" w="411" h="480" hz="59.97279" current="false" preferred="false"/>
  </output>
</screen>

Still no 23,976 mode used...

PLEASE check your xorg.conf (correct Display devices). In your case it is DFP-0 but i mentioned this before... you cannot just copy my xorg.conf becaus in my case it is DFP-1 and not DFP-0

And update your xbmc version...

Hi John,

I did do a direct copy of your xorg.conf. So I didn't check the DFP-0/1.

So I thought this line that came out did mean it was at 23,976

Code:
<mode id="0x1c9" name="1920x1080" w="1920" h="1080" hz="23.97610" current="true" preferred="false"/>
Reply
#39
So turns out the config i was using was using DFP-0.

at the moment i'm in the middle of installing from wsnipex. So I'll see how that goes
Reply
#40
(2013-05-23, 05:27)wapcaplet Wrote: Hi John,

I did do a direct copy of your xorg.conf. So I didn't check the DFP-0/1.

So I thought this line that came out did mean it was at 23,976

Code:
<mode id="0x1c9" name="1920x1080" w="1920" h="1080" hz="23.97610" current="true" preferred="false"/>

oh sry, my fault... yes that means that the 23,976 modeline is active.
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
#41
just a quick update,

I had to leave DTS-MA disabled for the moment, even after having the correct refresh rate running and using the updated wsnipex build I was still getting the audio glitch.

When I get a chance I might do a fresh xbmcbuntu install (my current system has been an ongoing upgrade since version 10 or something). And see how that goes.
Reply
#42
During the last days some significant changes concerning Audio Engine were pushed to master. We now have correct buffert, transcoding, output times - so Delay is calced correctly. Additionally Renderbuffering has been merged. Backup your profile and see if the nightlies improve it.
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply

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