No sound over HDMI (Not on raspberry pi)

OpenPHT-Embedded:/ # aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: SB [HDA ATI SB], device 0: ALC887 Analog [ALC887 Analog]
Subdevices: 0/1
Subdevice #0: subdevice #0
card 1: SB [HDA ATI SB], device 1: ALC887 Digital [ALC887 Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0

log:

00:31:32 T:140530247755520 NOTICE: Creating InputStream
00:31:32 T:140530247755520 NOTICE: Creating Demuxer
00:31:32 T:140530247755520 NOTICE: Opening stream: 0 source: 256
00:31:32 T:140530247755520 NOTICE: Creating video codec with codec id: 28
00:31:32 T:140530247755520 NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: H. 264 / AVC / MPEG-4 AVC / MPEG-4 part 10
00:31:32 T:140530247755520 NOTICE: Creating video thread
00:31:32 T:140530247755520 NOTICE: Opening stream: 1 source: 256
00:31:32 T:140530247755520 NOTICE: Finding audio codec for: 86057
00:31:32 T:140530247755520 NOTICE: Creating audio thread
00:31:32 T:140530247755520 NOTICE: Opening stream: 50359 source: 1024
00:31:32 T:140530256148224 NOTICE: running thread: CDVDPlayerAudio::Process()
00:31:32 T:140530229929728 NOTICE: running thread: video_thread
00:31:33 T:140530247755520 WARNING: Read - waited for data but got none
00:31:33 T:140530229929728 NOTICE: CDVDVideoCodecFFmpeg::GetFormat - Creating V DPAU(1920x1080)
00:31:33 T:140530256148224 NOTICE: Creating audio stream (codec id: 86057, chan nels: 2, sample rate: 48000, no pass-through)
00:31:33 T:140530256148224 NOTICE: CDVDPlayerAudio::OutputPacket skipping a pac kets of duration 32
00:31:33 T:140530229929728 NOTICE: VDPAU::CreateContext - creating decoder cont ext
00:31:33 T:140530229929728 NOTICE: vdp_device = 0x00000001 vdp_st = 0x00000000
00:31:33 T:140530229929728 NOTICE: VDPAU Decoder capabilities:
00:31:33 T:140530229929728 NOTICE: name level macbs width height
00:31:33 T:140530229929728 NOTICE: ------------------------------------
00:31:33 T:140530229929728 NOTICE: MPEG2_SIMPLE 3 9216 2048 1152
00:31:33 T:140530229929728 NOTICE: MPEG2_MAIN 3 9216 2048 1152
00:31:33 T:140530229929728 NOTICE: H264_BASELINE 41 9216 2048 1152
00:31:33 T:140530229929728 NOTICE: H264_MAIN 41 9216 2048 1152
00:31:33 T:140530229929728 NOTICE: H264_HIGH 41 9216 2048 1152
00:31:33 T:140530229929728 NOTICE: VC1_SIMPLE 1 9216 2048 1152
00:31:33 T:140530229929728 NOTICE: VC1_MAIN 2 9216 2048 1152
00:31:33 T:140530229929728 NOTICE: VC1_ADVANCED 4 9216 2048 1152
00:31:33 T:140530229929728 NOTICE: MPEG4_PART2_ASP 5 9216 2048 1152
00:31:33 T:140530229929728 NOTICE: ------------------------------------
00:31:33 T:140530229929728 NOTICE: Mixer feature: VDP_VIDEO_MIXER_FEATURE_NOISE _REDUCTION
00:31:33 T:140530229929728 NOTICE: Mixer feature: VDP_VIDEO_MIXER_FEATURE_SHARP NESS
00:31:33 T:140530229929728 NOTICE: Mixer feature: VDP_VIDEO_MIXER_FEATURE_DEINT ERLACE_TEMPORAL
00:31:33 T:140530229929728 NOTICE: (VDPAU) screenWidth:1920 vidWidth:1920 surf aceWidth:1920
00:31:33 T:140530229929728 NOTICE: (VDPAU) screenHeight:1080 vidHeight:1080 su rfaceHeight:1088
00:31:33 T:140530239362816 NOTICE: COutput::OnStartup: Output Thread created
00:31:33 T:140530239362816 NOTICE: VDPAU::COutput::CreateGlxContext - created c ontext
00:31:33 T:140530239362816 NOTICE: VDPAU::COutput: vdpau gl interop initialized
00:31:33 T:140530090460928 NOTICE: CMixer::OnStartup: Output Thread created
00:31:33 T:140530090460928 NOTICE: (VDPAU) Creating the video mixer
00:31:33 T:140530239362816 NOTICE: VDPAU::COutput::InitBufferPool - Output Surf ace created
00:31:34 T:140530239362816 NOTICE: Previous line repeats 6 times.
00:31:34 T:140530239362816 NOTICE: VDPAU::COutput registered output surfaces
00:31:34 T:140530256148224 NOTICE: CDVDPlayerAudio::OutputPacket skipping a pac kets of duration 32
00:31:34 T:140530256148224 NOTICE: CDVDPlayerAudio::OutputPacket duplicate 3 pa ckets of duration 32
00:31:34 T:140530256148224 NOTICE: Previous line repeats 1 times.
00:31:34 T:140530256148224 NOTICE: CDVDPlayerAudio::OutputPacket skipping a pac kets of duration 32
00:31:34 T:140530239362816 NOTICE: Previous line repeats 1 times.
00:31:34 T:140530239362816 NOTICE: VDPAU::COutput registered output surfaces
00:31:34 T:140530229929728 NOTICE: Previous line repeats 5 times.
00:31:34 T:140530229929728 NOTICE: fps: 25.000000, pwidth: 1920, pheight: 1080 , dwidth: 1920, dheight: 1080
00:31:34 T:140530229929728 NOTICE: Display resolution DESKTOP : 1920x1080@ 30.0 0 - Full Screen (16)
00:31:34 T:140531616557056 NOTICE: Using GL_TEXTURE_2D
00:31:34 T:140531616557056 NOTICE: GL: Using VDPAU render method
00:31:34 T:140531616557056 NOTICE: GL: NPOT texture support detected
00:31:34 T:140531616557056 NOTICE: GL: Using GL_ARB_pixel_buffer_object
00:31:36 T:140531616557056 NOTICE: CDVDPlayer::CloseFile()
00:31:36 T:140531616557056 NOTICE: DVDPlayer: waiting for threads to exit
00:31:36 T:140530247755520 NOTICE: CDVDPlayer::OnExit()
00:31:36 T:140530247755520 NOTICE: Closing stream player 1
00:31:36 T:140530247755520 NOTICE: Waiting for audio thread to exit
00:31:36 T:140530256148224 NOTICE: thread end: CDVDPlayerAudio::OnExit()
00:31:36 T:140530247755520 NOTICE: Closing audio device
00:31:36 T:140530247755520 NOTICE: Deleting audio codec
00:31:36 T:140530247755520 NOTICE: Closing stream player 2
00:31:36 T:140530247755520 NOTICE: waiting for video thread to exit
00:31:36 T:140530229929728 NOTICE: thread end: video_thread
00:31:36 T:140530247755520 NOTICE: deleting video codec
00:31:36 T:140530247755520 NOTICE: CVDPAU::Release pre-cleanup
00:31:36 T:140530090460928 NOTICE: CMixer::OnExit: Output Thread terminated
00:31:36 T:140530247755520 NOTICE: Closing stream player 3
00:31:36 T:140531616557056 NOTICE: DVDPlayer: finished waiting
00:31:36 T:140531616557056 NOTICE: (VDPAU) Close
00:31:36 T:140531616557056 NOTICE: (VDPAU) FiniVDPAUOutput
00:31:36 T:140530239362816 NOTICE: VDPAU::COutput: vdpau gl interop finished
00:31:36 T:140530239362816 NOTICE: COutput::OnExit: Output Thread terminated
00:31:36 T:140531616557056 NOTICE: VDPAU::Close - closing decoder context
00:31:36 T:140531616557056 NOTICE: CDVDPlayer::CloseFile()
00:31:36 T:140531616557056 NOTICE: DVDPlayer: waiting for threads to exit
00:31:36 T:140531616557056 NOTICE: DVDPlayer: finished waiting
00:31:36 T:140531616557056 NOTICE: CDVDPlayer::CloseFile()
00:31:36 T:140531616557056 NOTICE: DVDPlayer: waiting for threads to exit
00:31:36 T:140531616557056 NOTICE: DVDPlayer: finished waiting

I can’t seem to get audio to work. Where could I be going wrong?

Have you tried with Rasplex, just to see if that works? I haven’t had any audio over hdmi issues with Rasplex at all.

I did try with RasPlex and same issue

It seems to me that if OpenPHT running on two different pieces of hardware will not produce sound over HDMI, it’s not the software.

Try a different HDMI cable and/or a different HDMI playback device.

Sorry for taking so long to reply.

I haven’t used more than one hdmi cable but the device does work on my other television. Could be an issue with the TV though. Any thought on how I would get an older LCD to support HDMI audio passthrough?

Take a look at @NedtheNerd’s sound setup guide. the tvservice -a command is intended to show what your TV or receiver is telling the PI it supports over HDMI.