Code Monkey home page Code Monkey logo

Comments (8)

benoitletondor avatar benoitletondor commented on September 26, 2024

Hi there,

I took a look at your project and your implementation of the muxer looks ok.

I see 2 issues here:

  • It didn't work for me with the 10000 usec timeout you have on your screen recoder. Setting it to 1000000000 (it's an arbitral value, probably not the best one but works for test) give enough time to the encoder to produce frames.
  • Even with a bigger timeout, I never saw a video frame with isHeader == true. So I think without a proper header VLC just can't display the video. I'm not sure how you can fix that, but I think it's a good way to start if you want to debug.

Let me know how it works for you.

from android-rtmp-muxer.

insthync avatar insthync commented on September 26, 2024

Hi, For me it didn't work. What video player you use to test?

I noticed when screen does not have any changes it will not sending a stream, does not sure I have to keep last frame data in temp variable to send when screen does not have changes or not.

from android-rtmp-muxer.

benoitletondor avatar benoitletondor commented on September 26, 2024

Indeed, the muxer is intended to receive a continuous video stream, so maybe it's the issue. That + the fact that your encoder never generates H264 headers.

All I can say after running a few tests is that your Muxer implementation looks correct, so the issue is definitely on your video capture code.

from android-rtmp-muxer.

insthync avatar insthync commented on September 26, 2024

Yeah, it's generic virtual display implementation that I dont know how should I do to improve it :p

from android-rtmp-muxer.

benoitletondor avatar benoitletondor commented on September 26, 2024

In any case, feel free to come back to me if you need help with the muxer, and good luck with your project :)

from android-rtmp-muxer.

insthync avatar insthync commented on September 26, 2024

My demo work now, I can see video and hear audio but audio is very bad.

The thing that I don't know is when sending audio header it have to send sampleSizeIndex I don't know what is sampleSizeIndex.

from android-rtmp-muxer.

benoitletondor avatar benoitletondor commented on September 26, 2024

Hi,

The sampleSizeIndex is the sample frequency's index between 0 (96000) and 11 (8000) of your AAC sound source. See https://developer.android.com/reference/android/media/MediaRecorder.html#setAudioSamplingRate(int).

from android-rtmp-muxer.

insthync avatar insthync commented on September 26, 2024

Thank you, I will try it.

from android-rtmp-muxer.

Related Issues (9)

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.