[MPlayer-users] Problems with mplayer on PPC

Rogério Brito linuxconsult at yahoo.com.br
Thu Apr 25 09:56:01 CEST 2002


On Apr 24 2002, Arpi wrote:
> > > (so change AFMT_S16_LE -> AFMT_S16_BE)
> > > 
> > > and tell me if iy's ok (don't forget to change back that if() bellow to
> > > the original code)
> > 
> > 	Ok. This time, it didn't work. I get the white noise effects.
> > 	:-(
> > 
> > 	So, with the "wrong" fix it worked, but with the new fix, it
> > 	didn't (obviously, I changed the if condition back to the
> > 	original).
> 
> hmm, weird.
> it means the bug is somewhere in audio out.
> what ao driver are you using?

	Yes, the audio out seems to be the place. Is that
	AFMT_S16_LE/BE setting meant to be used to initialize the
	sound card with SNDCTL_DSP_SETFMT?

	The driver the iBook uses is dmasound_pmac.

	I wrote a test program to just open the device and saw that it
	only accepts BIG endian (16bit) samples: the opposite of my
	x86. Therefore, WAVs (which are little-endian) should have
	swapped bytes, right?

> show me whole -v log of pcm playback on ppc

	Ok, it is attached to this message (relative to an original
	mplayer 0.90pre1).

	Do you want me to generate any other log with modifications to
	the source code?

> > > for lpcm, try this in ad_dvdpcm.c:
> > > and remove the whole for(){  ...  } section
> > > and tell me if it's ok
> > 
> > 	This one worked perfectly well. Now, I can watch vob files
> > 	without any problem.
> 
> hmm. even more strange than...
> if this works, then it should work for ad_pcm too

	Well, I don't know if both problems are connected or not (see
	below):

	I see that when I play only the audio of a VOB (-vo null) on
	PPC, I get this (original mplayer 0.90pre1):

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
AO: [oss] 48000Hz Stereo Signed 16-bit (Big-Endian)
ao2: 48000 Hz  2 chans  Signed 16-bit (Big-Endian)
audio_setup: sample format: Signed 16-bit (Big-Endian) (requested: Signed 16-bit (Big-Endian))
audio_setup: using 2 channels (requested: 2)
audio_setup: using 44100 Hz samplerate (requested: 48000)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

	On the other hand, playing the *same* DVD on x86, I get:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
AO: [oss] 48000Hz Stereo Signed 16-bit (Little-Endian)
ao2: 48000 Hz  2 chans  Signed 16-bit (Little-Endian)
audio_setup: sample format: Signed 16-bit (Little-Endian) (requested: Signed 16-bit (Little-Endian))
audio_setup: using 2 channels (requested: 2)
audio_setup: using 48000 Hz samplerate (requested: 48000)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

	See the difference between the lines that say the sample
	format? Weird, huh? :-) And all the Little/Big-Endian in the
	log.

> > 	As a side comment, did you get the files that I uploaded to
> > 	the ftp site (regarding the audio/wav dump with incorrect
> > 	headers)?
> 
> no, it's not my code, but atmos will check it, i'm sure
(...)
> should be easy to fix

	Ok, I'm waiting for that, thanks.


	Thank you very much, Roger...

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  Rogério Brito - rbrito at iname.com - http://www.ime.usp.br/~rbrito/
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-------------- next part --------------


MPlayer 0.90pre1.1-2.95.4 (C) 2000-2002 Arpad Gereoffy (see DOCS!)

CommandLine:Reading /home/rbrito/.mplayer/codecs.conf: 31 audio & 81 video codecs
get_path('font/font.desc') -> '/home/rbrito/.mplayer/font/font.desc'
 '-v' '/home/rbrito/lixo/track06.cdda.wav'
