Audio Issues on Intel NUC

Have a MythTV related problem? Ask for help from other MythTV users here.

Moderator: Forum Moderators

Post Reply
kbocek
Junior
Posts: 98
Joined: Mon Jul 20, 2015 4:42 pm
United States of America

Audio Issues on Intel NUC

Post by kbocek » Thu Feb 21, 2019 1:01 am

New 29.1 install on an Intel NUC - Nuc6CAYH. I'm having several problems with the HDMI audio.

1. Can't seem to get surround sound to my receiver. My receiver shows "MCh Stereo" for all playback, in both recordings and video files I know have 5.1 sound. The speaker test function in Myth works as expected and plays the white noise through all six speakers.

2. Audio stuttering if I select VAAPI, OpenGL or VDPAU playback. This is an Intel video card (HD 500) and the driver is being loaded in Xorg.0.log. I have to select Thin/Normal/High Quality for the sound to play correctly.

3. In audio setup I select 5.1 speakers (and they test correctly) but the system keeps resetting this to 7.1.

Anyone have ideas? Thanks.

kbocek
Junior
Posts: 98
Joined: Mon Jul 20, 2015 4:42 pm
United States of America

Re: Audio Issues on Intel NUC

Post by kbocek » Thu Feb 21, 2019 5:46 pm

I'm seeing lots of posts regarding Intel Sound problems. I have a bunch of audio devices:

Code: Select all

# aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
default:CARD=PCH
    HDA Intel PCH, ALC283 Analog
    Default Audio Device
sysdefault:CARD=PCH
    HDA Intel PCH, ALC283 Analog
    Default Audio Device
front:CARD=PCH,DEV=0
    HDA Intel PCH, ALC283 Analog
    Front speakers
surround21:CARD=PCH,DEV=0
    HDA Intel PCH, ALC283 Analog
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=PCH,DEV=0
    HDA Intel PCH, ALC283 Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
    HDA Intel PCH, ALC283 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
    HDA Intel PCH, ALC283 Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
    HDA Intel PCH, ALC283 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
    HDA Intel PCH, ALC283 Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=PCH,DEV=0
    HDA Intel PCH, ALC283 Digital
    IEC958 (S/PDIF) Digital Audio Output
hdmi:CARD=PCH,DEV=0
    HDA Intel PCH, HDMI 0
    HDMI Audio Output
hdmi:CARD=PCH,DEV=1
    HDA Intel PCH, HDMI 1
    HDMI Audio Output
hdmi:CARD=PCH,DEV=2
    HDA Intel PCH, HDMI 2
    HDMI Audio Output
dmix:CARD=PCH,DEV=0
    HDA Intel PCH, ALC283 Analog
    Direct sample mixing device
dmix:CARD=PCH,DEV=1
    HDA Intel PCH, ALC283 Digital
    Direct sample mixing device
dmix:CARD=PCH,DEV=3
    HDA Intel PCH, HDMI 0
    Direct sample mixing device
dmix:CARD=PCH,DEV=7
    HDA Intel PCH, HDMI 1
    Direct sample mixing device
dmix:CARD=PCH,DEV=8
    HDA Intel PCH, HDMI 2
    Direct sample mixing device
dsnoop:CARD=PCH,DEV=0
    HDA Intel PCH, ALC283 Analog
    Direct sample snooping device
dsnoop:CARD=PCH,DEV=1
    HDA Intel PCH, ALC283 Digital
    Direct sample snooping device
dsnoop:CARD=PCH,DEV=3
    HDA Intel PCH, HDMI 0
    Direct sample snooping device
dsnoop:CARD=PCH,DEV=7
    HDA Intel PCH, HDMI 1
    Direct sample snooping device
dsnoop:CARD=PCH,DEV=8
    HDA Intel PCH, HDMI 2
    Direct sample snooping device
hw:CARD=PCH,DEV=0
    HDA Intel PCH, ALC283 Analog
    Direct hardware device without any conversions
hw:CARD=PCH,DEV=1
    HDA Intel PCH, ALC283 Digital
    Direct hardware device without any conversions
hw:CARD=PCH,DEV=3
    HDA Intel PCH, HDMI 0
    Direct hardware device without any conversions
hw:CARD=PCH,DEV=7
    HDA Intel PCH, HDMI 1
    Direct hardware device without any conversions
hw:CARD=PCH,DEV=8
    HDA Intel PCH, HDMI 2
    Direct hardware device without any conversions
plughw:CARD=PCH,DEV=0
    HDA Intel PCH, ALC283 Analog
    Hardware device with all software conversions
