Raymond Yau | 1 Feb 2011 02:05
Picon

mplayer R24920 - Increasing filtered audio buffer size from 65536 to 67584

I also get shuttering and choppy audio with mplayer SVN-r32829-4.3.2

after mplayer display

"Increasing filtered audio buffer size from 65536 to 67584" using oss
or alsa with sound card which has max buffer bytes 65536 bytes ,

but it does not happen with "pulse" or hda driver with max buffer
bytes > 65536 bytes

dec_audio: Allocating 2048 + 65536 = 67584 bytes for output buffer.

audio_setup: frags:  16/16  (4096 bytes/frag)  free:  65536

2048 bytes is only half of the frag size 4096 bytes

why mplayer increasing filtered audio buffer size by half frag or half
period size ?

it look like related to R24920

Change decode_audio() interface

Rewrite decode_audio to better deal with filters that handle input in
large blocks. It now always places output in sh_audio->a_out_buffer
(which was always given as a parameter before) and reallocates the

buffer if needed. After the changes filters can return arbitrarily
large blocks of data without some of it being lost. The new version
also allows simplifying some code.
(Continue reading)

Raymond Yau | 1 Feb 2011 02:48
Picon

Re: Pulse Audio device selection

>I've been working with mplayer and having audio be redirected between
>different pulse audio outputs.

>My setup is like this...
>pulse audio device 0 - Logitech USB Headset
>pulse audio device 1 - Intel HDA Audio

According to
http://git.alsa-project.org/?p=alsa-plugins.git;a=blob_plain;f=doc/README-pulse;hb=HEAD

Both also accept the "device" parameter, which indicate which
source and sink to use.

you can use mplayer -ao alsa:device=pulse1

pcm.pulse0 {
    type pulse
    device "0"
}

pcm.pulse1 {
    type pulse
    device "1"
}
Raymond Yau | 1 Feb 2011 04:42
Picon

Re: problem with mms stream - [AO_ALSA] Trying to reset soundcard

Приветствую, Reimar
> On Sun, Jan 24, 2010 at 02:36:50PM +0300, Goga777 wrote:
> > [AO_ALSA] Write error: Broken pipe4428928.0 (-24.-8) 96.4% 6%
> > [AO_ALSA] Trying to reset soundcard.
> > Increasing filtered audio buffer size from 65536 to 675361% 9%
> > Increasing filtered audio buffer size from 67536 to 675442% 12%
> > [AO_ALSA] Write error: Broken pipe4428928.0 (-24.-8) 24.0% 6%
> > [AO_ALSA] Trying to reset soundcard.
>
> I am not sure this is the same issue, but I had this part as well.
> Solutions:
> 1) use -ao pulse

    res = snd_pcm_writei(alsa_handler, data, num_frames);

      if (res == -EINTR) {
	/* nothing to do */
	res = 0;
      }
      else if (res == -ESTRPIPE) {	/* suspend */
	mp_msg(MSGT_AO,MSGL_INFO,MSGTR_AO_ALSA_PcmInSuspendModeTryingResume);
	while ((res = snd_pcm_resume(alsa_handler)) == -EAGAIN)
	  sleep(1);
      }
      if (res < 0) {
	mp_msg(MSGT_AO,MSGL_ERR,MSGTR_AO_ALSA_WriteError, snd_strerror(res));
	mp_msg(MSGT_AO,MSGL_INFO,MSGTR_AO_ALSA_TryingToResetSoundcard);
	if ((res = snd_pcm_prepare(alsa_handler)) < 0) {
	  mp_msg(MSGT_AO,MSGL_ERR,MSGTR_AO_ALSA_PcmPrepareError, snd_strerror(res));
	  return 0;
(Continue reading)

Raymond Yau | 2 Feb 2011 02:24
Picon

Re: problem with mms stream - [AO_ALSA] Trying to reset soundcard

>Приветствую, Reimar
> On Sun, Jan 24, 2010 at 02:36:50PM +0300, Goga777 wrote:
> > [AO_ALSA] Write error: Broken pipe4428928.0 (-24.-8) 96.4% 6%
> > [AO_ALSA] Trying to reset soundcard.
> > Increasing filtered audio buffer size from 65536 to 675361% 9%
> > Increasing filtered audio buffer size from 67536 to 675442% 12%
> > [AO_ALSA] Write error: Broken pipe4428928.0 (-24.-8) 24.0% 6%
> > [AO_ALSA] Trying to reset soundcard.
>
> I am not sure this is the same issue, but I had this part as well.

      res = snd_pcm_writei(alsa_handler, data, num_frames);
...
      if (res < 0) {
	mp_msg(MSGT_AO,MSGL_ERR,MSGTR_AO_ALSA_WriteError, snd_strerror(res));
	mp_msg(MSGT_AO,MSGL_INFO,MSGTR_AO_ALSA_TryingToResetSoundcard);
	if ((res = snd_pcm_prepare(alsa_handler)) < 0) {
	  mp_msg(MSGT_AO,MSGL_ERR,MSGTR_AO_ALSA_PcmPrepareError, snd_strerror(res));
	  return 0;
	  break;
	}
      }

The "pulse" plugin return -EPIPE "Broken pipe" at four conditions after
mplayer call snd_pcm_writei()

1) io->state == SND_PCM_STATE_XRUN
2) pcm->underrun
3) update_ptr(pcm) return err

