Sometimes no sound on play

Please let me know what setting are wrong and should be changed.

If you’re only playing 2 channels, change HDMI to PCM.
It will then never probe capabilities (which might be unavailable on mode switch)
Turn off Send low volume noise

All other settings look fine.

As I feared, this made no difference at all :unamused:

Then this must be some unrelated issue.

Can you replicate with this: http://mirrorblender.top-ix.org/peach/bigbuckbunny_movies/big_buck_bunny_1080p_h264.mov?

The link does not work.

Many alternatives here: Big Buck Bunny » Download.

Let me know which one you download.

Most of the links is dead, but managed to find a torrent to download, Big_Buck_Bunny_1080p_surround_FrostWire.com.avi

The problem is still there.

Okay – last question, I promise :wink:

Is it only occurring with downmixing, i.e. video with tracks >2 channels?
I think the reason I don’t see it is because my receiver supports LPCM > 2channel.

Hi Sam

You may ask all the questions you want :slight_smile: I am really interested in getting this issue fixed :slight_smile:

It is happening with all formats whether it it 2 channels 5.1 or something else. It is only happening when the TV adjusting refresh rate to match the Video. If Adjust display refresh rate is set to off, it never happens.

It issue seems worse when you you start a video with an audio format different than the previous video.

For me it seems that something strange is going on when TV changes refresh rate.

Hope you get what I mean, English is not my first language :slight_smile:

Thomas

Both of these make sense.
For now a hacky workaround might be:

  • Set GUI to 24Hz
  • Enable Adjust Refresh Rate

But that would only resolve the issue if it’s indeed caused by refresh rate changes.

The other trick might be to force a constant set of display modes and audio modes. This is a bit like on a Pi where you force an EDID to override the default one.

To do this (writing off the top of my head without a Vero 4K at hand):

  • Boot up
    • Run these commands:
cat /sys/class/amhdmitx/amhdmitx0/disp_cap > /tmp/disp_cap
cat /sys/class/amhdmitx/amhdmitx0/aud_cap > /tmp/aud_cap
cat /sys/class/amhdmitx/amhdmitx0/edid > /tmp/edid
sudo mount --bind /tmp/disp_cap /sys/class/amhdmitx/amhdmitx0/disp_cap
sudo mount --bind /tmp/aud_cap /sys/class/amhdmitx/amhdmitx0/aud_cap
sudo mount --bind /tmp/edid /sys/class/amhdmitx/amhdmitx0/edid
sudo systemctl restart mediacenter
  • Note these changes aren’t persistent, it’s just for a test.

Sam

First, I would like to remind that this started happening after March update. There was no problem before this.

So first I tried

cat /sys/class/amhdmitx/amhdmitx0/disp_cap > /tmp/disp_cap
cat /sys/class/amhdmitx/amhdmitx0/aud_cap > /tmp/aud_cap
cat /sys/class/amhdmitx/amhdmitx0/edid > /tmp/edid
sudo mount --bind /tmp/disp_cap /sys/class/amhdmitx/amhdmitx0/disp_cap
sudo mount --bind /tmp/aud_cap /sys/class/amhdmitx/amhdmitx0/aud_cap
sudo mount --bind /tmp/edid /sys/class/amhdmitx/amhdmitx0/edid
sudo systemctl restart mediacenter

No changes, I still had the problem. Anyway, I did not revert and reboot for the next steps.

Then I set the GUI to 24Hz. After that, no file would play sound, 100% failure rate. Then I went back to 60Hz, and back again to 24 Hz. Same, no sound on any file 100%. Did it once more, back to 60 and back to 24. Now every file had sound 100% on the time.

So I thinks it’s safe to assume that something goes wrong in the change of refresh rate that sticks. But also that it should not be related to any kind of probing for equipment capabilities.

1 Like

For th sake of it, quoting the caps output:

osmc@osmc:~$ cat /sys/class/amhdmitx/amhdmitx0/disp_cap
480i60hz
480p60hz
576i50hz
576p50hz
720p60hz
1080i60hz
1080p60hz*
720p50hz
1080i50hz
1080p50hz
1080p24hz

osmc@osmc:~$ cat /sys/class/amhdmitx/amhdmitx0/aud_cap 
CodingType MaxChannels SamplingFreq SampleSize
PCM, 2 ch, 32/44.1/48 kHz, 16 bit

osmc@osmc:~$ cat /sys/class/amhdmitx/amhdmitx0/edid   
Rx Brand Name: MEI
Rx Product Name: Panasonic-TV
Manufacture Week: 0
Manufacture Year: 2010
EDID Verison: 1.3
EDID block number: 0x1
blk0 chksum: 0xd1
Source Physical Address[a.b.c.d]: 2.0.0.0
native Mode 72, VIC (native 16):
ColorDeepSupport b8, MaxTMDSClock 38
31 16 20 5 32 19 4 18 3 17 2 22 7 21 6 1 
Audio {format, channel, freq, cce}
{1, 1, 7, 1}
Speaker Allocation: 0
Vendor: 0xc03
Vendor2: 0x0
ColorMetry: 0x1f
SCDC: 0
RR_Cap: 0
LTE_340M_Scramble: 0
Rx 3D Format Support List:
{VIC FramePacking TopBottom SidebySide}
{ 31    0       0       0 }
{ 16    0       0       0 }
{ 20    0       0       0 }
{ 5     0       0       0 }
{ 32    0       0       0 }
{ 19    0       0       0 }
{ 4     0       0       0 }
{ 18    0       0       0 }
{ 3     0       0       0 }
{ 17    0       0       0 }
{ 2     0       0       0 }
{ 22    0       0       0 }
{ 7     0       0       0 }
{ 21    0       0       0 }
{ 6     0       0       0 }
{ 1     0       0       0 }
checkvalue: 0xd1b10000