Linux RTC init error: Permission denied
Using usleep() timing
font: can't open file: /home/rbrito/.mplayer/font/font.desc
font: can't open file: /usr/share/mplayer/font/font.desc
Using Unoptimized OnScreenDisplay
get_path('input.conf') -> '/home/rbrito/.mplayer/input.conf'
Can't open input config file /home/rbrito/.mplayer/input.conf : No such file or directory
Falling back on default (hardcoded) config
Playing /home/rbrito/lixo/track06.cdda.wav
Can't open IFO file: No such file or directory
File size is 10960364 bytes
Not an URL!
DEMUXER: freeing demuxer at 0x1028a420  
Checking for YUV4MPEG2
DEMUXER: freeing demuxer at 0x1028a420  
ASF_check: not ASF guid!
DEMUXER: freeing demuxer at 0x1028a420  
Checking for NuppelVideo
DEMUXER: freeing demuxer at 0x1028a420  
Checking for MOV
DEMUXER: freeing demuxer at 0x1028a420  
Checking for VIVO
DEMUXER: freeing demuxer at 0x1028a420  
header block 1 size: 73
Checking for REAL
DEMUXER: freeing demuxer at 0x1028a420  
DEMUXER: freeing demuxer at 0x1028a420  
DEMUXER: freeing demuxer at 0x1028a420  
DEMUXER: freeing demuxer at 0x1028a420  
DEMUXER: freeing demuxer at 0x1028a420  
DEMUXER: freeing demuxer at 0x1028a420  
MPEG Stream reached EOF
ds_fill_buffer: EOF reached (stream: video)  
Not MPEG System Stream format... (maybe Transport Stream?)
MPEG packet stats: p100: 45  p101: 0  PES: 2  MP3: 4 
DEMUXER: freeing demuxer at 0x1028a420  
==> Found audio stream: 0
demux_audio: audio data 0x0 - 0x2C  
Detected audio file
Detected audio codec: [pcm] drv:2 (Uncompressed PCM)
Initializing audio codec...
dec_audio: Allocating 2048 + 65536 = 67584 bytes for output buffer
Selecting Audio Decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: srate=44100  chans=2  bps=2  sfmt=0x10  ratio: 176400->176400
AO: [oss] 44100Hz Stereo Signed 16-bit (Little-Endian)
AO: Description: OSS/ioctl audio output
AO: Author: A'rpi
Video: no video!!!
ao2: 44100 Hz  2 chans  Signed 16-bit (Little-Endian)
audio_setup: using '/dev/dsp' dsp device
audio_setup: sample format: Signed 16-bit (Big-Endian) (requested: Signed 16-bit (Little-Endian))
audio_setup: using 2 channels (requested: 2)
audio_setup: using 44100 Hz samplerate (requested: 44100)
audio_setup: frags:   4/4  (32768 bytes/frag)  free: 131072
Freeing 0 unused video chunks
Start playing...
A:   0.0  0.0% 0%   
A:   0.0  0.4% 0%   
A:   0.2  0.4% 0%   
A:   0.4  0.5% 0%   
A:   0.6  0.5% 0%   
A:   0.7  0.4% 0%   
A:   0.9  0.4% 0%   
A:   1.1  0.4% 0%   
A:   1.3  0.5% 0%   
A:   1.5  0.4% 0%   
A:   1.7  0.4% 0%   
A:   1.9  0.4% 0%   
A:   2.0  0.4% 0%   
A:   2.2  0.4% 0%   
A:   2.4  0.4% 0%   
A:   2.6  0.4% 0%   
A:   2.8  0.4% 0%   
A:   3.0  0.4% 0%   
A:   3.2  0.4% 0%   
A:   3.3  0.4% 0%   
A:   3.5  0.4% 0%   
A:   3.7  0.4% 0%   
A:   3.9  0.4% 0%   
A:   4.1  0.4% 0%   
A:   4.3  0.4% 0%   
A:   4.5  0.4% 0%   
A:   4.6  0.4% 0%   
A:   4.8  0.4% 0%   
A:   5.0  0.4% 0%   
A:   5.2  0.4% 0%   
A:   5.4  0.4% 0%   
A:   5.6  0.4% 0%   
A:   5.8  0.4% 0%   
A:   5.9  0.4% 0%   
A:   6.1  0.4% 0%   
A:   6.3  0.4% 0%   
A:   6.5  0.4% 0%   
A:   6.7  0.4% 0%   
A:   6.9  0.4% 0%   
A:   7.1  0.4% 0%   
A:   7.2  0.4% 0%   
A:   7.4  0.4% 0%   
A:   7.6  0.4% 0%   
A:   7.8  0.4% 0%   
A:   8.0  0.4% 0%   
A:   8.2  0.4% 0%   
A:   8.4  0.4% 0%   
A:   8.5  0.4% 0%   
A:   8.7  0.4% 0%   
A:   8.9  0.4% 0%   
A:   9.1  0.4% 0%   
A:   9.3  0.4% 0%   
A:   9.5  0.4% 0%   
A:   9.7  0.4% 0%   
A:   9.8  0.4% 0%   
A:  10.0  0.4% 0%   
A:  10.2  0.4% 0%   
A:  10.4  0.4% 0%   
A:  10.6  0.4% 0%   
A:  10.8  0.4% 0%   
A:  11.0  0.4% 0%   
A:  11.1  0.4% 0%   
A:  11.3  0.4% 0%   
A:  11.5  0.4% 0%   
A:  11.7  0.4% 0%   
A:  11.9  0.4% 0%   
A:  12.1  0.4% 0%   
A:  12.3  0.4% 0%   
A:  12.4  0.4% 0%   
A:  12.6  0.4% 0%   
A:  12.8  0.4% 0%   
A:  13.0  0.4% 0%   
A:  13.2  0.4% 0%   
A:  13.4  0.4% 0%   
A:  13.6  0.4% 0%   
A:  13.7  0.4% 0%   
A:  13.9  0.4% 0%   
A:  14.1  0.4% 0%   
A:  14.3  0.4% 0%   
A:  14.5  0.4% 0%   
A:  14.7  0.4% 0%   
A:  14.9  0.4% 0%   
A:  15.0  0.4% 0%   
A:  15.2  0.4% 0%   
A:  15.4  0.4% 0%   
A:  15.6  0.4% 0%   
A:  15.8  0.4% 0%   
A:  16.0  0.4% 0%   
A:  16.2  0.4% 0%   
A:  16.3  0.4% 0%   
A:  16.5  0.4% 0%   
A:  16.7  0.4% 0%   
A:  16.9  0.4% 0%   
A:  17.1  0.4% 0%   
A:  17.3  0.4% 0%   
A:  17.5  0.4% 0%   
A:  17.6  0.4% 0%   
A:  17.8  0.4% 0%   
A:  18.0  0.4% 0%   
A:  18.2  0.4% 0%   
A:  18.4  0.4% 0%   
A:  18.6  0.4% 0%   
A:  18.8  0.4% 0%   
A:  18.9  0.4% 0%   
A:  19.1  0.4% 0%   
A:  19.3  0.4% 0%   
A:  19.5  0.4% 0%   
A:  19.7  0.4% 0%   
A:  19.9  0.4% 0%   
A:  20.1  0.4% 0%   
A:  20.2  0.4% 0%   
A:  20.4  0.4% 0%   
A:  20.6  0.4% 0%   
A:  20.8  0.4% 0%   
A:  21.0  0.4% 0%   
A:  21.2  0.4% 0%   
A:  21.4  0.4% 0%   
A:  21.5  0.4% 0%   
A:  21.7  0.4% 0%   
A:  21.9  0.4% 0%   
A:  22.1  0.4% 0%   
A:  22.3  0.4% 0%   
A:  22.5  0.4% 0%   
A:  22.7  0.4% 0%   
A:  22.8  0.4% 0%   
A:  23.0  0.4% 0%   
A:  23.2  0.4% 0%   
A:  23.4  0.4% 0%   
A:  23.6  0.4% 0%   
A:  23.8  0.4% 0%   
A:  24.0  0.4% 0%   
A:  24.1  0.4% 0%   
A:  24.3  0.4% 0%   
A:  24.5  0.4% 0%   
A:  24.7  0.4% 0%   
A:  24.9  0.4% 0%   
A:  25.1  0.4% 0%   
A:  25.3  0.4% 0%   
A:  25.4  0.4% 0%   
A:  25.6  0.4% 0%   
A:  25.8  0.4% 0%   
A:  26.0  0.4% 0%   
A:  26.2  0.4% 0%   
A:  26.4  0.4% 0%   
A:  26.6  0.4% 0%   
A:  26.7  0.4% 0%   
A:  26.9  0.4% 0%   
A:  27.1  0.4% 0%   
A:  27.3  0.4% 0%   
A:  27.5  0.4% 0%   
A:  27.7  0.4% 0%   
A:  27.9  0.4% 0%   
A:  28.0  0.4% 0%   
A:  28.2  0.4% 0%   
A:  28.4  0.4% 0%   
A:  28.6  0.4% 0%   
A:  28.8  0.4% 0%   
A:  29.0  0.4% 0%   
A:  29.2  0.4% 0%   
A:  29.4  0.4% 0%   
A:  29.5  0.4% 0%   
A:  29.7  0.4% 0%   
A:  29.9  0.4% 0%   
A:  30.1  0.4% 0%   
A:  30.3  0.4% 0%   
A:  30.5  0.4% 0%   
A:  30.7  0.4% 0%   
A:  30.8  0.4% 0%   
A:  31.0  0.4% 0%   
A:  31.2  0.4% 0%   
A:  31.4  0.4% 0%   
A:  31.6  0.4% 0%   
A:  31.8  0.4% 0%   
A:  32.0  0.4% 0%   
A:  32.1  0.4% 0%   
A:  32.3  0.4% 0%   
A:  32.5  0.4% 0%   
A:  32.7  0.4% 0%   
A:  32.9  0.4% 0%   
A:  33.1  0.4% 0%   
A:  33.3  0.4% 0%   
A:  33.4  0.4% 0%   
A:  33.6  0.4% 0%   
A:  33.8  0.4% 0%   
A:  34.0  0.4% 0%   
A:  34.2  0.4% 0%   
A:  34.4  0.4% 0%   
A:  34.6  0.4% 0%   
A:  34.7  0.4% 0%   
A:  34.9  0.4% 0%   
A:  35.1  0.4% 0%   
A:  35.3  0.4% 0%   
A:  35.5  0.4% 0%   
A:  35.7  0.4% 0%   
A:  35.9  0.4% 0%   
A:  36.0  0.4% 0%   
A:  36.2  0.4% 0%   
A:  36.4  0.4% 0%   
A:  36.6  0.4% 0%   
A:  36.8  0.4% 0%   
A:  37.0  0.4% 0%   
A:  37.2  0.4% 0%   
A:  37.3  0.4% 0%   
A:  37.5  0.4% 0%   
A:  37.7  0.4% 0%   
A:  37.9  0.4% 0%   
A:  38.1  0.4% 0%   
A:  38.3  0.4% 0%   
A:  38.5  0.4% 0%   
A:  38.6  0.4% 0%   
A:  38.8  0.4% 0%   
A:  39.0  0.4% 0%   
A:  39.2  0.4% 0%   
A:  39.4  0.4% 0%   
A:  39.6  0.4% 0%   
A:  39.8  0.4% 0%   
A:  39.9  0.4% 0%   
A:  40.1  0.4% 0%   
A:  40.3  0.4% 0%   
A:  40.5  0.4% 0%   
A:  40.7  0.4% 0%   
A:  40.9  0.4% 0%   
A:  41.1  0.4% 0%   
A:  41.2  0.4% 0%   
A:  41.4  0.4% 0%   
A:  41.6  0.4% 0%   
A:  41.8  0.4% 0%   
A:  42.0  0.4% 0%   
A:  42.2  0.4% 0%   
A:  42.4  0.4% 0%   
A:  42.5  0.4% 0%   
A:  42.7  0.4% 0%   
A:  42.9  0.4% 0%   
A:  43.1  0.4% 0%   
A:  43.3  0.4% 0%   
A:  43.5  0.4% 0%   
A:  43.7  0.4% 0%   
A:  43.8  0.4% 0%   
A:  44.0  0.4% 0%   
A:  44.2  0.4% 0%   
A:  44.4  0.4% 0%   
A:  44.6  0.4% 0%   
A:  44.8  0.4% 0%   
A:  45.0  0.4% 0%   
A:  45.1  0.4% 0%   
A:  45.3  0.4% 0%   
A:  45.5  0.4% 0%   
A:  45.7  0.4% 0%   
A:  45.9  0.4% 0%   
A:  46.1  0.4% 0%   
A:  46.3  0.4% 0%   
A:  46.4  0.4% 0%   
A:  46.6  0.4% 0%   
A:  46.8  0.4% 0%   
A:  47.0  0.4% 0%   
A:  47.2  0.4% 0%   
A:  47.4  0.4% 0%   
A:  47.6  0.4% 0%   
A:  47.7  0.4% 0%   
A:  47.9  0.4% 0%   
A:  48.1  0.4% 0%   
A:  48.3  0.4% 0%   
A:  48.5  0.4% 0%   
A:  48.7  0.4% 0%   
A:  48.9  0.4% 0%   
A:  49.0  0.4% 0%   
A:  49.2  0.4% 0%   
A:  49.4  0.4% 0%   
A:  49.6  0.4% 0%   
A:  49.8  0.4% 0%   
A:  50.0  0.4% 0%   
A:  50.2  0.4% 0%   
A:  50.3  0.4% 0%   
A:  50.5  0.4% 0%   
A:  50.7  0.4% 0%   
A:  50.9  0.4% 0%   
A:  51.1  0.4% 0%   
A:  51.3  0.4% 0%   
A:  51.5  0.4% 0%   
A:  51.6  0.4% 0%   
A:  51.8  0.4% 0%   
A:  52.0  0.4% 0%   
A:  52.2  0.4% 0%   
A:  52.4  0.4% 0%   
A:  52.6  0.4% 0%   
A:  52.8  0.4% 0%   
A:  52.9  0.4% 0%   
A:  53.1  0.4% 0%   
A:  53.3  0.4% 0%   
A:  53.5  0.4% 0%   
A:  53.7  0.4% 0%   
A:  53.9  0.4% 0%   
A:  54.1  0.4% 0%   
A:  54.2  0.4% 0%   
A:  54.4  0.4% 0%   
A:  54.6  0.4% 0%   
A:  54.8  0.4% 0%   
A:  55.0  0.4% 0%   
A:  55.2  0.4% 0%   
A:  55.4  0.4% 0%   
A:  55.5  0.4% 0%   
A:  55.7  0.4% 0%   
A:  55.9  0.4% 0%   
A:  56.1  0.4% 0%   
A:  56.3  0.4% 0%   
A:  56.5  0.4% 0%   
A:  56.7  0.4% 0%   
A:  56.8  0.4% 0%   
A:  57.0  0.4% 0%   
A:  57.2  0.4% 0%   
A:  57.4  0.4% 0%   
A:  57.6  0.4% 0%   
A:  57.8  0.4% 0%   
A:  58.0  0.4% 0%   
A:  58.1  0.4% 0%   
A:  58.3  0.4% 0%   
A:  58.5  0.4% 0%   
A:  58.7  0.4% 0%   
A:  58.9  0.4% 0%   
A:  59.1  0.4% 0%   
A:  59.3  0.4% 0%   
A:  59.4  0.4% 0%   
A:  59.6  0.4% 0%   
A:  59.8  0.4% 0%   
A:  60.0  0.4% 0%   
A:  60.2  0.4% 0%   
A:  60.4  0.4% 0%   
A:  60.6  0.4% 0%   
A:  60.7  0.4% 0%   
A:  60.9  0.4% 0%   
A:  61.1  0.4% 0%   
A:  61.3  0.4% 0%   
A:  61.5  0.4% 0%   
A:  61.7  0.4% 0%   
A:  61.9  0.4% 0%   
A:  62.0  0.4% 0%   
A:  62.2  0.4% 0%   
ds_fill_buffer: EOF reached (stream: audio)  
A:  62.4  0.4% 0%   
EOF code: 1  

Exiting... (End of file)

*** free_stream() called ***


More information about the MPlayer-users mailing list