Re: VLC needs someone to assist in finishing it's auhal output module
Re: VLC needs someone to assist in finishing it's auhal output module
- Subject: Re: VLC needs someone to assist in finishing it's auhal output module
- From: Derk-Jan Hartman <email@hidden>
- Date: Thu, 26 May 2005 16:27:44 +0200
On 19 mei 2005, at 15:37, Derk-Jan Hartman wrote:
We have tried to develop an auhal output module for the OpenSource VLC
media player (http://www.videolan.org/vlc) to tackle the many issues
we have with discrete audio on the mac. Unfortunately the OSX
developers have no experience in the audio area and we are currently
stuck. We need someone to assist us in finishing this so we can put
all these issues behind us once and for all.
http://developers.videolan.org/cgi-bin/trac.cgi/ticket/12
http://developers.videolan.org/cgi-bin/trac.cgi/browser/trunk/modules/
audio_output/auhal.c?rev=11020
The problems are mostly in the renderer callback. getting the right
amount of samples, and doing it at the right time.
If anyone is able to help us fix this before we have to release yet
another version with a broken audio output then that would be
fantastic.
I made the following changes:
https://trac.videolan.org/vlc/changeset/11169
The file now looks like:
https://trac.videolan.org/vlc/file/trunk/modules/audio_output/auhal.c
I'm quite close now. I get small chirps of audio before I crash with a
stack corruption in the decoder. Obviously something illegal is going
on. Anyone any ideas?
DJ
Some of the message output
[00000240] main playlist debug: adding playlist item `03. Freestylers -
Push up.mp3' ( /Volumes/sidekick/pub/mp3/Temp MP3/03. Freestylers -
Push up.mp3 )
[00000246] access_file access debug: opening file
`/Volumes/sidekick/pub/mp3/Temp MP3/03. Freestylers - Push up.mp3'
[00000249] mpeg_audio packetizer debug: MPGA channels:2
samplerate:44100 bitrate:192
[00000244] main input debug: selecting program id=0
[00000250] main decoder debug: looking for decoder module: 22 candidates
[00000250] ffmpeg decoder debug: libavcodec initialized (interface 4747
)
[00000250] ffmpeg decoder debug: ffmpeg codec (MPEG Audio layer 1/2)
started
[00000011] main module debug: using decoder module "ffmpeg"
[00000250] main decoder debug: thread 68312064 (decoder) created at
priority 37 (src/input/decoder.c:159)
[00000244] main input debug: `/Volumes/sidekick/pub/mp3/Temp MP3/03.
Freestylers - Push up.mp3' successfully opened
[00000250] main decoder debug: no aout present, spawning one
[00000251] main audio output debug: looking for audio output module: 3
candidates
[00000251] main audio output debug: VLC is looking for:
's16b' 44100 Hz Stereo frame=1 samples/4 bytes
[Switching to process 4905 thread 0x5c13]
[00000251] auhal audio output debug: system has [1] device(s)
[00000251] auhal audio output debug: DevID: 10 DevName: Built-in Audio
DevUID: AppleDBDMAAudioDMAEngine:0
[00000251] auhal audio output debug: succesful finish of deviceslist
[00000251] auhal audio output debug: supported format:
samplerate: [44100]
FormatID: [lpcm]
FormatFlags: [11]
BypesPerPacket: [8]
FramesPerPacket: [1]
BytesPerFrame: [8]
ChannelsPerFrame: [2]
BitsPerChannel[32]
[00000251] auhal audio output debug: current format is :
samplerate: [44100]
FormatID: [lpcm]
FormatFlags: [43]
BypesPerPacket: [4]
FramesPerPacket: [1]
BytesPerFrame: [4]
ChannelsPerFrame: [2]
BitsPerChannel[32]
[00000251] auhal audio output debug: Layout of AUHAL has 2 channels
[00000251] auhal audio output debug: This is channel: -1
[00000251] auhal audio output warning: Unrecognized channel form
provided by driver: -1
[00000251] auhal audio output debug: This is channel: -1
[00000251] auhal audio output warning: Unrecognized channel form
provided by driver: -1
[00000251] auhal audio output debug: defined 2 physical channels for
vlc core
[00000251] auhal audio output debug: Stereo
[00000251] auhal audio output debug: we set the AU format: :
samplerate: [44100]
FormatID: [lpcm]
FormatFlags: [11]
BypesPerPacket: [8]
FramesPerPacket: [1]
BytesPerFrame: [8]
ChannelsPerFrame: [2]
BitsPerChannel[32]
[00000251] auhal audio output debug: the actual set AU format is :
samplerate: [44100]
FormatID: [lpcm]
FormatFlags: [11]
BypesPerPacket: [8]
FramesPerPacket: [1]
BytesPerFrame: [8]
ChannelsPerFrame: [2]
BitsPerChannel[32]
[00000023] main module debug: using audio output module "auhal"
[00000251] main audio output debug: output 'fl32' 44100 Hz Stereo
frame=1 samples/8 bytes
[00000251] main audio output debug: mixer 'fl32' 44100 Hz Stereo
frame=1 samples/8 bytes
[00000251] main audio output debug: no need for any filter
[00000251] main audio output debug: looking for audio mixer module: 3
candidates
[00000220] main module debug: using audio mixer module "trivial_mixer"
[00000251] main audio output debug: input 's16b' 44100 Hz Stereo
frame=1 samples/4 bytes
[00000251] main audio output debug: filter(s) 's16b'->'fl32' 44100
Hz->44100 Hz Stereo->Stereo
[00000252] main private debug: looking for audio filter module: 22
candidates
[00000184] main module debug: using audio filter module "s16tofloat32"
[00000251] main audio output debug: found a filter for the whole
conversion
[00000251] main audio output debug: filter(s) 'fl32'->'fl32' 48510
Hz->44100 Hz Stereo->Stereo
[00000253] main private debug: looking for audio filter module: 22
candidates
[00000059] main module debug: using audio filter module
"bandlimited_resampler"
[00000251] main audio output debug: found a filter for the whole
conversion
[00000251] auhal audio output debug: start audio packet
[00000251] auhal audio output debug: inbusnummer: 0
[00000251] auhal audio output debug: inNumberFrames: 512
[00000251] auhal audio output debug: start audio packet BADABOEM
[00000251] auhal audio output debug: aout_OutputNextBuffer failed
[00000251] auhal audio output debug: eof audio packet
[00000251] main audio output warning: PTS is out of range (222533),
dropping buffer
[00000251] main audio output warning: PTS is out of range (197051),
dropping buffer
[00000251] main audio output warning: PTS is out of range (171422),
dropping buffer
[00000251] main audio output warning: PTS is out of range (145744),
dropping buffer
[00000251] main audio output warning: PTS is out of range (120058),
dropping buffer
[00000251] main audio output warning: PTS is out of range (94369),
dropping buffer
[00000251] main audio output warning: PTS is out of range (68678),
dropping buffer
[00000251] main audio output warning: PTS is out of range (45100),
dropping buffer
[00000251] main audio output warning: PTS is out of range (19464),
dropping buffer
[00000251] auhal audio output debug: start audio packet
[00000251] auhal audio output debug: inbusnummer: 0
[00000251] auhal audio output debug: inNumberFrames: 512
[00000251] auhal audio output debug: start audio packet BADABOEM
[00000251] auhal audio output debug: aout_OutputNextBuffer failed
[00000251] auhal audio output debug: eof audio packet
[00000251] main audio output warning: PTS is out of range (-5782),
dropping buffer
[00000251] main audio output warning: PTS is out of range (-31426),
dropping buffer
[00000251] auhal audio output debug: start audio packet
[00000251] auhal audio output debug: inbusnummer: 0
[00000251] auhal audio output debug: inNumberFrames: 512
[00000251] auhal audio output debug: start audio packet BADABOEM
[00000251] main audio output warning: output date isn't PTS date,
requesting resampling (953385)
[00000251] auhal audio output debug: expected mDataByteSize:4096
[00000251] auhal audio output debug: retrieved nb bytes:4096
[00000251] auhal audio output debug: #buffers: 1
[00000251] auhal audio output debug: yeah first:
[00000251] auhal audio output debug: yeah the buffer free thing :D
[00000251] auhal audio output debug: eof audio packet
[00000251] auhal audio output debug: start audio packet
[00000251] auhal audio output debug: inbusnummer: 0
[00000251] auhal audio output debug: inNumberFrames: 512
[00000251] auhal audio output debug: start audio packet BADABOEM
[00000251] auhal audio output debug: expected mDataByteSize:4096
[00000251] auhal audio output debug: retrieved nb bytes:4096
[00000251] auhal audio output debug: #buffers: 1
[00000251] auhal audio output debug: yeah first:
[00000251] auhal audio output debug: yeah the buffer free thing :D
[00000251] auhal audio output debug: eof audio packet
[00000251] main audio output warning: audio drift is too big (953387),
dropping buffer
[00000251] auhal audio output debug: start audio packet
[00000251] auhal audio output debug: inbusnummer: 0
[00000251] auhal audio output debug: inNumberFrames: 512
[00000251] auhal audio output debug: start audio packet BADABOEM
[00000251] auhal audio output debug: expected mDataByteSize:4096
[00000251] auhal audio output debug: retrieved nb bytes:4096
[00000251] auhal audio output debug: #buffers: 1
[00000251] auhal audio output debug: yeah first:
[00000251] auhal audio output debug: yeah the buffer free thing :D
[00000251] auhal audio output debug: eof audio packet
[00000251] auhal audio output debug: start audio packet
[00000251] auhal audio output debug: inbusnummer: 0
[00000251] auhal audio output debug: inNumberFrames: 512
[00000251] auhal audio output debug: start audio packet BADABOEM
[00000251] auhal audio output debug: aout_OutputNextBuffer failed
[00000251] auhal audio output debug: eof audio packet
[00000251] main audio output warning: audio drift is too big (692164),
dropping buffer
[00000251] auhal audio output debug: start audio packet
[00000251] auhal audio output debug: inbusnummer: 0
[00000251] auhal audio output debug: inNumberFrames: 512
[00000251] auhal audio output debug: start audio packet BADABOEM
[00000251] auhal audio output debug: aout_OutputNextBuffer failed
[00000251] auhal audio output debug: eof audio packet
[00000251] auhal audio output debug: start audio packet
[00000251] auhal audio output debug: inbusnummer: 0
[00000251] auhal audio output debug: inNumberFrames: 512
[00000251] auhal audio output debug: start audio packet BADABOEM
[00000251] auhal audio output debug: aout_OutputNextBuffer failed
[00000251] auhal audio output debug: eof audio packet
[00000251] main audio output warning: audio drift is too big (639920),
dropping buffer
<cut status quo>
[Switching to process 4905 thread 0x5c13]
Program received signal: "EXC_BAD_ACCESS".
Unable to disassemble ??.
(gdb)
---
Videolan - VLC media player
Derk-Jan Hartman (hartman at videolan dot org)
http://www.videolan.org/vlc
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden