Code Monkey home page Code Monkey logo

Comments (11)

philippe44 avatar philippe44 commented on September 18, 2024

you need to use plain pcm, so option 2 is what you need (option 1 should produce white noise). Then make sure that your file is using 44.1kHz sample rate (don't know the ffmpeg options to resample)

from libraop.

NebzHB avatar NebzHB commented on September 18, 2024

s16le seems to work, but i have to put 88200 rate for that...

or do you know the sox or else option for piping in stdin ?

from libraop.

philippe44 avatar philippe44 commented on September 18, 2024

If you have to use 88200 it means that it’s not a stereo file or something like that. I don’t understand why you want to use sox, ffmpeg can do the job. Then pipe is well documented on this and I think I use - as well in raop_play (I’ve not used it in a while, but the cmd line help will tell you)

from libraop.

NebzHB avatar NebzHB commented on September 18, 2024

yes it's mono file for most (TTS) , i've seen in your code, you assume it's stereo, could you detect that ?

about sox it was just an idea, ffmpeg is good too

about s16le, do you know if it's the most likely to work format ? my project will be on several archs (x86, x86_64, armhf, arm64, etc)

if you want, i've forked your project and fixed several things for compilation on linux and working with debian buster (including openssl 1.0 because buster install 1.1 and it's not working)

from libraop.

philippe44 avatar philippe44 commented on September 18, 2024

So you have to convert to stereo before sending it to raop_play. I think ffmpeg can do that

from libraop.

NebzHB avatar NebzHB commented on September 18, 2024

ok for others ppl reading, something like this seems to work fine :
ffmpeg -y -i myfile.mp3 -vn -ac 2 -ar 44100 -acodec pcm_s16le -f s16le "myfile.pcm";

about s16le, do you know if it's the most likely to work format ? my project will be on several archs (x86, x86_64, armhf, arm64, etc)

if you want, i've forked your project and fixed several things for compilation on linux and working with debian buster (including openssl 1.0 because buster install 1.1 and it's not working)

from libraop.

philippe44 avatar philippe44 commented on September 18, 2024

Yes, pull requests are always welcome. This project is more a reference for the library I’m using in many other projects, hence I did not a lot of updates of the application itself, more on the library. If you look at my other projects, I’ve changed the way I’m using ssl to be able to load any version on any platform

from libraop.

philippe44 avatar philippe44 commented on September 18, 2024

Re 16 bits little endian, the only cpu that can be problem are mips and sparc, afaik, all others are little endian. I have to check how much there are endianness issues, I’ve tried to take care of most of them as what I do is usually cross os and cpu, but I can’t say that I tested a lot of mips and sparc

from libraop.

NebzHB avatar NebzHB commented on September 18, 2024

in which project do you have solved the ssl ?

from libraop.

philippe44 avatar philippe44 commented on September 18, 2024

LMS-to-UPnP for example

from libraop.

NebzHB avatar NebzHB commented on September 18, 2024

I'm sorry but I'm not a c dev... and I don't see how you've solved that in those project and how to solve it for this one...

from libraop.

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.