Kodi Community Forum

Full Version: 1-2 second black screen/no audio over hdmi
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hi there,

This happens to me once in a while. It's not during every playback, but it definately happens once a day. During a random moment of playback (think it also happened in the GUI, but I don't spend that much time in the GUI) video blacks out (HDMI connection). If I use HDMI to play audio as well, it will also drop audio for the same time. If I use the analog audio out: audio continues playing. Now, once the screen comes back after the 1-2 second blackout, it will not have stalled or anything. So it seems like xbmc has no problem playing videos, but somewhere the connection gets lost, but only temporary. After the short blackout it plays fine again.

debug log of when such a blackout occurred:
http://paste.ubuntu.com/5862279/

It occurred just before I pressed the left button. (to check if the video was faulty - it wasn't). As you can see from the log, nothing is logged that indicates an error from xbmc around the 16-17 minute mark:
Code:
19:17:21 T:140329616656256   DEBUG: OnKey: left (f082) pressed, action is StepBack

File info:
Code:
INFO: ffmpeg[A7FFF700]: Input #0, matroska,webm,
INFO: ffmpeg[A7FFF700]:   Metadata:
INFO: ffmpeg[A7FFF700]:     ENCODER         : Larry Sanders
INFO: ffmpeg[A7FFF700]:   Duration: 01:01:09.60, start: 0.000000, bitrate: 3538 kb/s
INFO: ffmpeg[A7FFF700]:     Stream #0:0(eng): Video: h264 (High), yuv420p, 1280x720, SAR 1:1 DAR 16:9, 25 fps, 25 tbr, 1k tbn, 50 tbc (default)
INFO: ffmpeg[A7FFF700]:     Stream #0:1: Audio: ac3, 48000 Hz, stereo, s16, 192 kb/s (default)

I have absolutely no idea what it could be, any help would be greatly appreciated! Smile. I already tried changing refresh rates, or forcing xbmc to match refresh rate to the video playback.


Hardware:
intel 3225 (HD4000)
asrock b75 micro atx
8 gigs of ram
ssd as boot (crucial m4), WD 3TB Red as storage
hdmi cable
phillips 7676H/12 42 inch tv (connected via hdmi)

Software:
Ubuntu 13.04 x86_64 (minimal install), kernel 3.8.0-26-generic
xbmc 12.2 GIT 32B1A5E (build date may 2 2013)
installed via xbmc stable ppa

Code:
lspci | grep VGA
resulted in:
Code:
VGA compatible controller: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor Graphics Controller (rev 09)

Code:
egrep -i " connected|card detect|primary dev" /var/log/Xorg.0.log
resulted in:
Code:
[    16.644] (II) intel(0): Output HDMI2 connected

Code:
sudo lshw -c display
resulted in:
Code:
PCI (sysfs)  
  *-display              
       description: VGA compatible controller
       product: Xeon E3-1200 v2/3rd Gen Core processor Graphics Controller
       vendor: Intel Corporation
       physical id: 2
       bus info: pci@0000:00:02.0
       version: 09
       width: 64 bits
       clock: 33MHz
       capabilities: msi pm vga_controller bus_master cap_list rom
       configuration: driver=i915 latency=0
       resources: irq:44 memory:f7800000-f7bfffff memory:e0000000-efffffff ioport:f000(size=64)

xorg.conf:
Code:
Section "Device"
  Identifier  "Device0"
  Driver      "intel"
  VendorName  "INTEL Corporation"
EndSection

Section "Screen"
  Identifier  "Screen0"
  Device      "Device0"
  Monitor     "HDMI2"
  DefaultDepth  24
  SubSection "Display"
    Depth       24
    Modes     "1920x1080@50p" "[email protected]" "1920x1080@24p" "1920x1080@60p"
  EndSubSection
EndSection

Section "Monitor"
  Identifier  "HDMI2"
  HorizSync   14.0 - 70.0
  VertRefresh 24.0 - 62.0
  Option      "DPMS" "true"
  Modeline    "1920x1080@24p"     74.230 1920 2560 2604 2752 1080 1084 1089 1125 +hsync +vsync
  Modeline    "1920x1080@50p"    148.500 1920 2448 2492 2640 1080 1084 1089 1125 +hsync +vsync
  Modeline    "[email protected]" 148.352 1920 1960 2016 2200 1080 1082 1088 1125 +hsync +vsync
  Modeline    "1920x1080@60p"    148.500 1920 2008 2056 2200 1080 1084 1089 1125 +hsync +vsync
EndSection

Section "Extensions"
  # fixes tearing
  Option      "Composite"           "Disable"
EndSection

Oh, almost forgot: also tried switching hdmi ports on my tv (thats why its on hdmi2 now instead of hdmi1)
Some TVs react a bit strange, when Audio is unloaded. Though I couldn ot see anything in your log, try with this advancedsettings.xml

Code:
<advancedsettings>
<audio>
<streamsilence>1</streamsilence>
</audio>
</advancedsettings>

Consult the wiki, if you doubt where to put it.
I will try this and report back if I still have the problem.

But I usually playback the sound via my motherboard analog out connected to an old receiver (and still have the issue) - so the tv usually does not have to deal with audio? ( I'm strictly speaking from intuition: I don't know how this actually works Smile).

I switched to HDMI audio to see if that would solve my problem - which it didn't: actually now the audio dropped as well, while the analog setup continued playing the sound.
Just happened again, even after setting the streamsilence to 1 in advancedsettings.

http://paste.ubuntu.com/5862869/


Happened a few seconds before the following line:
Code:
22:49:15 T:140404957456256   DEBUG: OnKey: space (f020) pressed, action is Pause

Which happened a few seconds after I got the black screen (and stopped audio). This is the part of the log which should relate to that:
Code:
22:47:58 T:140404957456256    INFO: LIRC Initialize: using: /dev/lircd
22:47:58 T:140404957456256   DEBUG: Failed to connect to LIRC. Giving up.
22:48:12 T:140402866771712   DEBUG: CDVDPlayerAudio:: Discontinuity2 - was:23711021.541000, should be:23721650.583302, error:10629.042302
22:48:19 T:140403529467648   DEBUG: Thread Jobworker 140403529467648 terminating (autodelete)
22:48:19 T:140404343166720   DEBUG: Thread Jobworker 140404343166720 terminating (autodelete)
22:48:19 T:140403420428032   DEBUG: Thread Jobworker 140403420428032 terminating (autodelete)
22:48:19 T:140403546253056   DEBUG: Thread Jobworker 140403546253056 terminating (autodelete)
22:48:33 T:140402866771712   DEBUG: CDVDPlayerAudio:: Discontinuity2 - was:43935226.884302, should be:43945486.049704, error:10259.165402
22:48:53 T:140402866771712   DEBUG: CDVDPlayerAudio:: Discontinuity2 - was:64073549.685704, should be:64083766.854129, error:10217.168425
22:49:13 T:140402866771712   DEBUG: CDVDPlayerAudio:: Discontinuity2 - was:84212798.560129, should be:84222988.054812, error:10189.494683
22:49:15 T:140404957456256   DEBUG: Keyboard: scancode: 41, sym: 0020, unicode: 0020, modifier: 0
22:49:15 T:140404957456256   DEBUG: OnKey: space (f020) pressed, action is Pause
22:49:15 T:140404957456256   DEBUG: CAnnouncementManager - Announcement: OnPause from xbmc
22:49:15 T:140404957456256   DEBUG: GOT ANNOUNCEMENT, type: 1, from xbmc, message OnPause

In my initial post this also happens, but a whopping 13 minutes before the black screen...
Please check the kernel log via dmesg | pastebinit - I don't think this is a direct xbmc problem
Is it possible that there is a hardware problem - loose or intermittently broken cable? (Why did they make hdmi without some sort of locking pin?)
It now happened in the GUI - around 19:37-19:38

xbmc log
http://paste.ubuntu.com/5865636/

dmesg
http://paste.ubuntu.com/5865637/

edit:
since the timestamps are kinda hard to relate to normal time, here's a pastebin from kern.log
http://paste.ubuntu.com/5865649/

Doesn't seem to be logging anything after 19:14...
mmh all looks fine. Anything Xorg.0.log related?
http://paste.ubuntu.com/5884864/

Timestamps are since boot right? I got the black screen anywhere between 15-20 minutes since booting this time. But I don't see something in the xorg logs...

The above is the xorg.0.log, since I also have an xorg.1.log, I might as well post that too
http://paste.ubuntu.com/5884943/
Anyone?
(2013-07-25, 23:47)Kiphaas7 Wrote: [ -> ]Anyone?

Yes, I would like to have a go...

In the days of descrete media players this used to happen from time to time. It was cased by a HDMI resync due to changing stream properties or problems in the HDMI connection, often cased by bad TV firmware, or CEC. Have you tried this on a different TV ?

RGDS
I have the very same problem with a Ubuntu/XBMC 13.2 and a TV Philips 8000, it's quite annoying. Anybody got any beginning of solution ?
System -> Settings -> Audio -> Keep Audio Alive: Always.

And btw. you have the exact same problem, exactly when you have the very same hardware. Until you bought his system, always provide Debug Log at least.
i had the same problem. there is/was a problem with some graphic cards (especialy ati cards) and philips tvs. it is a kind of a handshake probleme between tv/graphic card. you write "think it also happened in the GUI", that means no video? if yes i think its the same probleme that i had and it has nothing to do with xbmc. meanwhile the problem is solved with a philips-tv-firmware update. do the following: check for firmwareupdates and look for firmware version of your tv. if you do "update firmware via tv" you will NOT get the firmware with the fix. tv says your firmware is the newest but thats not true. go to philips homepage and download latest firmware and update tv via usb stick. that worked for me and 3 friends with different philips tvs.

edit: just noticed its an old thread, but maybe it helps (alaunay)
Yeah OK.

So: keep audio alive always was already activated.

Problem has just happened again, the only message in the log around that time is:

14:29:13 T:139999834261440 DEBUG: DBus: Creating message to org.freedesktop.UPower on /org/freedesktop/UPower with interface org.freedesktop.UPower and method EnumerateDevices
14:29:13 T:139999834261440 DEBUG: DBus: Creating message to org.freedesktop.UPower on /org/freedesktop/UPower/devices/keyboard_0003o046DoC52Bx0004 with interface org.freedesktop.DBus.Properties and method GetAll
14:29:13 T:139999834261440 DEBUG: DBus: Creating message to org.freedesktop.UPower on /org/freedesktop/UPower with interface org.freedesktop.DBus.Properties and method Get

And I have it multiple times before that, without any trouble.
So it seems XBMC debug is not helping much here. Is there a way to get more ?

Also resetted the TV back to origin setup yesterday, seems it did not help.

The one thing I still have not tested is changing the HDMI cable (and, no, I won't change my 1k+ € TV to check this, at least not until she dies).

Hardware is a NUC (bios uptodate), so Intel video card, no ati/nvidia. TV firmware is uptodate (it's a Philips 46PFL8606H/12). Software is uptodate ubuntu, with xbmc 13.2.
Pages: 1 2