LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-04-2015, 11:00 PM   #1
epilitimus
Member
 
Registered: Jul 2009
Distribution: Slackware
Posts: 35

Rep: Reputation: 17
hdmi sound with xine


Slackware 14.1 64bit
alsa-lib-1.0.27.2
kde4
xine 0.99.7

http://alsa.opensrc.org/DigitalOut

aplay -L:
Code:
null
    Discard all samples (playback) or generate zero samples (capture)
default:CARD=Generic_1
    HD-Audio Generic, ALC282 Analog
    Default Audio Device
sysdefault:CARD=Generic_1
    HD-Audio Generic, ALC282 Analog
    Default Audio Device
front:CARD=Generic_1,DEV=0
    HD-Audio Generic, ALC282 Analog
    Front speakers
surround40:CARD=Generic_1,DEV=0
    HD-Audio Generic, ALC282 Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=Generic_1,DEV=0
    HD-Audio Generic, ALC282 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Generic_1,DEV=0
    HD-Audio Generic, ALC282 Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Generic_1,DEV=0
    HD-Audio Generic, ALC282 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Generic_1,DEV=0
    HD-Audio Generic, ALC282 Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
hdmi:CARD=Generic,DEV=0
    HD-Audio Generic, HDMI 0
    HDMI Audio Output
aplay -l:
Code:
**** List of PLAYBACK Hardware Devices ****
card 0: Generic_1 [HD-Audio Generic], device 0: ALC282 Analog [ALC282 Analog]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 1: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
Sound from all sources, including xine, works fine for normal use. My problem is when I try to send the sound to my HDMI output from xine. I am able to send sound to the HDMI output with no problems from aplay, phonon, mplayer.

When using xine I set audio.output.speaker_arrangement=Pass through and audio.driver=auto (I am actually using the gui). With those set I also set audio.device.alsa_passthrough_device=hw:1,3 or audio.device.alsa_passthrough_device=hdmi:CARD=Generic,DEV=0. But the only sound I get sounds like a flock of neurotic woodpeckers. I tried the iecset command from the alsa.opensrc.org page listed above. With iecset audio 1 I get no sound and the TV complains about a bad sound signal. Either the hw or hdmi device can be used without difficulty with for example aplay.

Obviously I am missing something. Any suggestions?
 
Old 05-05-2015, 12:31 AM   #2
epilitimus
Member
 
Registered: Jul 2009
Distribution: Slackware
Posts: 35

Original Poster
Rep: Reputation: 17
some additional information:
If I use -ac hwac3 with mplayer I get the same neurotic woodpecker effect. Leaving that out mplayer works fine and shows that it is using ffmpeg to do the decoding and ffmpeg reports the audio to be ac3.

Code:
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
[ac3 @ 0xe99d40]frame sync error
AUDIO: 48000 Hz, 2 ch, s16le, 384.0 kbit/25.00 (ratio: 48000->192000)
Selected audio codec: [ffac3] afm: ffmpeg (FFmpeg AC-3)
==========================================================================
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
A: 552.1 V: 552.4 A-V: -0.338 ct: -0.077 206/203 13%  0%  2.2% 0 0 

demux_mpg: 24000/1001fps progressive NTSC content detected, switching framerate.
A: 556.4 V: 556.4 A-V: -0.001 ct: -0.373 303/299 15%  0%  1.9% 0 0 
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
[ac3 @ 0xe99d40]frame sync error
AUDIO: 48000 Hz, 2 ch, s16le, 384.0 kbit/25.00% (ratio: 48000->192000)
Selected audio codec: [ffac3] afm: ffmpeg (FFmpeg AC-3)
==========================================================================
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
 
Old 05-05-2015, 10:58 PM   #3
epilitimus
Member
 
Registered: Jul 2009
Distribution: Slackware
Posts: 35

Original Poster
Rep: Reputation: 17
solved: how xine handles audio changes depending on the speaker arrangement selected. It doesn't just select an output as I was assuming. Using the same speaker arrangement as I normally use and setting that output device to the hdmi output works.

for future reference:
Code:
audio.device.alsa_front_device:hw:1,3
audio.output.speaker_arrangement:Stereo 2.0
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
HDMI no sound czezz Linux - Desktop 3 01-06-2015 05:40 AM
[ProLiant MicroServer, ATI R6xx HDMI, Digital Out, HDMI] No HDMI sound at all vnatius Linux - Hardware 15 08-16-2012 01:09 PM
No HDMI sound tovarish Linux - Hardware 4 06-21-2010 06:09 AM
No video from mplayer/xine/vlc with HDMI connection pickarooney Linux - Hardware 3 03-04-2010 02:53 PM
Sound HDMI 780G MythTV Mplayer Xine forum1793 Linux - Hardware 13 04-26-2009 08:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration