pedroSG94 / RootEncoder

RootEncoder for Android (rtmp-rtsp-stream-client-java) is a stream encoder to push video/audio to media servers using protocols RTMP, RTSP, SRT and UDP with all code written in Java/Kotlin
Apache License 2.0
2.57k stars 773 forks source link

no working #1191

Closed Elswah closed 8 months ago

Elswah commented 1 year ago

rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mp4 iam tried with this link and my stream not working and getting exception

    I  

2022-11-15 10:19:00.441 24172-24663 CommandParser com.pedro.rtpstreamer E status code not found 2022-11-15 10:19:00.441 24172-24663 CommandParser com.pedro.rtpstreamer E cSeq not found 2022-11-15 10:19:00.442 24172-24663 CommandsManager com.pedro.rtpstreamer I ANNOUNCE rtsp://192.168.9.102:8080/camcolor RTSP/1.0 Content-Type: application/sdp CSeq: 2 User-Agent: com.pedro.rtsp 2.2.1 Session: Content-Length: 434

                                                                                                v=0
                                                                                                o=- 0 0 IN IP4 127.0.0.1
                                                                                                s=Unnamed
                                                                                                i=N/A
                                                                                                c=IN IP4 192.168.9.102
                                                                                                t=0 0
                                                                                                a=recvonly
                                                                                                m=video 0 RTP/AVP 96
                                                                                                a=rtpmap:96 H264/90000
                                                                                                a=fmtp:96 packetization-mode=1; sprop-parameter-sets=Z0KAHtoHgUaUgoEBA2hQmoA=,aM4G4g==
                                                                                                a=control:streamid=0
                                                                                                m=audio 0 RTP/AVP 97
                                                                                                a=rtpmap:97 MPEG4-GENERIC/32000/2
                                                                                                a=fmtp:97 profile-level-id=1; mode=AAC-hbr; config=1290; sizelength=13; indexlength=3; indexdeltalength=3
                                                                                                a=control:streamid=1

2022-11-15 10:19:00.443 24172-24663 CommandsManager com.pedro.rtpstreamer I
2022-11-15 10:19:00.443 24172-24663 CommandParser com.pedro.rtpstreamer E status code not found 2022-11-15 10:19:00.443 24172-24663 CommandParser com.pedro.rtpstreamer E cSeq not found 2022-11-15 10:19:00.445 24172-24172 RtspClient com.pedro.rtpstreamer I send sps and pps 2022-11-15 10:19:00.447 24172-24664 CommandsManager com.pedro.rtpstreamer I TEARDOWN rtsp://192.168.9.102:8080/camcolor RTSP/1.0 CSeq: 3 User-Agent: com.pedro.rtsp 2.2.1 Session: 2022-11-15 10:19:00.451 24172-24664 RtspClient com.pedro.rtpstreamer E disconnect error java.net.SocketException: Broken pipe at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:117) at java.net.SocketOutputStream.write(SocketOutputStream.java:161) at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:221) at sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:291) at sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:295) at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:141) at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:229) at java.io.BufferedWriter.flush(BufferedWriter.java:254) at com.pedro.rtsp.rtsp.RtspClient.disconnect$lambda-4(RtspClient.kt:342) at com.pedro.rtsp.rtsp.RtspClient.$r8$lambda$-872ParVCCtJcqUt1V4-TU7zNzE(Unknown Source:0) at com.pedro.rtsp.rtsp.RtspClient$$ExternalSyntheticLambda2.run(Unknown Source:4) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) at java.lang.Thread.run(Thread.java:764)

Elswah commented 1 year ago

