Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1061053
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T18:25:13+00:00 2026-05-16T18:25:13+00:00

I am attempting to (in NodeJS ): Connect to an Icecast internet audio stream.

  • 0

I am attempting to (in NodeJS):

  1. Connect to an Icecast internet audio stream. Ex: http://icecast3.977music.com/comedy
  2. Parse the response headers and extract the icy-metaint value.
  3. Write out the raw audio data to a file, while extracting the metadata bytes from the audio stream in order to:
    • Intercept and parse the metadata when it arrives.
    • Not include the metadata bytes in the output file, so that there are no audio artifacts because of the injected metadata.

Following the “unofficial” Shoutcast Metadata Protocol page from SmackFu, I have been able to get this far:

https://gist.github.com/e7474421dcb25e011620

Basically, I am able to extract the metadata when it is expected (there’s only 1 metadata event at the very beginning of the stream dump included in the gist). That part seems to work fine.

The problem is that the output MP3 file has noticeable audio artifacts throughout the file, presumably when the metadata bytes is arriving. However, I am definitely extracting those metadata bytes and NOT including them in the output file, so that’s the weird part.

The protocol document in the link above doesn’t say anything else needs to be done to the output file, but obviously I’m still doing something wrong. Does anybody know what else needs to be done to the audio stream? Thanks in advance!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T18:25:13+00:00Added an answer on May 16, 2026 at 6:25 pm

    I was able to sort this out on the Node.js IRC channel. I had an “off by 1” error in the amount of audio bytes being output, so and resulted in an invalid audio file.

    The gist posted in the OP has been corrected and now WORKS PROPERLY.

    A continuation of this little exercise is being packaged into a Node.JS module to read audio and metadata from a SHOUTcast/Icecast stream. Check out node-radio-stream if you’re interested.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am attempting to build a nodejs clustered HTTP web server. I am using
I am attempting to run Nodejs with the Socket.io module. I have installed the
So I've managed to get the feed from twitter and am attempting to parse
I'm attempting to parse XML in the following format (from the European Central Bank
I'm attempting to parse an rss feed, it seems to get all the nodes
I have a list of items in a hierarchy, and I'm attempting to parse
I've followed the getting started guide to deploy a nodejs application to heroku: https://devcenter.heroku.com/articles/nodejs
I am attempting to use xpath to run a program and parse out xml
I am attempting to create a shell script using Node.js similar to packages like
Attempting to build a C# NPAPI plugin I have found a tutorial which describes

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.