Re: a52-plugin and HDMI

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am 2014-10-21 08:31, schrieb Clemens Ladisch:
> Rene Bartsch wrote:
>> I'm using a HDMI-Switch with integrated Audio-Extractor which is
>> connected to my surround-system via TOS-Link. Unfortunately TOS-Link
>> cannot handle multi-channel PCM. So I try to get the a52-plugin 
>> working
>> with HDMI.
>> 
>> It already works with the TOS-Link-port on my notebook:
>> 
>> pcm.a52 {
>>    @args [CARD]
>>    @args.CARD {
>>      type string
>>    }
>>    type rate
>>    slave {
>>      pcm {
>>        type a52
>>        bitrate 448
>>        channels 6
>>        card $CARD
>> #      device 3
>>      }
>>    rate 48000 #required somehow, otherwise nothing happens in 
>> PulseAudio
>>    }
>> }
>> 
>> 
>> renne@renne:~$ aplay -l
>> **** Liste der Hardware-Geräte (PLAYBACK) ****
>> Karte 0: Intel [HDA Intel], Gerät 0: CX20561 Analog [CX20561 Analog]
>>    Sub-Geräte: 1/1
>>    Sub-Gerät #0: subdevice #0
>> Karte 0: Intel [HDA Intel], Gerät 1: CX20561 Digital [CX20561 Digital]
>>    Sub-Geräte: 1/1
>>    Sub-Gerät #0: subdevice #0
>> Karte 0: Intel [HDA Intel], Gerät 3: HDMI 0 [HDMI 0]
>>    Sub-Geräte: 1/1
>>    Sub-Gerät #0: subdevice #0
>> 
>> 
>> 
>> When I try to add a device stanza to use the HDMI-port
> 
> You mean the "device 3"?
> 
>> Pulseaudio doesn't find a AC3 device/profile.
> 
> I don't know what PulseAudio requires for that; try asking on the
> PulseAudio list.

Meanwhile I tried ALSA directly by using "mplayer -ao alsa:device=hw=0.3 
-ac hwac3 <AC3>-file", which works fine (passthrough). When I add the 
"device 3"-stanza for HDMI, there is no sound.

--------------------------------------------------------------------------------
pcm.a52hdmi {
     @args [CARD]
     @args.CARD {
       type string
     }
     type rate
     slave {
       pcm {
         type a52
         bitrate 448
         channels 6
         card $CARD
        device 3
       }
     rate 48000 #required somehow, otherwise nothing happens in 
PulseAudio
     }
}
----------------------------------------------------------------------------------
mplayer -channels 6 -ao alsa:device=a52hdmi  
/media/f7490/Audio/a52/Bjorn_Lynne-Joolis-Song-surround.ac3

MPlayer 1.1-4.8 (C) 2000-2012 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote 
control.

Playing /media/f7490/Audio/a52/Bjorn_Lynne-Joolis-Song-surround.ac3.
libavformat version 54.20.4 (external)
Mismatching header version 54.20.3
libavformat file format detected.
[ac3 @ 0x7f090bc24600]max_analyze_duration reached
[ac3 @ 0x7f090bc24600]Estimating duration from bitrate, this may be 
inaccurate
[lavf] stream 0: audio (ac3), -aid 0
Load subtitles in /media/f7490/Audio/a52/
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
libavcodec version 54.35.0 (external)
AUDIO: 48000 Hz, 6 ch, floatle, 448.0 kbit/4.86% (ratio: 56000->1152000)
Selected audio codec: [ffac3] afm: ffmpeg (FFmpeg AC-3)
==========================================================================
[AO_ALSA] alsa-lib: pcm_a52.c:843:(_snd_pcm_a52_open) Unknown field 
device
[AO_ALSA] Playback open error: Invalid argument
Failed to initialize audio driver 'alsa:device=a52hdmi'
Could not open/initialize audio device -> no sound.
Audio: no sound
Video: no video


Exiting... (End of file)
------------------------------------------------------------------------------------

-- 
Best regards,

Rene Bartsch, B. Sc. Informatics


------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user





[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux