Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to HLS Streaming #154

Open
simonv3 opened this issue Nov 4, 2022 · 0 comments
Open

Switch to HLS Streaming #154

simonv3 opened this issue Nov 4, 2022 · 0 comments
Labels
discussion-needed We need to discuss this
Milestone

Comments

@simonv3
Copy link
Collaborator

simonv3 commented Nov 4, 2022

https://stackoverflow.com/questions/21878178/hls-streaming-using-node-js

Basically it sounds like for this to work we have to

  1. Convert our audio to m3u8 playlists
  2. Then serve it in a similar way with koa-send as we do now.

Here's a sample of converting a file to m3u8 hls

Here's a node-package that sets up a streaming server: hls-server

Some additional context / questions:

  • We currently require people upload their files as flac
  • Ideally we'd let people upload their files as wav or aiff (all lossless), and then convert them to flac on our server for storage
  • Currently we're keeping all of our flac files in /mnt/media/incoming which means we can process them again for higher quality stuff
  • We have to figure out at what qualities we want to make streaming available. This is a trade-off between bandwidth and listenability.
  • Is there a way to variably set streaming quality based on internet of the user, and how should that data be stored for that to be the case?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion-needed We need to discuss this
Projects
None yet
Development

No branches or pull requests

1 participant