You are not logged in.
I can't seem to figure out how to make mplayer's "ao=pulse" option to work.
It works fine with alsa, but I couldn't find anything definitive on Google about what might be wrong. I think one of the problems might be that I couldn't find any errors in mplayer's output.
Here is the verbose output of an example file:
$ mplayer -v example.mp4
MPlayer SVN-r35107-4.7.2 (C) 2000-2012 MPlayer Team
CPU vendor name: GenuineIntel max cpuid level: 11
CPU: Intel(R) Core(TM) i5 CPU M 430 @ 2.27GHz (Family: 6, Model: 37, Stepping: 2)
extended cpuid-level: 8
extended cache-info: 16801856
Detected cache-line size is 64 bytes
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNowExt: 0 SSE: 1 SSE2: 1 SSSE3: 1
Compiled with runtime CPU detection.
get_path('codecs.conf') -> '/home/user/.mplayer/codecs.conf'
Reading optional codecs config file /home/mike/.mplayer/codecs.conf: No such file or directory
Reading optional codecs config file /etc/mplayer/codecs.conf: 198 audio & 409 video codecs
init_freetype
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
get_path('fonts') -> '/home/user/.mplayer/fonts'
Configuration: --prefix=/usr --enable-runtime-cpudetection --disable-gui --disable-arts --disable-liblzo --disable-speex --disable-cdparanoia --disable-openal --disable-libdv --disable-musepack --disable-esd --disable-mga --disable-ass-internal --enable-xvmc --enable-radio --enable-radio-capture --disable-vdpau --enable-vaapi --language=all --confdir=/etc/mplayer
CommandLine: '-v' 'example.mp4'
Using nanosleep() timing
get_path('input.conf') -> '/home/user/.mplayer/input.conf'
Reading optional input config file /home/user/.mplayer/input.conf: No such file or directory
Parsing input config file /etc/mplayer/input.conf
Input config file /etc/mplayer/input.conf parsed: 92 binds
get_path('example.mp4.conf') -> '/home/user/.mplayer/example.mp4.conf'
Playing example.mp4.
get_path('sub/') -> '/home/user/.mplayer/sub/'
[file] File size is 2285184 bytes
STREAM: [file] example.mp4
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
libavformat version 54.25.104 (internal)
Configuration: --enable-gpl --enable-postproc
LAVF_check: QuickTime / MOV
libavformat file format detected.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xeed4a0]ISO: File Type Major Brand: mp42
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xeed4a0]File position before avformat_find_stream_info() is 10279
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xeed4a0]first_dts 14 not matching first dts 0 in que
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xeed4a0]first_dts 14 not matching first dts 0 in que
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xeed4a0]first_dts 14 not matching first dts 0 in que
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xeed4a0]first_dts 14 not matching first dts 0 in que
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xeed4a0]first_dts 14 not matching first dts 0 in que
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xeed4a0]All info found
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xeed4a0]File position after avformat_find_stream_info() is 31013
==> Found video stream: 0
======= VIDEO Format ======
biSize 79
biWidth 640
biHeight 360
biPlanes 0
biBitCount 24
biCompression 875967048='H264'
biSizeImage 691200
Unknown extra header dump: [1] [42] [c0] [1e] [ff] [e1] [0] [18] [67] [42] [c0] [1e] [da] [2] [80] [bf] [e5] [84] [0] [0] [3] [0] [4] [0] [0] [3] [0] [c0] [3c] [58] [ba] [80] [1] [0] [4] [68] [ce] [3c] [80]
===========================
[lavf] stream 0: video (h264), -vid 0
==> Found audio stream: 1
======= WAVE Format =======
Format Tag: 20557 (0x504D)
Channels: 2
Samplerate: 44100
avg byte/sec: 12021
Block align: 1
bits/sample: 16
cbSize: 16
Unknown extra header dump: [12] [10] [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [0]
==========================================================================
[lavf] stream 1: audio (aac), -aid 0, -alang und
LAVF: 1 audio and 1 video streams found
LAVF: build 3545448
VIDEO: [H264] 640x360 24bpp 24.000 fps 562.6 kbps (68.7 kbyte/s)
[V] filefmt:44 fourcc:0x34363248 size:640x360 fps:24.000 ftime:=0.0417
Clip info:
major_brand: mp42
minor_version: 0
compatible_brands: isommp42
creation_time: 2013-03-18 01:56:42
Load subtitles in ./
get_path('sub/') -> '/home/user/.mplayer/sub/'
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xeed4a0]demuxer injecting skip 2112
X11 opening display: :0
vo: X11 color mask: FFFFFF (R:FF0000 G:FF00 B:FF)
vo: X11 running at 1600x900 with depth 24 and 32 bpp (":0" => local display)
[x11] Detected wm supports NetWM.
[x11] Detected wm supports FULLSCREEN state.
[x11] Detected wm supports ABOVE state.
[x11] Detected wm supports BELOW state.
[x11] Current fstype setting honours FULLSCREEN ABOVE BELOW X atoms
[VO_XV] Using Xv Adapter #0 (Intel(R) Textured Video)
[xv common] Drawing no colorkey.
[xv common] Maximum source image dimensions: 2048x2048
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 54.53.100 (internal)
Configuration: --enable-gpl --enable-postproc
INFO: libavcodec init OK!
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
dec_audio: Allocating 1536000 + 131072 = 1667072 bytes for output buffer.
FFmpeg's libavcodec audio codec
INFO: libavcodec "aac" init OK!
AUDIO: 44100 Hz, 2 ch, s16le, 96.2 kbit/6.81% (ratio: 12021->176400)
Selected audio codec: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4 Audio))
==========================================================================
Building audio filter chain for 44100Hz/2ch/s16le -> 0Hz/0ch/??...
[libaf] Adding filter dummy
[dummy] Was reinitialized: 44100Hz/2ch/s16le
[dummy] Was reinitialized: 44100Hz/2ch/s16le
Trying preferred audio driver 'pulse', options '[none]'
AO: [pulse] 44100Hz 2ch s16le (2 bytes per sample)
AO: Description: PulseAudio audio output
AO: Author: Lennart Poettering
Building audio filter chain for 44100Hz/2ch/s16le -> 44100Hz/2ch/s16le...
[dummy] Was reinitialized: 44100Hz/2ch/s16le
[dummy] Was reinitialized: 44100Hz/2ch/s16le
Starting playback...
Increasing filtered audio buffer size from 0 to 46144
Unsupported PixelFormat 61
Unsupported PixelFormat 81
Unsupported PixelFormat 61
[VD_FFMPEG] Trying pixfmt=0.
[ffmpeg] aspect_ratio: 0.000000
Unsupported PixelFormat 61
VDec: vo config request - 640 x 360 (preferred colorspace: Unknown 0x0000)
Trying filter chain: vo
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
SwScale params: -1 x -1 (-1=no scaling)
Trying filter chain: scale vo
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
[VD_FFMPEG] Trying pixfmt=1.
[ffmpeg] aspect_ratio: 0.000000
VDec: vo config request - 640 x 360 (preferred colorspace: H.264 VA-API Acceleration)
Trying filter chain: vo
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
SwScale params: -1 x -1 (-1=no scaling)
Trying filter chain: scale vo
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
Unsupported PixelFormat 81
[VD_FFMPEG] Trying pixfmt=2.
[ffmpeg] aspect_ratio: 0.000000
Unsupported PixelFormat 81
VDec: vo config request - 640 x 360 (preferred colorspace: Unknown 0x0000)
Trying filter chain: vo
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
SwScale params: -1 x -1 (-1=no scaling)
Trying filter chain: scale vo
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
[VD_FFMPEG] Trying pixfmt=3.
[ffmpeg] aspect_ratio: 0.000000
VDec: vo config request - 640 x 360 (preferred colorspace: Planar YV12)
Trying filter chain: vo
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO Config (640x360->640x360,flags=0,'MPlayer',0x32315659)
VO: [xv] 640x360 => 640x360 Planar YV12
VO: Description: X11/Xv
VO: Author: Gerd Knorr <kraxel@goldbach.in-berlin.de> and others
Xvideo image format: 0x32595559 (YUY2) packed
Xvideo image format: 0x32315659 (YV12) planar
Xvideo image format: 0x30323449 (I420) planar
Xvideo image format: 0x59565955 (UYVY) packed
Xvideo image format: 0x434d5658 (XVMC) planar
using Xvideo port 75 for hw scaling
*** [vo] Exporting mp_image_t, 640x360x12bpp YUV planar, 345600 bytes
Unicode font: 2293 glyphs.
Unicode font: 2293 glyphs.
A: 4.3 V: 4.3 A-V: 0.000 ct: 0.042 0/ 0 4% 0% 0.3% 0 0
Uninit audio filters...
[libaf] Removing filter dummy
Uninit audio: ffmpeg
Uninit video: ffmpeg
vo: uninit ...
Exiting... (Quit)Is there something else I can check with the MPlayer feedback?
Also, I'm using mplayer-vaapi, but I took a look at its abs PKGBUILD and it didn't have any configure options disabling pulseaudio. At least I'm assuming the abs PKGBUILDs reflect the default options that the binaries come with.
Last edited by DeletedUser210719 (2013-04-14 05:26:07)
Offline
When you build mplayer, some options are enabled automatically if needed dependencies are installed on your system. You can check what is set to be automatically enabled (as well as how to enable/disable an option) when you run ./configure --help in the source code's directory.
As far as the deaf PA output is concerned: are you sure there's nothing muted in your PA mixer?...
:: Registered Linux User No. 223384
:: github
:: infinality-bundle+fonts: good looking fonts made easy
Offline
You were right about it being muted through the PA mixer! I didn't think about that, and installed pavucontrol. I figure I'll try to learn how to learn to do it through pactl/pacmd sometime.
Though, I have "flat-volumes = no" so I have a kind of global maximum volume and normally can set other applications' volumes individually from within the program. Pavucontrol reflects MPD+ncmpcpp volume changes, but apparently doesn't seem to pick up MPlayer's application volume.
Is there any way to fix MPlayer so it's internal volume adjustment will be the same as what is under Playback in pavucontrol? Or if it isn't exclusive to MPlayer, is there any way to have all applications start at the 100% playback volume (not the output device volume)?
EDIT: Quickly found it! Haha I had "softvol=yes" in my config file, I think to try to increase the Alsa volume when I had that on. Thanks for your help anyway!
Last edited by DeletedUser210719 (2013-04-14 05:25:24)
Offline