Closed yurensmile closed 4 years ago
This is the real error:
24299-24763/com.pedro.rtpstreamer E/ACodec: [OMX.IMG.TOPAZ.VIDEO.Encoder] ERROR(0x80001019)
07-20 15:37:04.603 24299-24763/com.pedro.rtpstreamer E/ACodec: signalError(omxError 0x80001019, internalError -2147483648)
07-20 15:37:04.603 24299-24762/com.pedro.rtpstreamer E/MediaCodec: Codec reported err 0x80001019, actionCode 0, while in state 6
07-20 15:37:04.604 24299-24773/com.pedro.rtpstreamer E/VideoEncoder: Error
android.media.MediaCodec$CodecException: Error 0x80001019
Do you have this error in fromfile mode only? Can you check if you can see this line in logcat using opengl example?
I/VideoEncoder: VideoEncoder OMX.IMG.TOPAZ.VIDEO.Encoder
Yes, in fomefile mode, that isthe whole error log. In opengl example, everything is work normally.
Besides, In another phone, Android 9(MIUI 12 20.6.18), everything is ok.
I was looking a way to reproduce this error but I can't do it. Can you tell me device model?
For now, try use FromFile constructor with context: https://github.com/pedroSG94/rtmp-rtsp-stream-client-java/blob/master/rtplibrary/src/main/java/com/pedro/rtplibrary/base/FromFileBase.java#L77 After that, if the error persist, try with software encoder to discard problems with that encoder:
//before prepareVideo(...);
rtmpFromFile.setForce(CodecUtil.Force.SOFTWARE, CodecUtil.Force.FIRST_COMPATIBLE_FOUND);
The device model is HUAWEI GRA-UL10.
I'm not sure what's your meaning of "try use From File constructor with context",
I just add this line:
rtmpFromFile.setForce(CodecUtil.Force.SOFTWARE, CodecUtil.Force.FIRST_COMPATIBLE_FOUND);
it also generates error log:
07-25 16:42:38.042 10707-11290/com.pedro.rtpstreamer E/ACodec: [OMX.google.h264.encoder] ERROR(0x80001001)
07-25 16:42:38.042 10707-11290/com.pedro.rtpstreamer E/ACodec: signalError(omxError 0x80001001, internalError -2147483648)
07-25 16:42:38.042 10707-11290/com.pedro.rtpstreamer E/ACodec: [OMX.google.h264.encoder] ERROR(0x80001001)
07-25 16:42:38.042 10707-11290/com.pedro.rtpstreamer E/ACodec: signalError(omxError 0x80001001, internalError -2147483648)
07-25 16:42:38.042 10707-11289/com.pedro.rtpstreamer E/MediaCodec: Codec reported err 0x80001001, actionCode 0, while in state 6
07-25 16:42:38.042 10707-11289/com.pedro.rtpstreamer E/MediaCodec: Codec reported err 0x80001001, actionCode 0, while in state 0
07-25 16:42:38.044 10707-11299/com.pedro.rtpstreamer E/VideoEncoder: Error
android.media.MediaCodec$CodecException: Error 0x80001001
I means this constructor: https://github.com/pedroSG94/rtmp-rtsp-stream-client-java/blob/master/rtplibrary/src/main/java/com/pedro/rtplibrary/rtmp/RtmpFromFile.java#L36 I was few days doing tests but I can't find a way to reproduce that error.
For now, I will mark this as bug and try reproduce it.
Sorry, it's so long to reply you. It's so great that when i use that constfhaaructor, it can work. Thank you so much. the solution is: I change this line: https://github.com/pedroSG94/rtmp-rtsp-stream-client-java/blob/master/app/src/main/java/com/pedro/rtpstreamer/filestreamexample/RtmpFromFileActivity.java#L70 TO:
rtmpFromFile = new RtmpFromFile(getApplicationContext(), this, this, this);
Hello, pedro, when i use this lib to rtmp from file, there is an error occur, the device is EMUI 4.0.2 (android 6.0), the video is recorded by your library. It generates the error "library "libwvm.so" not found". Is it the huawei's system(EMUI) error? Do you have solution to deal with it? thank you very much.
Below is the log.