Make sure your audio is set to fixed, not optimised.

When you switch mode and have no audio:

  • Do you have GUI sounds at least?
  • Is the output of aud_cap the same?

Sam

That helped, I have sound on all the videos with these settings.
But it seems that @talentles problem is not the same as mine, and the last thing I want to do is hijack another thread, so let me know if i should make my own thread.

The output from above:

osmc@osmc-stue:~$ cat /sys/class/amhdmitx/amhdmitx0/disp_cap                                                         480i60hz
480p60hz
576i50hz
576p50hz
720p60hz
1080i60hz
1080p60hz*
720p50hz
1080i50hz
1080p50hz
1080p24hz

osmc@osmc-stue:~$ cat /sys/class/amhdmitx/amhdmitx0/aud_cap
CodingType MaxChannels SamplingFreq SampleSize
PCM, 2 ch, 32/44.1/48 kHz, 16 bit


osmc@osmc-stue:~$ cat /sys/class/amhdmitx/amhdmitx0/aud_cap
CodingType MaxChannels SamplingFreq SampleSize
PCM, 2 ch, 32/44.1/48 kHz, 16 bit
osmc@osmc-stue:~$ ^C
osmc@osmc-stue:~$
osmc@osmc-stue:~$
osmc@osmc-stue:~$
osmc@osmc-stue:~$ cat /sys/class/amhdmitx/amhdmitx0/edid
Rx Brand Name: MEI
Rx Product Name: Panasonic-TV
Manufacture Week: 0
Manufacture Year: 2010
EDID Verison: 1.3
EDID block number: 0x1
blk0 chksum: 0xd1
Source Physical Address[a.b.c.d]: 3.0.0.0
native Mode 72, VIC (native 16):
ColorDeepSupport b8, MaxTMDSClock 38
31 16 20 5 32 19 4 18 3 17 2 22 7 21 6 1
Audio {format, channel, freq, cce}
{1, 1, 7, 1}
Speaker Allocation: 0
Vendor: 0xc03
Vendor2: 0x0
ColorMetry: 0x1f
SCDC: 0
RR_Cap: 0
LTE_340M_Scramble: 0
Rx 3D Format Support List:
{VIC FramePacking TopBottom SidebySide}
{ 31    0       0       0 }
{ 16    0       0       0 }
{ 20    0       0       0 }
{ 5     0       0       0 }
{ 32    0       0       0 }
{ 19    0       0       0 }
{ 4     0       0       0 }
{ 18    0       0       0 }
{ 3     0       0       0 }
{ 17    0       0       0 }
{ 2     0       0       0 }
{ 22    0       0       0 }
{ 7     0       0       0 }
{ 21    0       0       0 }
{ 6     0       0       0 }
{ 1     0       0       0 }
checkvalue: 0xd1a10000

Hi @thansen_dk

Thanks for the reply. I do agree that we should keep this post focused on @talentles’ problem, so I’ll keep the response here brief.

I’m glad this fixes the playback issue for you. You can add these commands to /etc/rc.local

cat /sys/class/amhdmitx/amhdmitx0/disp_cap > /tmp/disp_cap
cat /sys/class/amhdmitx/amhdmitx0/aud_cap > /tmp/aud_cap
cat /sys/class/amhdmitx/amhdmitx0/edid > /tmp/edid
sudo mount --bind /tmp/disp_cap /sys/class/amhdmitx/amhdmitx0/disp_cap
sudo mount --bind /tmp/aud_cap /sys/class/amhdmitx/amhdmitx0/aud_cap
sudo mount --bind /tmp/edid /sys/class/amhdmitx/amhdmitx0/edid

Before exit 0 as a bit of a hack for now. It confirms that when the refresh rate changes, the capabilities are not available via sysfs so there are problems with configuring sound. The suggestion above won’t cause any adverse affect, so until I find a way to work around this situation for you, it should work fine.

Sam

1 Like

Kinda surprised if this turns out to be a different issue. I will retest to make sure and let you know.

Yup, I still have the issue.

I also enabled GUI sounds, as I had them disabled. So when refresh rate changes to 24Hz upon play, if there is no video sound, I will also not have GUI sound. But then after stopping and getting back to 60Hz, will always have GUI sound. It seems that changing from 24Hz to 60Hz does not cause any recognizable problems. But I did notice that it takes some seconds from the switch to 60Hz until GUI sounds start working.

I played with the setting “Delay after refresh rate change” but did not get any conclusive results.

I had very similar issues with menu sounds ( my menu sounds were distorted if I had refresh rate set to 60 in vero 4K system settings) but all issues went away when I set audio from optimized to fixed in expert audio settings

I have the recommended settings on this post, included Fixed in audio settings.

Pasting dmesg when it works [1] vs when it does not [2]. Note, I have configured delay after refresh rate change of 4 secs.

There are differences. On HDMI front of things, when it works there seems to be some retrying going on but seems irrelevant. Other than that, the apparent difference happens when the video is actually played where the audio driver ir not triggered at the end.

[1] https://www.hastebin.com/ducamaxami.sql
[2] https://www.hastebin.com/woqayuzucu.sql

Another dmesg of when it did not work. exactly the same as when it did work before, so I dont think any differences seen on this output matter, unless we can enable additional debug.

https://www.hastebin.com/enuhivuvuc.sql