Jump to content

OrangePi PC HDMI no sound in mph


mantouboji

Recommended Posts

I use mpv in Armbian 5.10 on a OPiPC, HDMI attach to my audio and TV .

 

I checked the audio devices at first:

mpv --audio-device=help
List of detected audio devices:
  'auto' (Autoselect device)
  'pulse/alsa_output.platform-audiocodec.analog-stereo' (audiocodec Analog Stereo)
  'pulse/alsa_output.platform-sndhdmi.analog-stereo' (sndhdmi Analog Stereo)
  'alsa/default' (Playback/recording through the PulseAudio sound server)
  'alsa/plughw:CARD=audiocodec,DEV=0' (audiocodec, /Hardware device with all software conversions)
  'alsa/plughw:CARD=sndhdmiraw,DEV=0' (sndhdmi, /Hardware device with all software conversions)
  'oss' (Default (oss))
  'jack' (Default (jack))
  'openal/audiocodec Analog Stereo' (audiocodec Analog Stereo)
  'openal/sndhdmi Analog Stereo' (sndhdmi Analog Stereo)

and then play some movie with a  AC3 soundtrack and another movie with dts-hd soundtrack by this:

mpv --fs  --audio-device='alsa/plughw:CARD=sndhdmi,DEV=0' IMAX\ -\ Bears.2001.1080p.BluRay.x264-HDmonSK.mkv
Playing: IMAX - Bears.2001.1080p.BluRay.x264-HDmonSK.mkv
 (+) Video --vid=1 (*) 'x264' (h264)
 (+) Audio --aid=1 --alang=eng (*) 'AC3 5.1' (ac3)
     Audio --aid=2 --alang=cze 'AC3 2.0' (ac3)
[VDPAU SUNXI] VE version 0x1680 opened
[VDPAU SUNXI] OSD disabled!
ALSA lib pcm_hw.c:1667:(_snd_pcm_hw_open) Invalid value for card
[ao/alsa] Playback open error: No such device
[ao] Failed to initialize audio driver 'alsa'
[ao] This audio driver/device was forced with the --audio-device option.
[ao] Try unsetting it.
Could not open/initialize audio device -> no sound.
Audio: no audio
Using hardware decoding (vdpau).
VO: [vdpau] 1920x1080 vdpau
[VDPAU SUNXI] Presentation time not supported
V: 00:00:05 / 00:39:14 (0%) Cache: 10s+73MB

or this:

mpv --fs   IMAX\ -\ Bears.2001.1080p.BluRay.x264-HDmonSK.mkv   ao 'alsa/plughw:CARD=sndhdmiraw,DEV=0' --audio-spdif=ac3
Playing: IMAX - Bears.2001.1080p.BluRay.x264-HDmonSK.mkv
 (+) Video --vid=1 (*) 'x264' (h264)
 (+) Audio --aid=1 --alang=eng (*) 'AC3 5.1' (ac3)
     Audio --aid=2 --alang=cze 'AC3 2.0' (ac3)
[VDPAU SUNXI] VE version 0x1680 opened
[VDPAU SUNXI] OSD disabled!
ALSA lib conf.c:4705:(snd_config_expand) Unknown parameters AES0=6,AES1=130,AES2=0,AES3=2
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM default:AES0=6,AES1=130,AES2=0,AES3=2
ALSA lib conf.c:4705:(snd_config_expand) Unknown parameters AES0=6,AES1=130,AES2=0,AES3=2
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM iec958:AES0=6,AES1=130,AES2=0,AES3=2
[ao/alsa] Playback open error: Invalid argument
[ao/oss] Can't open audio device /dev/dsp: No such file or directory
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
[ao/jack] cannot open server
[ao/openal] Can't find appropriate sample format.
AL lib: (WW) FreeContext: (0xb8308ab8) Deleting 2 Source(s)
AL lib: (WW) FreeDevice: (0xb82ef1e0) Deleting 256 Buffer(s)
[ao] Failed to initialize audio driver 'openal'
AO: [pulse] 48000Hz stereo 2ch float
Using hardware decoding (vdpau).
VO: [vdpau] 1920x1080 vdpau
[VDPAU SUNXI] Presentation time not supported
Failed audio resync.
AV: 00:00:04 / 00:39:14 (0%) A-V:  0.000 Cache: 10s+73MB

no any sounds.

Link to comment
Share on other sites

That's strange. Armbian for OrangePC (maybe all H3 also) have long time known problem with pulseaudio. There is some topics in the forum about this. But calling alsa device directly in aplications worked. The above config for mpv work for me in Armbian_5.07_Orangepih3_Debian_jessie_3.4.111, and 5.05 from download section too. I am not tried latest build yet, if you are using some newer version, i don't know. What does:

aplay -l

says? If there are no audio devices, perhaps your account is not part of the "audio" group:

sudo usermod -a -G audio <username>

and check again. If this is not the case i have no idea. Maybe mpv is the problem. You can install mplayer2 just for quick test (because there will be no hw acceleration through vdpau if you don't build it from source):

sudo apt-get update
Sudo apt-get install mplayer2

and check some audio file with the following argument:

mplayer -ao alsa=hw=1.0 <some_audio_file>
Link to comment
Share on other sites

Well, if built-in mpv in Armbian desktop is the case, you can try to build it from source. I explained how i used to do it in other topic - here. Or try to built mplayer from source which is a little easier and with less possible troubles. I can show you how i do it too, if you want. But mpv is better player and i prefer and recommend it, plus mplayer can't play hevc/h265 contents. I guess there is something to be done with internal ffmpeg, but i don't know how to pass built arguments for it yet.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines