-
-
Notifications
You must be signed in to change notification settings - Fork 776
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
NoSupport [codec.profileLevel, avc1.4D401F, video/avc] [OMX.google.h264.decoder, video/avc] #1638
Comments
Hello, Are you using from file streaming? for (String s: CodecUtil.showAllCodecsInfo()) {
Log.e("Pedro", s);
} And tell me the video info about the file used (resolution, codec, profile, etc. You can get all info using ffmpeg or similar). You can share the file if you want. |
genericStream = GenericStream(baseContext, this, NoVideoSource(), MicrophoneSource()).apply { fun prepareStream(resultCode: Int, data: Intent): Boolean { no use file streaming, use ScreenSource. I think the issue is related to my machine, as I'm using an old ARM machine. It works fine on higher version machines, and now I just want to know if there's a way to make it compatible with mine. |
If you are using ScreenSource i don't understand this:
Only from file source use decoders. Can you share me a full logcat to get more info about it? |
test.txt |
full.txt |
Ok, you only have 1 encoder:
As you can see the max resolution supported is 1920x1080. I assume that the problem is that you receive an error or return false in prepareVideo. |
Ok, the problem is not related with the video, it is related with the audio. Your audio encoder is not working properly and you are not producing audio frames. For that reason the server close connection with you. First of all try reset the device. Also try use a different configuration in prepareAudio method. |
I am using the example code. How should I modify it? if i not use audio,how should i do |
I tried to do a fix for it. implementation 'com.github.pedroSG94.RootEncoder:library:bed8cd205e' Let me know if this solve the error. |
it is error , |
This error:
Should be received in onConnectionFailed. It is not a crash, this only notify you the reason about the connection failed that is because the server is not available from your network (No route to host). |
This case:
And this case:
Are not related. The second case could be a bug, the the first case is a connection problem so the library is working as expected for this first case. |
There should be an error causing the RTMP push to fail. It works fine when I push from the emulator, but the error only occurs on this device. |
Thank you, it's resolved now. It was my own mistake. |
i use a old machine in Android 5.1.1 , It ok when I use hight machine. the error is NoSupport [codec.profileLevel, avc1.4D401F, video/avc] [OMX.google.h264.decoder, video/avc]
The text was updated successfully, but these errors were encountered: