[MPlayer-dev-eng] Re: Bug in GSM audio playing?
Ross Finlayson
finlayson at live.com
Thu Oct 10 12:07:35 CEST 2002
>did you try to play the same file from local file, from hdd ?
>when i fixed GSM i used your sample .mov and it played fine
Wow! I didn't know that mplayer could play .mov files. This software
amazes me more and more each day!
Anyway, I went ahead and tried this now, and, yes, mplayer plays the sample
.mov file OK. However, when it tries to play the corresponding RTP stream,
the audio is garbled.
FYI, I have attached the output from (i) playing the .mov file ("mov.txt"),
and (ii) playing the RTP stream ("rtp.txt"). There are a lot of
differences between the two, but one thing I noticed is that for .mov
there's a line:
AUDIO: 8000 Hz, 1 ch, 16 bit (0x10), ratio: 1650->16000 (13.2 kbit)
whereas the corresponding line for RTP is:
AUDIO: 8000 Hz, 1 ch, 16 bit (0x10), ratio: 1625->16000 (13.0 kbit)
Notice the 1650 versus 1625. Could this be the cause of the garbled
audio? If so, how can this be fixed? (Note that, for RTP, I specify
wf->nAvgBytesPerSec = 1650;
despite the fact that mplayer later prints 1625.)
Ross.
-------------- next part --------------
Playing ../sample-gsm-8000.mov
Detected QuickTime/MOV file format!
--------------
MOV track #0: 424 chunks, 0 samples
Audio bits: 16 chans: 1 rate: 8000
Fourcc: agsm
--------------
MOV track #1: 17 chunks, 17 samples
Generic track - not completly understood! (id: 1)
--------------
MOV track #2: 17 chunks, 17 samples
Generic track - not completly understood! (id: 2)
--------------
MOV track #3: 845 chunks, 2115 samples
Generic track - not completly understood! (id: 3)
--------------
==========================================================================
Opening audio decoder: [msgsm] native GSM/MSGSM audio decoder
AUDIO: 8000 Hz, 1 ch, 16 bit (0x10), ratio: 1650->16000 (13.2 kbit)
Selected audio codec: [msgsm] afm:msgsm (MS GSM)
==========================================================================
AO: [oss] 8000Hz 1ch Signed 16-bit (Little-Endian)
Building audio filter chain for 8000Hz/1ch/16bit -> 8000Hz/2ch/16bit...
Video: no video!!!
Start playing...
-------------- next part --------------
==> Found audio stream: 0
==========================================================================
Opening audio decoder: [acm] Win32/ACM decoders
======= Win32 (ACM) AUDIO Codec init =======
Input format:
======= WAVE Format =======
Format Tag: 49 (0x31)
Channels: 1
Samplerate: 8000
avg byte/sec: 1650
Block align: 33
bits/sample: 16
cbSize: 0
Output format:
======= WAVE Format =======
Format Tag: 1 (0x1)
Channels: 1
Samplerate: 8000
avg byte/sec: 16000
Block align: 2
bits/sample: 16
cbSize: 0
Loading codec DLL: 'msgsm32.acm'
get_path('registry') -> '/home/rsf/.mplayer/registry'
Loaded DLL driver msgsm32.acm
Total Unfree 0 bytes cnt 0 [(nil),0]
ACM_Decoder: Unappropriate audio format
Could not load/initialize Win32/ACM AUDIO codec (missing DLL file?)
ADecoder preinit failed :(
ADecoder init failed :(
Opening audio decoder: [msgsm] native GSM/MSGSM audio decoder
dec_audio: Allocating 1280 + 65536 = 66816 bytes for output buffer
AUDIO: 8000 Hz, 1 ch, 16 bit (0x10), ratio: 1625->16000 (13.0 kbit)
Selected audio codec: [msgsm] afm:msgsm (MS GSM)
==========================================================================
ao2: 8000 Hz 2 chans Signed 16-bit (Little-Endian)
audio_setup: using '/dev/dsp' dsp device
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 8000 Hz samplerate (requested: 8000)
audio_setup: frags: 32/32 (2048 bytes/frag) free: 65536
AO: [oss] 8000Hz 1ch Signed 16-bit (Little-Endian)
AO: Description: OSS/ioctl audio output
AO: Author: A'rpi
Building audio filter chain for 8000Hz/1ch/16bit -> 8000Hz/2ch/16bit...
[dummy] Was reinitialized, rate=8000Hz, nch = 1, format = 0x00000010 and bps = 2[channels] Changing number of channels to 2
[dummy] Was reinitialized, rate=8000Hz, nch = 1, format = 0x00000010 and bps = 2Video: no video!!!
Freeing 0 unused video chunks
Start playing...
More information about the MPlayer-dev-eng
mailing list