I 2 encoders found 2022-11-15 10:35:18.511 24172-24172 VideoEncoder com.pedro.rtpstreamer I Encoder OMX.qcom.video.encoder.avc 2022-11-15 10:35:18.511 24172-24172 VideoEncoder com.pedro.rtpstreamer I Color supported: 2141391878 2022-11-15 10:35:18.511 24172-24172 VideoEncoder com.pedro.rtpstreamer I Color supported: 2141391876 2022-11-15 10:35:18.511 24172-24172 VideoEncoder com.pedro.rtpstreamer I Color supported: 2141391872 2022-11-15 10:35:18.511 24172-24172 VideoEncoder com.pedro.rtpstreamer I Color supported: 2141391881 2022-11-15 10:35:18.511 24172-24172 VideoEncoder com.pedro.rtpstreamer I Color supported: 2141391882 2022-11-15 10:35:18.511 24172-24172 VideoEncoder com.pedro.rtpstreamer I Color supported: 2141391880 2022-11-15 10:35:18.511 24172-24172 VideoEncoder com.pedro.rtpstreamer I Color supported: 2141391879 2022-11-15 10:35:18.511 24172-24172 VideoEncoder com.pedro.rtpstreamer I Color supported: 2130708361 2022-11-15 10:35:18.511 24172-24172 VideoEncoder com.pedro.rtpstreamer I Color supported: 2135033992 2022-11-15 10:35:18.511 24172-24172 VideoEncoder com.pedro.rtpstreamer I Color supported: 21 2022-11-15 10:35:18.511 24172-24172 VideoEncoder com.pedro.rtpstreamer I Encoder selected OMX.qcom.video.encoder.avc 2022-11-15 10:35:18.512 24172-24172 ACodec com.pedro.rtpstreamer I [] Now uninitialized 2022-11-15 10:35:18.513 24172-5158 ACodec com.pedro.rtpstreamer I [] onAllocateComponent 2022-11-15 10:35:18.514 24172-5158 OMXClient com.pedro.rtpstreamer I IOmx service obtained 2022-11-15 10:35:18.525 24172-5158 ACodec com.pedro.rtpstreamer I [OMX.qcom.video.encoder.avc] Now Loaded 2022-11-15 10:35:18.528 24172-24172 VideoEncoder com.pedro.rtpstreamer I Prepare video info: YUV420SEMIPLANAR, 480x640 2022-11-15 10:35:18.528 24172-24172 VideoEncoder com.pedro.rtpstreamer I bitrate mode CBR not supported using default mode 2022-11-15 10:35:18.529 24172-5157 MediaCodec com.pedro.rtpstreamer I MediaCodec will operate in async mode 2022-11-15 10:35:18.531 24172-5158 ACodec com.pedro.rtpstreamer I app-pid(24172) 2022-11-15 10:35:18.532 24172-5158 OMXUtils com.pedro.rtpstreamer W do not know color format 0x7fa30c06 = 2141391878 2022-11-15 10:35:18.533 24172-5158 OMXUtils com.pedro.rtpstreamer W do not know color format 0x7fa30c04 = 2141391876 2022-11-15 10:35:18.533 24172-5158 OMXUtils com.pedro.rtpstreamer W do not know color format 0x7fa30c00 = 2141391872 2022-11-15 10:35:18.533 24172-5158 OMXUtils com.pedro.rtpstreamer W do not know color format 0x7fa30c09 = 2141391881 2022-11-15 10:35:18.534 24172-5158 OMXUtils com.pedro.rtpstreamer W do not know color format 0x7fa30c0a = 2141391882 2022-11-15 10:35:18.534 24172-5158 OMXUtils com.pedro.rtpstreamer W do not know color format 0x7fa30c08 = 2141391880 2022-11-15 10:35:18.534 24172-5158 OMXUtils com.pedro.rtpstreamer W do not know color format 0x7fa30c07 = 2141391879 2022-11-15 10:35:18.535 24172-5158 OMXUtils com.pedro.rtpstreamer W do not know color format 0x7f000789 = 2130708361

Elswah commented 1 year ago

ANNOUNCE rtsp://192.168.9.102:554/camcolor RTSP/1.0 Content-Type: application/sdp CSeq: 2 User-Agent: com.pedro.rtsp 2.2.1 Session: Content-Length: 434

                                                                                                v=0
                                                                                                o=- 0 0 IN IP4 127.0.0.1
                                                                                                s=Unnamed
                                                                                                i=N/A
                                                                                                c=IN IP4 192.168.9.102
                                                                                                t=0 0
                                                                                                a=recvonly
                                                                                                m=video 0 RTP/AVP 96
                                                                                                a=rtpmap:96 H264/90000
                                                                                                a=fmtp:96 packetization-mode=1; sprop-parameter-sets=Z0KAHtoHgUaUgoEBA2hQmoA=,aM4G4g==
                                                                                                a=control:streamid=0
                                                                                                m=audio 0 RTP/AVP 97
                                                                                                a=rtpmap:97 MPEG4-GENERIC/32000/2
                                                                                                a=fmtp:97 profile-level-id=1; mode=AAC-hbr; config=1290; sizelength=13; indexlength=3; indexdeltalength=3
                                                                                                a=control:streamid=1