(Continue reading)

rudi | 2 Feb 2011 14:23
Picon

H264 encoding

Hi all

It is my first try to encode with h264 and now i have some (or maybee one) 
problem. On the commandline i use:
mencoder -alang de -dvd-device /dev/sr0 dvd://1 -vf crop=720:448::64 -ovc x264 
-x264encopts pass=1 
bitrate=1400:subq=6:partitions=all:8x8dct:me=umh:frameref=5:bframes=3:b_pyramid:weight_b 
-of avi -oac copy -o 2001.avi.
This works but not in the right way, i guess. But when i use:
mencoder -alang de -dvd-device /dev/sr0 dvd://1 -vf crop=720:448::64 -ovc x264 
-x264encopts

pass=1:bitrate=1400:subq=6:partitions=all:8x8dct:me=umh:frameref=5:bframes=3:b_pyramid:weight_b 
-of avi -oac copy -o 2001.avi
mencoder wan't work. 
FATAL: Cannot initialize video driver and
264encopts: Bad argument b_pyramid=(null)
I read on the website from Mplayer this parameters and would try this for a 
test.  Have someone a tip for me, please? Thanks in advance 

greets rudi

p.s. sorry for my bad english ;-(
Till M | 2 Feb 2011 16:24
Picon

slave idle loadfile broken

Since version SVN-r32783-4.4.5, when I try to use the -slave -idle
-quiet command loadfile only works for the first file.  If I try to load
another file mplayer just stops and does nothing.  Even if I issue a
stop or pause command first and then try to load a new file it won't
load a file.  I have to kill mplayer and then start again.  I also can't
step through a list of files, it does nothing.  It all worked fine in
versions prior to and including SVN-r32783-4.4.5.

Regards
Reimar Döffinger | 2 Feb 2011 19:35
Picon
Picon

Re: slave idle loadfile broken

On Thu, Feb 03, 2011 at 02:24:12AM +1100, Till M wrote:
> Since version SVN-r32783-4.4.5,
[...]
> It all worked fine in
> versions prior to and including SVN-r32783-4.4.5.

You are saying that r32783 both does and does not work.
Please state the precise version number that works and does
not work.
And please do not even bother with r32824-r32840 (inclusive),
they are badly broken.
film123 | 2 Feb 2011 20:04
Picon

How to fit video, in mplayer, to full screen keeping aspect ratio and adding the black bars - without stretching

Hello.
Anyone know the command line to play a video in mplayer so that it fits the
full screen (16:9) and automatically adds black bars top and bottom if
required or right and left side if required.
What I do now is add padding to each frame with  ffmpeg.
Thanks, Barry
Murray Colpman | 2 Feb 2011 20:01
Picon

Re: How to fit video, in mplayer, to full screen keeping aspect ratio and adding the black bars - without stretching

On 02/02/11 19:04, film123 <at> gmail.com wrote:
> Hello.
> Anyone know the command line to play a video in mplayer so that it fits the
> full screen (16:9) and automatically adds black bars top and bottom if
> required or right and left side if required.
> What I do now is add padding to each frame with  ffmpeg.
> Thanks, Barry
>
press "f" - if you're using a decent video output driver (eg xv)
film123 | 2 Feb 2011 20:15
Picon

Re: How to fit video, in mplayer, to full screen keeping aspect ratio and adding the black bars - without stretching

Thanks, but I want it to run from a Ubuntu bash script without using a
keyboard.

Something like:

DISPLAY=:0 mplayer -fs -slave -quiet -idle -loop 0 -playlist
/home/barry/playlist1.txt -shuffle -input file=/home/barry/pipe &

This works except it stretches the image to fit the screen in both
directions.

Thanks, Barry

On Wed, Feb 2, 2011 at 2:01 PM, Murray Colpman <muzerakascooby <at> gmail.com>wrote:

> On 02/02/11 19:04, film123 <at> gmail.com wrote:
> > Hello.
> > Anyone know the command line to play a video in mplayer so that it fits
> the
> > full screen (16:9) and automatically adds black bars top and bottom if
> > required or right and left side if required.
> > What I do now is add padding to each frame with  ffmpeg.
> > Thanks, Barry
> >
> press "f" - if you're using a decent video output driver (eg xv)
> _______________________________________________
> MPlayer-users mailing list
> MPlayer-users <at> mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/mplayer-users
>
(Continue reading)


Gmane