plughw:CARD=PCH,DEV=1
    HDA Intel PCH, ALC283 Digital
    Hardware device with all software conversions
plughw:CARD=PCH,DEV=3
    HDA Intel PCH, HDMI 0
    Hardware device with all software conversions
plughw:CARD=PCH,DEV=7
    HDA Intel PCH, HDMI 1
    Hardware device with all software conversions
plughw:CARD=PCH,DEV=8
    HDA Intel PCH, HDMI 2
    Hardware device with all software conversions
I've tried selecting all of devices marked HDMI 0 in Myth. But the only one that gives me sound is hdmi:CARD=PCH,DEV=0 albeit output in stereo only. Alsamixer doesn't show any kind of HDMI device. I don't know where to go with this. lsmod shows snd_hda_intel and snd_hda_codec_hdmi are being loaded. I don't know where to go with this.

kbocek
Junior
Posts: 98
Joined: Mon Jul 20, 2015 4:42 pm
United States of America

Re: Audio Issues on Intel NUC

Post by kbocek » Mon Feb 25, 2019 4:08 pm

Well the stereo thing was because I had selected a stereo mode on my receiver. Setting output to DTS gives me full surround. That's embarrassing.

But my VAAPI etc. problems continue. I can only do playback on the "Normal" profile. All the other enhanced profiles cause stuttering. I wish I could figure this out.

kbocek
Junior
Posts: 98
Joined: Mon Jul 20, 2015 4:42 pm
United States of America

Re: Audio Issues on Intel NUC

Post by kbocek » Thu Feb 28, 2019 1:05 am

Well Beppo over in the Hardware section suggested some changes to my xorg.conf file. My Intel section looks like:

Code: Select all

Section "Device"
        Identifier "Intel Graphics"
        Driver "intel"
        Option "TearFree" "true"
        Option "Accel" "true"
        Option "AccelMethod" "sna"
#       Option "AccelMethod" "uxa"
        Option "TripleBuffer" "true"
        Option "DRI" "3"
EndSection
And video playback and recording playback seems to be working now with VAAPI on.

Except...

LiveTV stutters. Oddly, if I make a recording out of the LiveTV and then go back and play that recording, it works and is great. Anyone have any idea about the LiveTV thing?

kbocek
Junior
Posts: 98
Joined: Mon Jul 20, 2015 4:42 pm
United States of America

Re: Audio Issues on Intel NUC

Post by kbocek » Thu Feb 28, 2019 1:18 am

So I found a posting from 2012 that said a fix was to pause the LiveTV playback for a few seconds. But no, that didn't help.

kbocek
Junior
Posts: 98
Joined: Mon Jul 20, 2015 4:42 pm
United States of America

Re: Audio Issues on Intel NUC

Post by kbocek » Sat Mar 02, 2019 8:21 pm

Solved it. It's something related to 4K output. By going into Settings | Appearance and setting separate GUI and output resolutions LiveTV now works without stuttering.

I've set it to 3840x2160 for the GUI but 1920x1080 for output. Interestingly, if I select 1920x1080 for the GUI, LiveTV gives a blank screen. So it works but the switch from GUI to playback is slower now.

kbocek
Junior
Posts: 98
Joined: Mon Jul 20, 2015 4:42 pm
United States of America

Re: Audio Issues on Intel NUC

Post by kbocek » Sun Mar 03, 2019 10:28 pm

Still solved it. The GUI/Video setting helped with Live TV and 1080p content. But I got a black screen with my lower res video.

So I just forced X into 1080p instead of the auto-configured 4K resolution. Always a PITA finding the right modeline (X found like 6 or 8 different modelines.) But now LiveTV works, 1080p content works and lower res video works.

BillyTse
Newcomer
Posts: 1
Joined: Thu Jul 04, 2019 5:06 pm
United States of America

Re: Audio Issues on Intel NUC

Post by BillyTse » Thu Jul 04, 2019 5:31 pm

Hi...have you tried connecting your Intel® NUC to other HDMI ports?Have you tried using other HDMI cables? Make sure you are using a straight-through connection with a single cable.

kbocek
Junior
Posts: 98
Joined: Mon Jul 20, 2015 4:42 pm
United States of America

Re: Audio Issues on Intel NUC

Post by kbocek » Mon Jul 08, 2019 3:36 pm

It's been working for awhile now. I'm pretty sure the issue was running the front end in 4K. As I said, forcing the front end into 1080p fixed my problems.

There was a post by one of the devs saying that mythfrontend needs to be updated to support 4K.

Post Reply