2022-11-15 10:37:43.423 24172-5264 CommandsManager com.pedro.rtpstreamer I RTSP/1.0 405 Method Not Allowed CSeq: 2 Date: Wed, Sep 19 2018 23:52:52 GMT Allow: OPTIONS, DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, GET_PARAMETER, SET_PARAMETER 2022-11-15 10:37:43.425 24172-24172 RtspClient com.pedro.rtpstreamer I send sps and pps 2022-11-15 10:37:43.429 24172-5265 CommandsManager com.pedro.rtpstreamer I TEARDOWN rtsp://192.168.9.102:554/camcolor RTSP/1.0 CSeq: 3 User-Agent: com.pedro.rtsp 2.2.1 Session: 2022-11-15 10:37:43.432 24172-5265 RtspClient com.pedro.rtpstreamer I write teardown success 2022-11-15 10:37:43.466 24172-24172 InputTransport com.pedro.rtpstreamer D Input channel constructed: fd=113 2022-11-15 10:37:43.467 24172-24172 ViewRootIm...024[Toast] com.pedro.rtpstreamer D setView = android.widget.LinearLayout{87f378d V.E...... ......I. 0,0-0,0} TM=true MM=false 2022-11-15 10:37:43.467 24172-24172 Toast com.pedro.rtpstreamer V Text: Setr in android.widget.Toast$TN@525cd42 2022-11-15 10:37:43.486 24172-24172 ViewRootIm...024[Toast] com.pedro.rtpstreamer D Relayout returned: old=[0,54][1600,2452] new=[707,2209][892,2308] result=0x7 surface={true 493399306240} changed=true 2022-11-15 10:37:43.488 24172-24202 OpenGLRenderer com.pedro.rtpstreamer D eglCreateWindowSurface = 0x72e4ca6200, 0x72e0e3f010 2022-11-15 10:37:43.495 24172-24172 ViewRootIm...024[Toast] com.pedro.rtpstreamer D MSG_RESIZED: frame=[707,2209][892,2308] ci=[0,0][0,0] vi=[0,0][0,0] or=1 2022-11-15 10:37:45.455 24172-24202 OpenGLRenderer com.pedro.rtpstreamer D eglDestroySurface = 0x72e4ca6200, 0x72e0e3f000 2022-11-15 10:37:45.455 24172-24172 ViewRootIm...024[Toast] com.pedro.rtpstreamer D dispatchDetachedFromWindow 2022-11-15 10:37:45.468 24172-24172 InputTransport com.pedro.rtpstreamer D Input channel destroyed: fd=113 2022-11-15 10:37:48.437 24172-5272 NetworkMan...cketTagger com.pedro.rtpstreamer D tagSocket(79) with statsTag=0xffffffff, statsUid=-1 2022-11-15 10:37:48.454 24172-5272 CommandsManager com.pedro.rtpstreamer I OPTIONS rtsp://192.168.9.102:554/camcolor RTSP/1.0 CSeq: 1 User-Agent: com.pedro.rtsp 2.2.1 2022-11-15 10:37:48.464 24172-5272 CommandsManager com.pedro.rtpstreamer I RTSP/1.0 200 OK CSeq: 1 Date: Wed, Sep 19 2018 23:52:57 GMT Public: OPTIONS, DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, GET_PARAMETER, SET_PARAMETER 2022-11-15 10:37:48.468 24172-5272 CommandsManager com.pedro.rtpstreamer I ANNOUNCE rtsp://192.168.9.102:554/camcolor RTSP/1.0 Content-Type: application/sdp CSeq: 2 User-Agent: com.pedro.rtsp 2.2.1 Session: Content-Length: 434

                                                                                                v=0
                                                                                                o=- 0 0 IN IP4 127.0.0.1
                                                                                                s=Unnamed
                                                                                                i=N/A
                                                                                                c=IN IP4 192.168.9.102
                                                                                                t=0 0
                                                                                                a=recvonly
                                                                                                m=video 0 RTP/AVP 96
                                                                                                a=rtpmap:96 H264/90000
                                                                                                a=fmtp:96 packetization-mode=1; sprop-parameter-sets=Z0KAHtoHgUaUgoEBA2hQmoA=,aM4G4g==
                                                                                                a=control:streamid=0
                                                                                                m=audio 0 RTP/AVP 97
                                                                                                a=rtpmap:97 MPEG4-GENERIC/32000/2
                                                                                                a=fmtp:97 profile-level-id=1; mode=AAC-hbr; config=1290; sizelength=13; indexlength=3; indexdeltalength=3
                                                                                                a=control:streamid=1

