Giter Site home page Giter Site logo

Bitrate and bitdepth about snapcast HOT 2 CLOSED

badaix avatar badaix commented on August 20, 2024
Bitrate and bitdepth

from snapcast.

Comments (2)

badaix avatar badaix commented on August 20, 2024

Hi,
you have to configure the format (-s option on the server) according to the input source (it has to match the format you're feeding into the /tmp/snapfifo pipe). Default is 44100:16:2.
Also there is no resampling in Snapcast. This must happen beforehand to have a fixed sample format.
You can configure the compression ratio of FLAC with -c flac:x. This is only the compression ratio - FLAC will always be loss less.
But: currently in the Flac encoder/decoder the 16 bit and 2 channels are hard coded. So you can actually only change the sampling rate to e.g. 48000 using -s 48000:16:2.
Support for different bit depths and channels is on the road map.

from snapcast.

badaix avatar badaix commented on August 20, 2024

Snapcast v0.7.0 now supports Hi-Res audio.
You can configure the sample format per stream or globally to e.g. 48 kHz, 24 bit, stereo:
Per stream:
-s "pipe:///tmp/snapfifo?name=Radio&sampleformat=48000:24:2"
As default:
--sampleformat 48000:24:2

from snapcast.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.