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

How to use the audio stream. #2

Open
LuohanCC opened this issue Mar 12, 2020 · 5 comments
Open

How to use the audio stream. #2

LuohanCC opened this issue Mar 12, 2020 · 5 comments

Comments

@LuohanCC
Copy link

I've tried to write aac data locally, and I've tried to convert it to PCM format and write it locally. But it won't play.

@serezhka
Copy link
Owner

@LuohanCC, I'm also trying to save audio data to playable file.
For now, I've compiled fdk-aac lib with JNI bindings to decode aac-eld. This will make sure that decrypting method is correct.

@LuohanCC
Copy link
Author

I have completed transcoding in JNI using the fdk-aac library, and directly wrote to the file in JNI, and then played, but the playback failed. I hope you have good news.

@LuohanCC
Copy link
Author

Hi serezhka. Have you finished?

@serezhka
Copy link
Owner

@LuohanCC unfortunately, no. C code is here if someone else interested.
Currently I'm analyzing apowermirror app from apowersoft. They have managed to make audio work and use shairplay lib, @dsafa22's code, fdk-aac, .. under the hood. Now I can confirm that service discovery entries, /info, RTSP SETUP responses exactly the same as in this java-airplay-lib, nothing is special.

@serezhka
Copy link
Owner

serezhka commented Sep 21, 2020

@LuohanCC I've successfully decrypted audio!
But still, you need to compile fdk-aac-jni and put libfdk-aac.dll in classpath (windows). Decoded audio will be written to audio.pcm file.
ffplay -autoexit -f s16le -ar 44100 -ac 2 audio.pcm
see https://youtu.be/BFuYug8MO6s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants