Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
HDMI audio question
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
Cr0t
l33t
l33t


Joined: 27 Apr 2002
Posts: 881
Location: USA

PostPosted: Fri Jul 12, 2013 4:06 pm    Post subject: HDMI audio question Reply with quote

A couple of days ago, I switched from spdif to hdmi sound. Everything seems to be working, however, mplayer throws an error.

I tried to do some research, but no solution. Keep in mind that everything is working!
Code:
Playing Folder/file.mkv
libavformat version 54.29.104 (external)
libavformat file format detected.
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (ac3), -aid 0
VIDEO:  [H264]  1280x720  0bpp  23.976 fps    0.0 kbps ( 0.0 kbyte/s)
Clip info:
 creation_time: 2013-06-20 02:38:09
Load subtitles in Folder/
==========================================================================
Forced video codec: ffh264vdpau
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 54.59.100 (external)
Selected video codec: [ffh264vdpau] vfm: ffmpeg (FFmpeg H.264 (VDPAU))
==========================================================================
==========================================================================
Trying to force audio codec driver family hwac3...
Opening audio decoder: [hwac3] AC3/DTS pass-through S/PDIF
hwac3: switched to AC3, 384000 bps, 48000 Hz

AUDIO: 48000 Hz, 2 ch, ac3be, 384.0 kbit/25.00% (ratio: 48000->192000)
Selected audio codec: [hwac3] afm: hwac3 (AC3 through S/PDIF)
==========================================================================
[AO_ALSA] alsa-lib: /var/tmp/portage/media-libs/alsa-lib-1.0.27.1/work/alsa-lib-1.0.27.1/src/conf.c:4578:(parse_args) Unknown parameter AES0
[AO_ALSA] alsa-lib: /var/tmp/portage/media-libs/alsa-lib-1.0.27.1/work/alsa-lib-1.0.27.1/src/conf.c:4711:(snd_config_expand) Parse arguments error: No such file or directory
[AO_ALSA] alsa-lib: /var/tmp/portage/media-libs/alsa-lib-1.0.27.1/work/alsa-lib-1.0.27.1/src/pcm/pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM hw:0,3,AES0=6
[AO_ALSA] Format ac3be is not supported by hardware, trying default.
AO: [alsa] 48000Hz 2ch ac3le (2 bytes per sample)
Starting playback...
[VD_FFMPEG] Trying pixfmt=0.
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [vdpau] 1280x720 => 1280x720 H.264 VDPAU acceleration  [fs]
[VD_FFMPEG] XVMC-accelerated MPEG-2.
A:   1.3 V:   1.3 A-V:  0.002 ct:  0.040   0/  0 33% 24%  0.7% 15 0
Code:
**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 0: ALC662 rev1 Analog [ALC662 rev1 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 1: ALC662 rev1 Digital [ALC662 rev1 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
Code:
#cat /etc/asound.conf

pcm.!default {
type plug
slave {
pcm "hdmi"
}
}

_________________
cya
    ©®0t
Back to top
View user's profile Send private message
Jack Hair
n00b
n00b


Joined: 10 Jul 2013
Posts: 13

PostPosted: Fri Jul 12, 2013 4:55 pm    Post subject: Reply with quote

I've had this problem too but my asound.conf looks like this:

Code:

pcm.!default {
type hw
card 0
device 3
}


And it solved it for me.
Back to top
View user's profile Send private message
Cr0t
l33t
l33t


Joined: 27 Apr 2002
Posts: 881
Location: USA

PostPosted: Sat Jul 13, 2013 12:34 pm    Post subject: Reply with quote

I made your adjustments and changed my custom mplayer options from /usr/bin/mplayer -fs -ao alsa:device=hw=0.3 -afm hwac3 "$@" to /usr/bin/mplayer -fs -afm hwac3 "$@".

The errors/warnings are gone now.
Code:
libavformat version 54.29.104 (external)
libavformat file format detected.
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (ac3), -aid 0
VIDEO:  [H264]  1280x720  0bpp  23.976 fps    0.0 kbps ( 0.0 kbyte/s)
Clip info:
 creation_time: 2013-06-20 02:38:09
Load subtitles in folder/
==========================================================================
Forced video codec: ffh264vdpau
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 54.59.100 (external)
Selected video codec: [ffh264vdpau] vfm: ffmpeg (FFmpeg H.264 (VDPAU))
==========================================================================
==========================================================================
Trying to force audio codec driver family hwac3...
Opening audio decoder: [hwac3] AC3/DTS pass-through S/PDIF
hwac3: switched to AC3, 384000 bps, 48000 Hz

AUDIO: 48000 Hz, 2 ch, ac3be, 384.0 kbit/25.00% (ratio: 48000->192000)
Selected audio codec: [hwac3] afm: hwac3 (AC3 through S/PDIF)
==========================================================================
[AO_ALSA] Format ac3be is not supported by hardware, trying default.
AO: [alsa] 48000Hz 2ch ac3le (2 bytes per sample)
Starting playback...
[VD_FFMPEG] Trying pixfmt=0.
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [vdpau] 1280x720 => 1280x720 H.264 VDPAU acceleration  [fs]
[VD_FFMPEG] XVMC-accelerated MPEG-2.
A:   6.5 V:   6.5 A-V:  0.000 ct:  0.042   0/  0  7%  5%  0.8% 13 0
Thank you!
_________________
cya
    ©®0t
Back to top
View user's profile Send private message
Cr0t
l33t
l33t


Joined: 27 Apr 2002
Posts: 881
Location: USA

PostPosted: Sat Jul 13, 2013 10:24 pm    Post subject: Reply with quote

... stopped working.

I put my old mplayer custom options back in and it works now. The error is back, but every plays now as expected.
_________________
cya
    ©®0t
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum