doing the mplayer conf to get video and sound working. how to :D

gmplayer cli adding a vo=gpu
Code:
Failed to open VDPAU backend Shared object "libvdpau_radeonsi.so" not found, required by "gmplayer"
before adding anything to a conf flle it played without sound. added ao="oss" then sound works but video stopped working altogether no window at all. but sound. part of a conf I ripped off the net took out most of it changed the video and sound to try and whittle it down to work first. so now I'm stuck.
 
I had a similar problem with multimedia/mpv
I solved this way:
Code:
%  cat /dev/sndstat
Installed devices:
pcm0: <NVIDIA (0x0084) (HDMI/DP 8ch)> (play)
pcm1: <NVIDIA (0x0084) (HDMI/DP 8ch)> (play) default   <------
pcm2: <NVIDIA (0x0084) (HDMI/DP 8ch)> (play)
pcm3: <NVIDIA (0x0084) (HDMI/DP 8ch)> (play)
pcm4: <Realtek (0x0867) (Analog 2.0+HP/2.0)> (play/rec)\

(2)
I set the default audio device into:
# nano /etc/sysctl.conf

adding:
Code:
hw.snd.default_unit=1

I added also:
Code:
hw.snd.vpc_0db=1
( to set full up audio volume )

(3)
Code:
%   mpv --audio-device=help
gives the availables audio sources:
List of detected audio devices:
  'auto' (Autoselect device)
  'oss//dev/dsp' (Default)
  'oss//dev/dsp0' (NVIDIA (0x0084) (HDMI/DP 8ch))
  'oss//dev/dsp1' (NVIDIA (0x0084) (HDMI/DP 8ch))   <--------
  'oss//dev/dsp2' (NVIDIA (0x0084) (HDMI/DP 8ch))
  'oss//dev/dsp3' (NVIDIA (0x0084) (HDMI/DP 8ch))
  'oss//dev/dsp4' (Realtek (0x0867) (Analog 2.0+HP/2.0))

(4) then, into:
% nano ~/.config/mpv/mpv.conf

I set
Code:
audio-device=oss//dev/dsp1

I hope this helps.
 
I had a similar problem with multimedia/mpv
I solved this way:
Code:
%  cat /dev/sndstat
Installed devices:
pcm0: <NVIDIA (0x0084) (HDMI/DP 8ch)> (play)
pcm1: <NVIDIA (0x0084) (HDMI/DP 8ch)> (play) default   <------
pcm2: <NVIDIA (0x0084) (HDMI/DP 8ch)> (play)
pcm3: <NVIDIA (0x0084) (HDMI/DP 8ch)> (play)
pcm4: <Realtek (0x0867) (Analog 2.0+HP/2.0)> (play/rec)\

(2)
I set the default audio device into:
# nano /etc/sysctl.conf

adding:
Code:
hw.snd.default_unit=1

I added also:
Code:
hw.snd.vpc_0db=1
( to set full up audio volume )

(3)
Code:
%   mpv --audio-device=help
gives the availables audio sources:
List of detected audio devices:
  'auto' (Autoselect device)
  'oss//dev/dsp' (Default)
  'oss//dev/dsp0' (NVIDIA (0x0084) (HDMI/DP 8ch))
  'oss//dev/dsp1' (NVIDIA (0x0084) (HDMI/DP 8ch))   <--------
  'oss//dev/dsp2' (NVIDIA (0x0084) (HDMI/DP 8ch))
  'oss//dev/dsp3' (NVIDIA (0x0084) (HDMI/DP 8ch))
  'oss//dev/dsp4' (Realtek (0x0867) (Analog 2.0+HP/2.0))

(4) then, into:
% nano ~/.config/mpv/mpv.conf

I set
Code:
audio-device=oss//dev/dsp1

I hope this helps.
my current mpv.conf
Code:
hwdec=vdpau
vo=gpu
#ao=pulse
cache=auto
volume=80
brightness=10
contrast=3
screenshot-template="%f-%05n"
screenshot-directory=/home/userx/Pictures/mpv-sshots
I took it from my Linux box and commented out pulse and sound just works, but now I am using VLC for the main video player

Code:
mpv --audio-device=help
List of detected audio devices:
  'auto' (Autoselect device)
  'oss//dev/dsp' (Default)
  'oss//dev/dsp0' (ATI R6xx (HDMI))
  'oss//dev/dsp1' (Realtek ALC236 (Analog 2.0+HP/2.0))
  'oss//dev/dsp2' (Realtek ALC236 (Right Analog Mic))
I just want pulseaudio for sound so I can have the ability to increase the sound over that 100 % when videos sound is not loud enough.

forget about that old alsa and oss primitive sound systems even though they have to be used as a backend.
 
You can do it with multimedia/mpv too by adding volume-max=300 to ~/.config/mpv/mpv.conf. (You can put any number instead of 300).

you can push the gas peddle to the floor before you put it into drive too, but is that something you'd really want to do?

I don't want to blow out my ears as soon as a video starts.
 
you can push the gas peddle to the floor before you put it into drive too, but is that something you'd really want to do?

I don't want to blow out my ears as soon as a video starts.
I'm well aware that this config does not work by itself and requires prerequisites. I just meant that you can increase the volume in an easier way when using mpv. Certainly, you can use audio/sdl2_mixer or other stuff too. In addition, this command only selects the maximum volume for mpv, which you can obviously increase or decrease.
 
Back
Top