2022-11-15 10:37:48.484 24172-5272 CommandsManager com.pedro.rtpstreamer I RTSP/1.0 405 Method Not Allowed CSeq: 2 Date: Wed, Sep 19 2018 23:52:58 GMT Allow: OPTIONS, DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, GET_PARAMETER, SET_PARAMETER 2022-11-15 10:37:48.487 24172-24172 RtspClient com.pedro.rtpstreamer I send sps and pps 2022-11-15 10:37:48.491 24172-5273 CommandsManager com.pedro.rtpstreamer I TEARDOWN rtsp://192.168.9.102:554/camcolor RTSP/1.0 CSeq: 3 User-Agent: com.pedro.rtsp 2.2.1 Session: 2022-11-15 10:37:48.493 24172-5273 RtspClient com.pedro.rtpstreamer I write teardown success 2022-11-15 10:37:48.535 24172-24172 InputTransport com.pedro.rtpstreamer D Input channel constructed: fd=113 2022-11-15 10:37:48.536 24172-24172 ViewRootIm...fbc[Toast] com.pedro.rtpstreamer D setView = android.widget.LinearLayout{ea0cb45 V.E...... ......I. 0,0-0,0} TM=true MM=false 2022-11-15 10:37:48.536 24172-24172 Toast com.pedro.rtpstreamer V Text: Setr in android.widget.Toast$TN@4c3c29a 2022-11-15 10:37:48.548 24172-24172 ViewRootIm...fbc[Toast] com.pedro.rtpstreamer D Relayout returned: old=[0,54][1600,2452] new=[707,2209][892,2308] result=0x7 surface={true 493399306240} changed=true 2022-11-15 10:37:48.550 24172-24202 OpenGLRenderer com.pedro.rtpstreamer D eglCreateWindowSurface = 0x72e4d0d680, 0x72e0e3f010 2022-11-15 10:37:48.555 24172-24172 ViewRootIm...fbc[Toast] com.pedro.rtpstreamer D MSG_RESIZED: frame=[707,2209][892,2308] ci=[0,0][0,0] vi=[0,0][0,0] or=1 2022-11-15 10:37:50.520 24172-24202 OpenGLRenderer com.pedro.rtpstreamer D eglDestroySurface = 0x72e4d0d680, 0x72e0e3f000 2022-11-15 10:37:50.520 24172-24172 ViewRootIm...fbc[Toast] com.pedro.rtpstreamer D dispatchDetachedFromWindow 2022-11-15 10:37:50.529 24172-24172 InputTransport com.pedro.rtpstreamer D Input channel destroyed: fd=113 2022-11-15 10:37:53.504 24172-5275 NetworkMan...cketTagger com.pedro.rtpstreamer D tagSocket(79) with statsTag=0xffffffff, statsUid=-1 2022-11-15 10:37:53.519 24172-5275 CommandsManager com.pedro.rtpstreamer I OPTIONS rtsp://192.168.9.102:554/camcolor RTSP/1.0 CSeq: 1 User-Agent: com.pedro.rtsp 2.2.1 2022-11-15 10:37:53.522 24172-5275 CommandsManager com.pedro.rtpstreamer I RTSP/1.0 200 OK CSeq: 1 Date: Wed, Sep 19 2018 23:53:03 GMT Public: OPTIONS, DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, GET_PARAMETER, SET_PARAMETER 2022-11-15 10:37:53.523 24172-5275 CommandsManager com.pedro.rtpstreamer I ANNOUNCE rtsp://192.168.9.102:554/camcolor RTSP/1.0 Content-Type: application/sdp CSeq: 2 User-Agent: com.pedro.rtsp 2.2.1 Session: Content-Length: 434

                                                                                                v=0
                                                                                                o=- 0 0 IN IP4 127.0.0.1
                                                                                                s=Unnamed
                                                                                                i=N/A
                                                                                                c=IN IP4 192.168.9.102
                                                                                                t=0 0
                                                                                                a=recvonly
                                                                                                m=video 0 RTP/AVP 96
                                                                                                a=rtpmap:96 H264/90000
                                                                                                a=fmtp:96 packetization-mode=1; sprop-parameter-sets=Z0KAHtoHgUaUgoEBA2hQmoA=,aM4G4g==
                                                                                                a=control:streamid=0
                                                                                                m=audio 0 RTP/AVP 97
                                                                                                a=rtpmap:97 MPEG4-GENERIC/32000/2
                                                                                                a=fmtp:97 profile-level-id=1; mode=AAC-hbr; config=1290; sizelength=13; indexlength=3; indexdeltalength=3
                                                                                                a=control:streamid=1

2022-11-15 10:37:53.533 24172-5275 CommandsManager com.pedro.rtpstreamer I RTSP/1.0 405 Method Not Allowed CSeq: 2 Date: Wed, Sep 19 2018 23:53:03 GMT Allow: OPTIONS, DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, GET_PARAMETER, SET_PARAMETER 2022-11-15 10:37:53.537 24172-24172 RtspClient com.pedro.rtpstreamer I send sps and pps 2022-11-15 10:37:53.539 24172-5276 CommandsManager com.pedro.rtpstreamer I TEARDOWN rtsp://192.168.9.102:554/camcolor RTSP/1.0 CSeq: 3 User-Agent: com.pedro.rtsp 2.2.1 Session: 2022-11-15 10:37:53.541 24172-5276 RtspClient com.pedro.rtpstreamer I write teardown success 2022-11-15 10:37:53.578 24172-24172 InputTransport com.pedro.rtpstreamer D Input channel constructed: fd=114 2022-11-15 10:37:53.579 24172-24172 ViewRootIm...dfd[Toast] com.pedro.rtpstreamer D setView = android.widget.LinearLayout{5d00af2 V.E...... ......I. 0,0-0,0} TM=true MM=false 2022-11-15 10:37:53.579 24172-24172 Toast com.pedro.rtpstreamer V Text: Setr in android.widget.Toast$TN@6169543 2022-11-15 10:37:53.594 24172-24172 ViewRootIm...dfd[Toast] com.pedro.rtpstreamer D Relayout returned: old=[0,54][1600,2452] new=[707,2209][892,2308] result=0x7 surface={true 493399306240} changed=true 2022-11-15 10:37:53.598 24172-24202 OpenGLRenderer com.pedro.rtpstreamer D eglCreateWindowSurface = 0x72e4cb4400, 0x72e0e3f010 2022-11-15 10:37:53.603 24172-24172 ViewRootIm...dfd[Toast] com.pedro.rtpstreamer D MSG_RESIZED: frame=[707,2209][892,2308] ci=[0,0][0,0] vi=[0,0][0,0] or=1 2022-11-15 10:37:55.570 24172-24202 OpenGLRenderer com.pedro.rtpstreamer D eglDestroySurface = 0x72e4cb4400, 0x72e0e3f000 2022-11-15 10:37:55.570 24172-24172 ViewRootIm...dfd[Toast] com.pedro.rtpstreamer D dispatchDetachedFromWindow 2022-11-15 10:37:55.577 24172-24172 InputTransport com.pedro.rtpstreamer D Input channel destroyed: fd=114 2022-11-15 10:37:58.545 24172-5278 NetworkMan...cketTagger com.pedro.rtpstreamer D tagSocket(79) with statsTag=0xffffffff, statsUid=-1 2022-11-15 10:37:58.597 24172-5278 CommandsManager com.pedro.rtpstreamer I OPTIONS rtsp://192.168.9.102:554/camcolor RTSP/1.0 CSeq: 1 User-Agent: com.pedro.rtsp 2.2.1 2022-11-15 10:37:58.600 24172-5278 CommandsManager com.pedro.rtpstreamer I RTSP/1.0 200 OK CSeq: 1 Date: Wed, Sep 19 2018 23:53:08 GMT Public: OPTIONS, DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, GET_PARAMETER, SET_PARAMETER 2022-11-15 10:37:58.601 24172-5278 CommandsManager com.pedro.rtpstreamer I ANNOUNCE rtsp://192.168.9.102:554/camcolor RTSP/1.0 Content-Type: application/sdp CSeq: 2 User-Agent: com.pedro.rtsp 2.2.1 Session: Content-Length: 434

                                                                                                v=0
                                                                                                o=- 0 0 IN IP4 127.0.0.1
                                                                                                s=Unnamed
                                                                                                i=N/A
                                                                                                c=IN IP4 192.168.9.102
                                                                                                t=0 0
                                                                                                a=recvonly
                                                                                                m=video 0 RTP/AVP 96
                                                                                                a=rtpmap:96 H264/90000
                                                                                                a=fmtp:96 packetization-mode=1; sprop-parameter-sets=Z0KAHtoHgUaUgoEBA2hQmoA=,aM4G4g==
                                                                                                a=control:streamid=0
                                                                                                m=audio 0 RTP/AVP 97
                                                                                                a=rtpmap:97 MPEG4-GENERIC/32000/2
                                                                                                a=fmtp:97 profile-level-id=1; mode=AAC-hbr; config=1290; sizelength=13; indexlength=3; indexdeltalength=3
                                                                                                a=control:streamid=1

2022-11-15 10:37:58.604 24172-5278 CommandsManager com.pedro.rtpstreamer I RTSP/1.0 405 Method Not Allowed CSeq: 2 Date: Wed, Sep 19 2018 23:53:08 GMT Allow: OPTIONS, DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, GET_PARAMETER, SET_PARAMETER 2022-11-15 10:37:58.629 24172-5279 CommandsManager com.pedro.rtpstreamer I TEARDOWN rtsp://192.168.9.102:554/camcolor RTSP/1.0 CSeq: 3 User-Agent: com.pedro.rtsp 2.2.1 Session: 2022-11-15 10:37:58.631 24172-5279 RtspClient com.pedro.rtpstreamer I write teardown success 2022-11-15 10:37:58.758 24172-24172 MicrophoneManager com.pedro.rtpstreamer I Microphone stopped 2022-11-15 10:37:58.759 24172-24172 VideoEncoder com.pedro.rtpstreamer I stopped 2022-11-15 10:37:58.759 24172-5225 ACodec com.pedro.rtpstreamer I [OMX.qcom.video.encoder.avc] signalFlush 2022-11-15 10:37:58.759 24172-5226 ACodec com.pedro.rtpstreamer I [OMX.qcom.video.encoder.avc] ExecutingState flushing now (codec owns 0/7 input, 0/6 output). 2022-11-15 10:37:58.760 24172-5226 ACodec com.pedro.rtpstreamer I [OMX.qcom.video.encoder.avc] Now Flushing 2022-11-15 10:37:58.762 24172-5226 ACodec com.pedro.rtpstreamer I [OMX.qcom.video.encoder.avc] FlushingState onOMXEvent(0,1,1) 2022-11-15 10:37:58.762 24172-5226 ACodec com.pedro.rtpstreamer I [OMX.qcom.video.encoder.avc] FlushingState onOMXEvent(0,1,0) 2022-11-15 10:37:58.762 24172-5226 ACodec com.pedro.rtpstreamer I [OMX.qcom.video.encoder.avc] Now Executing 2022-11-15 10:37:58.763 24172-5226 ACodec com.pedro.rtpstreamer I [OMX.qcom.video.encoder.avc] Now Executing->Idle 2022-11-15 10:37:58.783 24172-5226 ACodec com.pedro.rtpstreamer I [OMX.qcom.video.encoder.avc] Now Idle->Loaded 2022-11-15 10:37:58.783 24172-5226 ACodec com.pedro.rtpstreamer I [OMX.qcom.video.encoder.avc] Now Loaded 2022-11-15 10:37:58.783 24172-5226 ACodec com.pedro.rtpstreamer I [OMX.qcom.video.encoder.avc] Now kWhatShutdownCompleted event : 8572 2022-11-15 10:37:58.791 24172-5226 ACodec com.pedro.rtpstreamer I [OMX.qcom.video.encoder.avc] Now uninitialized 2022-11-15 10:37:58.791 24172-5226 ACodec com.pedro.rtpstreamer I [] Now kWhatShutdownCompleted event : 8572 2022-11-15 10:37:58.793 24172-5225 MediaCodec com.pedro.rtpstreamer I Codec shutdown complete 2022-11-15 10:37:58.797 24172-24172 AudioEncoder com.pedro.rtpstreamer I stopped 2022-11-15 10:37:58.798 24172-5221 ACodec com.pedro.rtpstreamer I [OMX.SEC.naac.enc] signalFlush 2022-11-15 10:37:58.798 24172-5221 ACodec com.pedro.rtpstreamer I [OMX.SEC.naac.enc] ExecutingState flushing now (codec owns 0/4 input, 1/5 output). 2022-11-15 10:37:58.799 24172-5221 ACodec com.pedro.rtpstreamer I [OMX.SEC.naac.enc] Now Flushing 2022-11-15 10:37:58.799 24172-5221 ACodec com.pedro.rtpstreamer I [OMX.SEC.naac.enc] FlushingState onOMXEvent(0,1,0) 2022-11-15 10:37:58.799 24172-5221 ACodec com.pedro.rtpstreamer I [OMX.SEC.naac.enc] FlushingState onOMXEvent(0,1,1) 2022-11-15 10:37:58.799 24172-5221 ACodec com.pedro.rtpstreamer I [OMX.SEC.naac.enc] Now Executing 2022-11-15 10:37:58.800 24172-5221 ACodec com.pedro.rtpstreamer I [OMX.SEC.naac.enc] Now Executing->Idle 2022-11-15 10:37:58.803 24172-5221 ACodec com.pedro.rtpstreamer I [OMX.SEC.naac.enc] Now Idle->Loaded 2022-11-15 10:37:58.803 24172-5221 ACodec com.pedro.rtpstreamer I [OMX.SEC.naac.enc] Now Loaded 2022-11-15 10:37:58.803 24172-5221 ACodec com.pedro.rtpstreamer I [OMX.SEC.naac.enc] Now kWhatShutdownCompleted event : 8572 2022-11-15 10:37:58.806 24172-5221 ACodec com.pedro.rtpstreamer I [OMX.SEC.naac.enc] Now uninitialized 2022-11-15 10:37:58.806 24172-5221 ACodec com.pedro.rtpstreamer I [] Now kWhatShutdownCompleted event : 8572 2022-11-15 10:37:58.806 24172-5221 MediaCodec com.pedro.rtpstreamer I Codec shutdown complete 2022-11-15 10:37:58.828 24172-24172 InputTransport com.pedro.rtpstreamer D Input channel constructed: fd=77 2022-11-15 10:37:58.829 24172-24172 ViewRootIm...fec[Toast] com.pedro.rtpstreamer D setView = android.widget.LinearLayout{9640fb5 V.E...... ......I. 0,0-0,0} TM=true MM=false 2022-11-15 10:37:58.829 24172-24172 Toast com.pedro.rtpstreamer V Text: Eisc in android.widget.Toast$TN@762064a 2022-11-15 10:37:58.861 24172-24172 ViewRootIm...fec[Toast] com.pedro.rtpstreamer D Relayout returned: old=[0,54][1600,2452] new=[646,2209][954,2308] result=0x7 surface={true 493467009024} changed=true 2022-11-15 10:37:58.864 24172-24202 OpenGLRenderer com.pedro.rtpstreamer D eglCreateWindowSurface = 0x72e4c11600, 0x72e4ed0010 2022-11-15 10:37:58.880 24172-24172 ViewRootIm...fec[Toast] com.pedro.rtpstreamer D MSG_RESIZED: frame=[646,2209][954,2308] ci=[0,0][0,0] vi=[0,0][0,0] or=1 2022-11-15 10:38:00.650 24172-24202 OpenGLRenderer com.pedro.rtpstreamer D eglDestroySurface = 0x72e4c11600, 0x72e4ed0000 2022-11-15 10:38:00.650 24172-24172 ViewRootIm...fec[Toast] com.pedro.rtpstreamer D dispatchDetachedFromWindow 2022-11-15 10:38:00.663 24172-24172 InputTransport com.pedro.rtpstreamer D Input channel destroyed: fd=77

Elswah commented 1 year ago

its is working on vlc "rtsp://192.168.9.102/camcolor"
rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mp4 not working also but work in vlc

Elswah commented 1 year ago
                                                                                                java.net.ConnectException: failed to connect to /192.168.9.102 (port 554) from /:: (port 0) after 5000ms: connect failed: ENETUNREACH (Network is unreachable)
pedroSG94 commented 1 year ago

Hello,

This library only allow push stream to a server so open a RTSP stream and reproduce it is not supported. You have other libraries to do it. For example MediaPlayer native class or ExoPlayer(developed by google) support reproduce RTSP. It is not an issue or something to fix. You are looking for a RTSP Player but it is a RTSP/RTMP Pusher/Encoder