TooTallNate / node-icy

Node.js module for parsing and/or injecting ICY metadata
MIT License
291 stars 48 forks source link

No metadata event on OGG streams #41

Open westjgames opened 5 years ago

westjgames commented 5 years ago

Some Icecast OGG streams do not create icy metadata events.

Stream: https://next.fillyradio.com:8000/vbr_ogg

Whilst audio streaming works great, this particular block:

res.on("metadata", function(metadata) {
  console.log('Got Metadata')
}

never fires, unless the stream is MP3, and then we get all the nice happy console.logs!

I'm considering attaching a method to get metadata events externally (they're needed to build a FFMPEG Chapter file for the recorded data), but we liked the way that we got the metadata when we used MP3. Unfortunately, being able to write the file directly to OGG, without transcoding, is more important in our use case.

If you can figure out an alternative way to get the stream metadata, it'd be greatly appreciated. Otherwise, we'll likely be polling the Icecast with setTimeout().