[MPlayer-users] choosing which sound card with sdl

chris cringle confused.of.dc at googlemail.com
Mon Mar 16 12:51:07 CET 2009


Sorry for taking a while to reply, I've been away.

Some updates from the answers I've had so far...

If I use sdl and then tell it to use alsa it works ok until I do work
in other windows, as soon as I start refocusing other areas of the
screen the audio gets out of sync with the video. This is the output I
get...

gmplayer  /var/podcasts/hak5/hak5--0502--linux-tank-bot--hd.h264.mp4
MPlayer dev-SVN-rUNKNOWN-4.3.2 (C) 2000-2009 MPlayer Team
CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 6000+ (Family: 15,
Model: 67, Stepping: 3)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
137 audio & 292 video codecs

Playing /var/podcasts/hak5/hak5--0502--linux-tank-bot--hd.h264.mp4.

libavformat file format detected.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xae395b0]edit list not starting at 0, a/v
desync might occur, patch welcome
[lavf] Video stream found, -vid 0
[lavf] Audio stream found, -aid 1
VIDEO:  [avc1]  1280x720  24bpp  24.000 fps    0.0 kbps ( 0.0 kbyte/s)
Xlib:  extension "Generic Event Extension" missing on display ":0.0".
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
==========================================================================
Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
FAAD: compressed input bitrate missing, assuming 128kbit/s!
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio) decoder)
==========================================================================
[AO SDL] Samplerate: 44100Hz Channels: Stereo Format s16le
[AO SDL] using alsa audio driver.
AO: [sdl] 44100Hz 2ch s16le (2 bytes per sample)
Starting playback...
VDec: vo config request - 1280 x 720 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO: [xv] 1280x720 => 1280x720 Planar YV12
A:  14.2 V:  13.9 A-V:  0.352 ct: -0.012   0/  0 51% 24%  1.7% 57 0
52%

           ************************************************
           **** Your system is too SLOW to play this!  ****
           ************************************************

Possible reasons, problems, workarounds:
- Most common: broken/buggy _audio_ driver
  - Try -ao sdl or use the OSS emulation of ALSA.
  - Experiment with different values for -autosync, 30 is a good start.
- Slow video output
  - Try a different -vo driver (-vo help for a list) or try -framedrop!
- Slow CPU
  - Don't try to play a big DVD/DivX on a slow CPU! Try some of the lavdopts,
    e.g. -vfm ffmpeg -lavdopts lowres=1:fast:skiploopfilter=all.
- Broken file
  - Try various combinations of -nobps -ni -forceidx -mc 0.
- Slow media (NFS/SMB mounts, DVD, VCD etc)
  - Try -cache 8192.
- Are you using -cache to play a non-interleaved AVI file?
  - Try -nocache.
Read DOCS/HTML/en/video.html for tuning/speedup tips.
If none of this helps you, read DOCS/HTML/en/bugreports.html.

A:  77.2 V:  77.1 A-V:  0.136 ct: -0.018   0/  0 53% 27%  1.6% 839 0 48%


If I then try adding  -autosync  30 I stop getting the error messages
but I still lose sync when the system is doing other things.

I'd love to be able to just unplug the headset but that is my business
voip line and customers tend to get annoyed when they can't call in
because I'm watching videos!

I'm running Arch linux and someone has created a package for mplayer
with pulse. I'm downloading it now, will report back when I get
somewhere.

Chris


On Wed, Mar 11, 2009 at 9:18 PM, The Wanderer
<inverseparadox at comcast.net> wrote:
> chris cringle wrote:
>
>> On Wed, Mar 11, 2009 at 10:52 AM, The Wanderer
>> <inverseparadox at comcast.net> wrote:
>
>>> Given that SDL isn't hardware-specific, but is effectively a
>>> wrapper over whatever your system provides, I wouldn't be in the
>>> least surprised if it weren't possible to tell it what hardware to
>>> use.
>>>
>>> Your system-wide SDL preferences may offer more options, but that
>>> won't necessarily help your case.
>>
>> I'm new to SDL as I usually just use alsa. Where are these settings?
>> I can't find any sdl related files in /etc.
>
> I don't know; I've never needed to configure SDL beyond the way it's
> installed by default.
>
>>> All I can suggest is, look at the man page; if it doesn't explain
>>> how to do it, then there's fairly good odds that it can't be done.
>>> (Though in some cases that just means that no one's implemented it
>>> yet.)
>>
>> There is no mention of it in the mplayer man page.
>
> It's there in mine, under the "AUDIO OUTPUT DRIVERS (MPLAYER ONLY)"
> section.
>
>> I'm not sure why I have to use sdl, if all it does is wrap over the
>> other device types why when I use them directly does my video die?
>
> Configuration issues, probably, but it's kind of hard to guess without
> seeing the output when it fails.
>
> --
>       The Wanderer
>
> Warning: Simply because I argue an issue does not mean I agree with any
> side of it.
>
> Secrecy is the beginning of tyranny.
> _______________________________________________
> MPlayer-users mailing list
> MPlayer-users at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/mplayer-users
>



More information about the MPlayer-users mailing list