avafinger / opi-win-a64-firmware

OPi Win A64 firmware (GbE, Wifi, bluetooth, gc2035)
16 stars 1 forks source link

Sound with hdmi #4

Open blendsoft opened 7 years ago

blendsoft commented 7 years ago

When I tried use vlc or web browser to play sound, it stops for 1 sec constantly, and again, play some seconds and stops. I tried to use analog output but its not compiled in kernel and no module.

avafinger commented 7 years ago

Video decoding was tested with mplayer-hdmi your_file_MP4 (H264).

mplayer-hdmi (output to HDMI) mplayer-jack (output to JACK) mplayer-silent (test video without sound, to make sure libvdpau is OK!)

To play video with VLC and others to JACK output you could try this (or review alsa configuration):

Update with some alsa values

wget https://raw.githubusercontent.com/longsleep/build-pine64-image/master/blobs/asound.state
sudo mkdir -p /var/lib/alsa
sudo mv asound.state /var/lib/alsa/asound.state

With jack you should add the modules in /etc/modules

sunxi_codec
sunxi_i2s
sunxi_sndcodec

or add manually like:

sudo modprobe sunxi_codec
sudo modprobe sunxi_i2s
sudo modprobe sunxi_sndcodec

reboot

sudo apt-get install alsa-base alsa-utils
sudo apt-get install pulseaudio

configure and unmute alsa sudo alsamixer

There is a new kernel with better hw support so there are plans to build a new Image.