Comments (8)
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 to1000000000
(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.
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.
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.
Yeah, it's generic virtual display implementation that I dont know how should I do to improve it :p
from android-rtmp-muxer.
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.
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.
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.
Thank you, I will try it.
from android-rtmp-muxer.
Related Issues (9)
- how to use it as dependency in gradle file?
- Examples or documentation HOT 15
- API too Complicated HOT 1
- Is this still working for facebook live streams? I'm suddenly getting header: -1. HOT 10
- com.octiplex.android.rtmp.io.ServerException: Header -1 HOT 2
- Stream Video from direct surface view HOT 1
- Youtube streaming trouble HOT 1
- Stream screen to server rtmp.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-rtmp-muxer.