Go Back   Winamp Forums > Developer Center > Winamp Development

Reply
Thread Tools Search this Thread Display Modes
Old 11th February 2010, 17:01   #1
Smelter
Major Dude
 
Smelter's Avatar
 
Join Date: Jan 2004
Posts: 1,088
trouble with encode

Hello,

i'm writing a NSV plugin to broadcast from winamp and I'm having a tad bit of trouble encoding the audio.

I seem to be missing a few milliseconds here and there so when I watch the stream in winamp, the audio has some pops and it seems that the play head ends up advancing until it starts to buffer.

I encode the 8192 bytes I get passed from winamp with no problem. It just seems like I'm missing a few milliseconds here and there.

Any advice on encoding audio that is even remotly related to this is appreciated.


The status of the plugin is working great. The video streams to shoutcast etc. there is just these strange audio anomalies.

THanks again.
Smelter is offline   Reply With Quote
Old 11th February 2010, 17:42   #2
Smelter
Major Dude
 
Smelter's Avatar
 
Join Date: Jan 2004
Posts: 1,088
couple additional observations.

If I transmit video alone, the playhead is stable and never under runs the buffer.

If I transmit audio alone, in nsv container, the playhead under-runs the buffer.

If I transmit both together, the playhead under-runs.
Smelter is offline   Reply With Quote
Old 11th February 2010, 23:06   #3
Smelter
Major Dude
 
Smelter's Avatar
 
Join Date: Jan 2004
Posts: 1,088
This may be my solution.

http://developer.apple.com/iphone/li...09/tn2258.html
Smelter is offline   Reply With Quote
Old 12th February 2010, 15:21   #4
Smelter
Major Dude
 
Smelter's Avatar
 
Join Date: Jan 2004
Posts: 1,088
I solved it.
I found a small bug that caused me to drop a few incoming samples
Smelter is offline   Reply With Quote
Old 12th February 2010, 18:57   #5
DrO
-
 
DrO's Avatar
 
Join Date: Sep 2003
Location: UK
Posts: 22,233
got to love these threads where it all gets fixed without any external input to it

-daz
DrO is offline   Reply With Quote
Old 12th February 2010, 19:33   #6
Smelter
Major Dude
 
Smelter's Avatar
 
Join Date: Jan 2004
Posts: 1,088
Heh, yea, well, I try to never forget that I too and what I do are also a potential point of failure.
Smelter is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Developer Center > Winamp Development

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump