fyhertz / libstreaming-examples

Some examples of how to use libstreaming
285 stars 233 forks source link

Preview for a few seconds and then surface view freezes #30

Open ishaan-khan opened 9 years ago

ishaan-khan commented 9 years ago

Hi, First of all I really like you library, so thank you for such a great contribution. Now I tried you running your example for rtsp but I can't seem to get it to work. It gives me "ConfNotSupportedException". I have tried all possible resolutions, frame rate and bitrates but can not get it to work.

Earlier your app "Spy-droid" used to work on the same device, now your app seems to behave the same. My device is Galaxy grand with android 5.1.1 and it was working some days back on the same device.

Can you please suggest what went wrong? Here is the log:

08-22 13:58:58.564: I/RtspServer(9035): Connection from 192.168.1.4 08-22 13:58:58.564: E/RtspServer(9035): OPTIONS rtsp://192.168.1.3:1234 08-22 13:58:58.564: D/RtspServer(9035): RTSP/1.0 200 OK 08-22 13:58:58.564: D/RtspServer(9035): Server: MajorKernelPanic RTSP Server 08-22 13:58:58.564: D/RtspServer(9035): Cseq: 2 08-22 13:58:58.564: D/RtspServer(9035): Content-Length: 0 08-22 13:58:58.564: D/RtspServer(9035): Public: DESCRIBE,SETUP,TEARDOWN,PLAY,PAUSE 08-22 13:58:58.574: E/RtspServer(9035): DESCRIBE rtsp://192.168.1.3:1234 08-22 13:58:58.584: I/MediaStream(9035): Phone supports the MediaCoded API 08-22 13:58:59.365: V/VideoQuality(9035): Supported resolutions: 176x144, 320x240, 352x288, 640x480, 720x480, 800x600, 1024x768, 1280x720, 1920x1080 08-22 13:58:59.365: V/VideoQuality(9035): Supported frame rates: 10-10fps, 15-15fps, 24-24fps, 1-30fps, 30-30fps 08-22 13:58:59.545: W/VideoCapabilities(9035): Unrecognized profile/level 1/256 for video/mp4v-es 08-22 13:58:59.545: W/VideoCapabilities(9035): Unrecognized profile/level 32768/256 for video/mp4v-es 08-22 13:58:59.545: W/VideoCapabilities(9035): Unsupported mime video/mpeg2 08-22 13:58:59.555: W/VideoCapabilities(9035): Unsupported mime video/spark 08-22 13:58:59.555: W/VideoCapabilities(9035): Unsupported mime video/wmv3 08-22 13:58:59.555: W/VideoCapabilities(9035): Unsupported mime video/wvc1 08-22 13:58:59.555: W/VideoCapabilities(9035): Unsupported mime video/x-ms-wmv 08-22 13:58:59.565: W/VideoCapabilities(9035): Unrecognized profile 128 for video/avc 08-22 13:58:59.565: W/VideoCapabilities(9035): Unrecognized profile/level 1/256 for video/mp4v-es 08-22 13:58:59.565: W/VideoCapabilities(9035): Unrecognized profile/level 32768/256 for video/mp4v-es 08-22 13:58:59.575: W/VideoCapabilities(9035): Unsupported mime video/mp4v-esdp 08-22 13:58:59.585: I/VideoCapabilities(9035): Unsupported profile 4 for video/mp4v-es 08-22 13:58:59.595: W/AudioCapabilities(9035): Unsupported mime audio/ac3 08-22 13:58:59.595: W/AudioCapabilities(9035): Unsupported mime audio/x-ape 08-22 13:58:59.595: W/AudioCapabilities(9035): Unsupported mime audio/ffmpeg 08-22 13:58:59.595: W/AudioCapabilities(9035): Unsupported mime audio/vnd.dts 08-22 13:58:59.605: W/AudioCapabilities(9035): Unsupported mime audio/mpeg-L2 08-22 13:58:59.605: W/AudioCapabilities(9035): Unsupported mime audio/vnd.rn-realaudio 08-22 13:58:59.605: W/AudioCapabilities(9035): Unsupported mime audio/x-ms-wma 08-22 13:58:59.605: W/VideoCapabilities(9035): Unsupported mime video/divx 08-22 13:58:59.605: W/VideoCapabilities(9035): Unsupported mime video/x-flv 08-22 13:58:59.615: W/VideoCapabilities(9035): Unsupported mime video/mpeg2 08-22 13:58:59.625: W/VideoCapabilities(9035): Unsupported mime video/vnd.rn-realvideo 08-22 13:58:59.635: W/VideoCapabilities(9035): Unsupported mime video/vc1 08-22 13:58:59.635: W/VideoCapabilities(9035): Unsupported mime video/ffmpeg 08-22 13:58:59.635: W/VideoCapabilities(9035): Unsupported mime video/x-ms-wmv 08-22 13:58:59.635: W/VideoCapabilities(9035): Unrecognized profile 128 for video/avc 08-22 13:58:59.685: I/OMXClient(9035): Using client-side OMX mux. 08-22 13:58:59.715: V/component_tracker(9035): [initialize_component_tracker]: called 08-22 13:58:59.715: E/brcm-omx(9035): [BrcmOmxPluginNew] could not load mmalomx 08-22 13:58:59.715: D/brcm-omx(9035): [enumerateComponents] 0, OMX.BRCM.vc4.decoder.mpeg4 08-22 13:58:59.715: D/brcm-omx(9035): [enumerateComponents] 1, OMX.BRCM.vc4.decoder.mpeg4.secure 08-22 13:58:59.715: D/brcm-omx(9035): [enumerateComponents] 2, OMX.BRCM.vc4.decoder.mpeg4.divx_drm 08-22 13:58:59.715: D/brcm-omx(9035): [enumerateComponents] 3, OMX.BRCM.vc4.decoder.h263 08-22 13:58:59.715: D/brcm-omx(9035): [enumerateComponents] 4, OMX.BRCM.vc4.decoder.h263.secure 08-22 13:58:59.715: D/brcm-omx(9035): [enumerateComponents] 5, OMX.BRCM.vc4.decoder.h263.divx_drm 08-22 13:58:59.715: D/brcm-omx(9035): [enumerateComponents] 6, OMX.BRCM.vc4.decoder.avc 08-22 13:58:59.715: D/brcm-omx(9035): [enumerateComponents] 7, OMX.BRCM.vc4.decoder.avc.secure 08-22 13:58:59.715: D/brcm-omx(9035): [enumerateComponents] 8, OMX.BRCM.vc4.decoder.avc.divx_drm 08-22 13:58:59.715: D/brcm-omx(9035): [enumerateComponents] 9, OMX.BRCM.vc4.decoder.mpeg2 08-22 13:58:59.715: D/brcm-omx(9035): [enumerateComponents] 10, OMX.BRCM.vc4.decoder.mpeg2.secure 08-22 13:58:59.715: D/brcm-omx(9035): [enumerateComponents] 11, OMX.BRCM.vc4.decoder.mpeg2.divx_drm 08-22 13:58:59.715: D/brcm-omx(9035): [enumerateComponents] 12, OMX.BRCM.vc4.decoder.wmv3 08-22 13:58:59.715: D/brcm-omx(9035): [enumerateComponents] 13, OMX.BRCM.vc4.decoder.wmv3.secure 08-22 13:58:59.715: D/brcm-omx(9035): [enumerateComponents] 14, OMX.BRCM.vc4.decoder.wmv3.divx_drm 08-22 13:58:59.715: D/brcm-omx(9035): [enumerateComponents] 15, OMX.BRCM.vc4.decoder.wvc1 08-22 13:58:59.715: D/brcm-omx(9035): [enumerateComponents] 16, OMX.BRCM.vc4.decoder.wvc1.secure 08-22 13:58:59.715: D/brcm-omx(9035): [enumerateComponents] 17, OMX.BRCM.vc4.decoder.wvc1.divx_drm 08-22 13:58:59.715: D/brcm-omx(9035): [enumerateComponents] 18, OMX.BRCM.vc4.decoder.vpx 08-22 13:58:59.715: D/brcm-omx(9035): [enumerateComponents] 19, OMX.BRCM.vc4.decoder.vpx.secure 08-22 13:58:59.715: D/brcm-omx(9035): [enumerateComponents] 20, OMX.BRCM.vc4.decoder.vpx.divx_drm 08-22 13:58:59.715: D/brcm-omx(9035): [enumerateComponents] 21, OMX.BRCM.vc4.decoder.spark 08-22 13:58:59.715: D/brcm-omx(9035): [enumerateComponents] 22, OMX.BRCM.vc4.decoder.spark.secure 08-22 13:58:59.715: D/brcm-omx(9035): [enumerateComponents] 23, OMX.BRCM.vc4.decoder.spark.divx_drm 08-22 13:58:59.715: D/brcm-omx(9035): [enumerateComponents] 24, OMX.BRCM.vc4.encoder.mpeg4 08-22 13:58:59.715: D/brcm-omx(9035): [enumerateComponents] 25, OMX.BRCM.vc4.encoder.mpeg4.secure 08-22 13:58:59.715: D/brcm-omx(9035): [enumerateComponents] 26, OMX.BRCM.vc4.encoder.mpeg4.divx_drm 08-22 13:58:59.715: D/brcm-omx(9035): [enumerateComponents] 27, OMX.BRCM.vc4.encoder.h263 08-22 13:58:59.715: D/brcm-omx(9035): [enumerateComponents] 28, OMX.BRCM.vc4.encoder.h263.secure 08-22 13:58:59.715: D/brcm-omx(9035): [enumerateComponents] 29, OMX.BRCM.vc4.encoder.h263.divx_drm 08-22 13:58:59.715: D/brcm-omx(9035): [enumerateComponents] 30, OMX.BRCM.vc4.encoder.avc 08-22 13:58:59.715: D/brcm-omx(9035): [enumerateComponents] 31, OMX.BRCM.vc4.encoder.avc.secure 08-22 13:58:59.715: D/brcm-omx(9035): [enumerateComponents] 32, OMX.BRCM.vc4.encoder.avc.divx_drm 08-22 13:58:59.815: E/OMXMaster(9035): A component of name 'OMX.ffmpeg.wmv.decoder' already exists, ignoring this one. 08-22 13:58:59.835: I/SoftAVCEncoder(9035): Construct SoftAVCEncoder 08-22 13:58:59.835: I/ACodec(9035): [OMX.google.h264.encoder] setupVideoEncoder succeeded 08-22 13:58:59.845: E/SoftAVCEncoder(9035): Failed to initialize the encoder: -8 08-22 13:58:59.845: E/ACodec(9035): [OMX.google.h264.encoder] ERROR(0x80001001) 08-22 13:58:59.845: E/ACodec(9035): signalError(omxError 0x80001001, internalError -2147483648) 08-22 13:58:59.845: E/MediaCodec(9035): Codec reported err 0x80001001, actionCode 0, while in state 6 08-22 13:58:59.855: W/System.err(9035): java.lang.IllegalStateException 08-22 13:58:59.855: W/System.err(9035): at android.media.MediaCodec.native_queueInputBuffer(Native Method) 08-22 13:58:59.855: W/System.err(9035): at android.media.MediaCodec.queueInputBuffer(MediaCodec.java:834) 08-22 13:58:59.855: W/System.err(9035): at net.majorkernelpanic.streaming.hw.EncoderDebugger.searchSPSandPPS(EncoderDebugger.java:629) 08-22 13:58:59.855: W/System.err(9035): at net.majorkernelpanic.streaming.hw.EncoderDebugger.debug(EncoderDebugger.java:228) 08-22 13:58:59.855: W/System.err(9035): at net.majorkernelpanic.streaming.hw.EncoderDebugger.debug(EncoderDebugger.java:117) 08-22 13:58:59.855: W/System.err(9035): at net.majorkernelpanic.streaming.video.H264Stream.testMediaCodecAPI(H264Stream.java:133) 08-22 13:58:59.855: W/System.err(9035): at net.majorkernelpanic.streaming.video.H264Stream.testH264(H264Stream.java:120) 08-22 13:58:59.855: W/System.err(9035): at net.majorkernelpanic.streaming.video.H264Stream.configure(H264Stream.java:112) 08-22 13:58:59.855: W/System.err(9035): at net.majorkernelpanic.streaming.Session.syncConfigure(Session.java:403) 08-22 13:58:59.855: W/System.err(9035): at net.majorkernelpanic.streaming.rtsp.RtspServer$WorkerThread.processRequest(RtspServer.java:439) 08-22 13:58:59.855: W/System.err(9035): at net.majorkernelpanic.streaming.rtsp.RtspServer$WorkerThread.run(RtspServer.java:390) 08-22 13:58:59.855: I/OMXMaster(9035): clearPlugins: 0 key=462931a0 value=49218544 08-22 13:58:59.865: I/OMXMaster(9035): clearPlugins: 1 key=46a23358 value=0 08-22 13:58:59.865: I/OMXMaster(9035): clearPlugins: 2 key=4912b298 value=47d3ad24 08-22 13:58:59.865: V/component_tracker(9035): [deinitialize_component_tracker]: called 08-22 13:58:59.915: I/OMXClient(9035): Using client-side OMX mux. 08-22 13:58:59.925: V/component_tracker(9035): [initialize_component_tracker]: called 08-22 13:58:59.925: E/brcm-omx(9035): [BrcmOmxPluginNew] could not load mmalomx 08-22 13:58:59.925: D/brcm-omx(9035): [enumerateComponents] 0, OMX.BRCM.vc4.decoder.mpeg4 08-22 13:58:59.925: D/brcm-omx(9035): [enumerateComponents] 1, OMX.BRCM.vc4.decoder.mpeg4.secure 08-22 13:58:59.925: D/brcm-omx(9035): [enumerateComponents] 2, OMX.BRCM.vc4.decoder.mpeg4.divx_drm 08-22 13:58:59.925: D/brcm-omx(9035): [enumerateComponents] 3, OMX.BRCM.vc4.decoder.h263 08-22 13:58:59.925: D/brcm-omx(9035): [enumerateComponents] 4, OMX.BRCM.vc4.decoder.h263.secure 08-22 13:58:59.925: D/brcm-omx(9035): [enumerateComponents] 5, OMX.BRCM.vc4.decoder.h263.divx_drm 08-22 13:58:59.925: D/brcm-omx(9035): [enumerateComponents] 6, OMX.BRCM.vc4.decoder.avc 08-22 13:58:59.925: D/brcm-omx(9035): [enumerateComponents] 7, OMX.BRCM.vc4.decoder.avc.secure 08-22 13:58:59.925: D/brcm-omx(9035): [enumerateComponents] 8, OMX.BRCM.vc4.decoder.avc.divx_drm 08-22 13:58:59.925: D/brcm-omx(9035): [enumerateComponents] 9, OMX.BRCM.vc4.decoder.mpeg2 08-22 13:58:59.925: D/brcm-omx(9035): [enumerateComponents] 10, OMX.BRCM.vc4.decoder.mpeg2.secure 08-22 13:58:59.925: D/brcm-omx(9035): [enumerateComponents] 11, OMX.BRCM.vc4.decoder.mpeg2.divx_drm 08-22 13:58:59.925: D/brcm-omx(9035): [enumerateComponents] 12, OMX.BRCM.vc4.decoder.wmv3 08-22 13:58:59.925: D/brcm-omx(9035): [enumerateComponents] 13, OMX.BRCM.vc4.decoder.wmv3.secure 08-22 13:58:59.925: D/brcm-omx(9035): [enumerateComponents] 14, OMX.BRCM.vc4.decoder.wmv3.divx_drm 08-22 13:58:59.925: D/brcm-omx(9035): [enumerateComponents] 15, OMX.BRCM.vc4.decoder.wvc1 08-22 13:58:59.925: D/brcm-omx(9035): [enumerateComponents] 16, OMX.BRCM.vc4.decoder.wvc1.secure 08-22 13:58:59.925: D/brcm-omx(9035): [enumerateComponents] 17, OMX.BRCM.vc4.decoder.wvc1.divx_drm 08-22 13:58:59.925: D/brcm-omx(9035): [enumerateComponents] 18, OMX.BRCM.vc4.decoder.vpx 08-22 13:58:59.925: D/brcm-omx(9035): [enumerateComponents] 19, OMX.BRCM.vc4.decoder.vpx.secure 08-22 13:58:59.925: D/brcm-omx(9035): [enumerateComponents] 20, OMX.BRCM.vc4.decoder.vpx.divx_drm 08-22 13:58:59.925: D/brcm-omx(9035): [enumerateComponents] 21, OMX.BRCM.vc4.decoder.spark 08-22 13:58:59.925: D/brcm-omx(9035): [enumerateComponents] 22, OMX.BRCM.vc4.decoder.spark.secure 08-22 13:58:59.925: D/brcm-omx(9035): [enumerateComponents] 23, OMX.BRCM.vc4.decoder.spark.divx_drm 08-22 13:58:59.925: D/brcm-omx(9035): [enumerateComponents] 24, OMX.BRCM.vc4.encoder.mpeg4 08-22 13:58:59.925: D/brcm-omx(9035): [enumerateComponents] 25, OMX.BRCM.vc4.encoder.mpeg4.secure 08-22 13:58:59.925: D/brcm-omx(9035): [enumerateComponents] 26, OMX.BRCM.vc4.encoder.mpeg4.divx_drm 08-22 13:58:59.925: D/brcm-omx(9035): [enumerateComponents] 27, OMX.BRCM.vc4.encoder.h263 08-22 13:58:59.925: D/brcm-omx(9035): [enumerateComponents] 28, OMX.BRCM.vc4.encoder.h263.secure 08-22 13:58:59.925: D/brcm-omx(9035): [enumerateComponents] 29, OMX.BRCM.vc4.encoder.h263.divx_drm 08-22 13:58:59.925: D/brcm-omx(9035): [enumerateComponents] 30, OMX.BRCM.vc4.encoder.avc 08-22 13:58:59.925: D/brcm-omx(9035): [enumerateComponents] 31, OMX.BRCM.vc4.encoder.avc.secure 08-22 13:58:59.925: D/brcm-omx(9035): [enumerateComponents] 32, OMX.BRCM.vc4.encoder.avc.divx_drm 08-22 13:58:59.935: E/OMXMaster(9035): A component of name 'OMX.ffmpeg.wmv.decoder' already exists, ignoring this one. 08-22 13:58:59.935: I/SoftAVCEncoder(9035): Construct SoftAVCEncoder 08-22 13:58:59.935: I/ACodec(9035): [OMX.google.h264.encoder] setupVideoEncoder succeeded 08-22 13:58:59.945: E/SoftAVCEncoder(9035): Failed to initialize the encoder: -8 08-22 13:58:59.945: E/ACodec(9035): [OMX.google.h264.encoder] ERROR(0x80001001) 08-22 13:58:59.945: E/ACodec(9035): signalError(omxError 0x80001001, internalError -2147483648) 08-22 13:58:59.945: E/MediaCodec(9035): Codec reported err 0x80001001, actionCode 0, while in state 6 08-22 13:58:59.945: W/System.err(9035): java.lang.IllegalStateException 08-22 13:58:59.945: W/System.err(9035): at android.media.MediaCodec.native_dequeueOutputBuffer(Native Method) 08-22 13:58:59.945: W/System.err(9035): at android.media.MediaCodec.dequeueOutputBuffer(MediaCodec.java:1036) 08-22 13:58:59.945: W/System.err(9035): at net.majorkernelpanic.streaming.hw.EncoderDebugger.searchSPSandPPS(EncoderDebugger.java:638) 08-22 13:58:59.945: W/System.err(9035): at net.majorkernelpanic.streaming.hw.EncoderDebugger.debug(EncoderDebugger.java:228) 08-22 13:58:59.945: W/System.err(9035): at net.majorkernelpanic.streaming.hw.EncoderDebugger.debug(EncoderDebugger.java:117) 08-22 13:58:59.945: W/System.err(9035): at net.majorkernelpanic.streaming.video.H264Stream.testMediaCodecAPI(H264Stream.java:133) 08-22 13:58:59.945: W/System.err(9035): at net.majorkernelpanic.streaming.video.H264Stream.testH264(H264Stream.java:120) 08-22 13:58:59.945: W/System.err(9035): at net.majorkernelpanic.streaming.video.H264Stream.configure(H264Stream.java:112) 08-22 13:58:59.945: W/System.err(9035): at net.majorkernelpanic.streaming.Session.syncConfigure(Session.java:403) 08-22 13:58:59.945: W/System.err(9035): at net.majorkernelpanic.streaming.rtsp.RtspServer$WorkerThread.processRequest(RtspServer.java:439) 08-22 13:58:59.945: W/System.err(9035): at net.majorkernelpanic.streaming.rtsp.RtspServer$WorkerThread.run(RtspServer.java:390) 08-22 13:58:59.945: I/OMXMaster(9035): clearPlugins: 0 key=491315f8 value=0 08-22 13:58:59.945: I/OMXMaster(9035): clearPlugins: 1 key=492db790 value=49218544 08-22 13:58:59.955: I/OMXMaster(9035): clearPlugins: 2 key=492db7a8 value=47d3ad24 08-22 13:58:59.955: V/component_tracker(9035): [deinitialize_component_tracker]: called 08-22 13:58:59.995: I/OMXClient(9035): Using client-side OMX mux. 08-22 13:59:00.005: E/ACodec(9035): [OMX.BRCM.vc4.encoder.avc] storeMetaDataInBuffers (output) failed w/ err -2147483648 08-22 13:59:00.025: I/ACodec(9035): [OMX.BRCM.vc4.encoder.avc] setupVideoEncoder succeeded 08-22 13:59:00.516: I/OMXClient(9035): Using client-side OMX mux. 08-22 13:59:00.516: V/component_tracker(9035): [initialize_component_tracker]: called 08-22 13:59:00.516: E/brcm-omx(9035): [BrcmOmxPluginNew] could not load mmalomx 08-22 13:59:00.526: D/brcm-omx(9035): [enumerateComponents] 0, OMX.BRCM.vc4.decoder.mpeg4 08-22 13:59:00.526: D/brcm-omx(9035): [enumerateComponents] 1, OMX.BRCM.vc4.decoder.mpeg4.secure 08-22 13:59:00.526: D/brcm-omx(9035): [enumerateComponents] 2, OMX.BRCM.vc4.decoder.mpeg4.divx_drm 08-22 13:59:00.526: D/brcm-omx(9035): [enumerateComponents] 3, OMX.BRCM.vc4.decoder.h263 08-22 13:59:00.526: D/brcm-omx(9035): [enumerateComponents] 4, OMX.BRCM.vc4.decoder.h263.secure 08-22 13:59:00.526: D/brcm-omx(9035): [enumerateComponents] 5, OMX.BRCM.vc4.decoder.h263.divx_drm 08-22 13:59:00.526: D/brcm-omx(9035): [enumerateComponents] 6, OMX.BRCM.vc4.decoder.avc 08-22 13:59:00.526: D/brcm-omx(9035): [enumerateComponents] 7, OMX.BRCM.vc4.decoder.avc.secure 08-22 13:59:00.526: D/brcm-omx(9035): [enumerateComponents] 8, OMX.BRCM.vc4.decoder.avc.divx_drm 08-22 13:59:00.526: D/brcm-omx(9035): [enumerateComponents] 9, OMX.BRCM.vc4.decoder.mpeg2 08-22 13:59:00.526: D/brcm-omx(9035): [enumerateComponents] 10, OMX.BRCM.vc4.decoder.mpeg2.secure 08-22 13:59:00.526: D/brcm-omx(9035): [enumerateComponents] 11, OMX.BRCM.vc4.decoder.mpeg2.divx_drm 08-22 13:59:00.526: D/brcm-omx(9035): [enumerateComponents] 12, OMX.BRCM.vc4.decoder.wmv3 08-22 13:59:00.526: D/brcm-omx(9035): [enumerateComponents] 13, OMX.BRCM.vc4.decoder.wmv3.secure 08-22 13:59:00.526: D/brcm-omx(9035): [enumerateComponents] 14, OMX.BRCM.vc4.decoder.wmv3.divx_drm 08-22 13:59:00.526: D/brcm-omx(9035): [enumerateComponents] 15, OMX.BRCM.vc4.decoder.wvc1 08-22 13:59:00.526: D/brcm-omx(9035): [enumerateComponents] 16, OMX.BRCM.vc4.decoder.wvc1.secure 08-22 13:59:00.526: D/brcm-omx(9035): [enumerateComponents] 17, OMX.BRCM.vc4.decoder.wvc1.divx_drm 08-22 13:59:00.526: D/brcm-omx(9035): [enumerateComponents] 18, OMX.BRCM.vc4.decoder.vpx 08-22 13:59:00.526: D/brcm-omx(9035): [enumerateComponents] 19, OMX.BRCM.vc4.decoder.vpx.secure 08-22 13:59:00.526: D/brcm-omx(9035): [enumerateComponents] 20, OMX.BRCM.vc4.decoder.vpx.divx_drm 08-22 13:59:00.526: D/brcm-omx(9035): [enumerateComponents] 21, OMX.BRCM.vc4.decoder.spark 08-22 13:59:00.526: D/brcm-omx(9035): [enumerateComponents] 22, OMX.BRCM.vc4.decoder.spark.secure 08-22 13:59:00.526: D/brcm-omx(9035): [enumerateComponents] 23, OMX.BRCM.vc4.decoder.spark.divx_drm 08-22 13:59:00.526: D/brcm-omx(9035): [enumerateComponents] 24, OMX.BRCM.vc4.encoder.mpeg4 08-22 13:59:00.526: D/brcm-omx(9035): [enumerateComponents] 25, OMX.BRCM.vc4.encoder.mpeg4.secure 08-22 13:59:00.526: D/brcm-omx(9035): [enumerateComponents] 26, OMX.BRCM.vc4.encoder.mpeg4.divx_drm 08-22 13:59:00.526: D/brcm-omx(9035): [enumerateComponents] 27, OMX.BRCM.vc4.encoder.h263 08-22 13:59:00.526: D/brcm-omx(9035): [enumerateComponents] 28, OMX.BRCM.vc4.encoder.h263.secure 08-22 13:59:00.526: D/brcm-omx(9035): [enumerateComponents] 29, OMX.BRCM.vc4.encoder.h263.divx_drm 08-22 13:59:00.526: D/brcm-omx(9035): [enumerateComponents] 30, OMX.BRCM.vc4.encoder.avc 08-22 13:59:00.526: D/brcm-omx(9035): [enumerateComponents] 31, OMX.BRCM.vc4.encoder.avc.secure 08-22 13:59:00.526: D/brcm-omx(9035): [enumerateComponents] 32, OMX.BRCM.vc4.encoder.avc.divx_drm 08-22 13:59:00.536: E/OMXMaster(9035): A component of name 'OMX.ffmpeg.wmv.decoder' already exists, ignoring this one. 08-22 13:59:00.606: E/SoftAVC(9035): Decoder failed: -2 08-22 13:59:00.606: E/ACodec(9035): [OMX.google.h264.decoder] ERROR(0x80001001) 08-22 13:59:00.606: E/ACodec(9035): signalError(omxError 0x80001001, internalError -2147483648) 08-22 13:59:00.606: E/MediaCodec(9035): Codec reported err 0x80001001, actionCode 0, while in state 6 08-22 13:59:00.606: W/System.err(9035): java.lang.IllegalStateException 08-22 13:59:00.606: W/System.err(9035): at android.media.MediaCodec.native_dequeueOutputBuffer(Native Method) 08-22 13:59:00.606: W/System.err(9035): at android.media.MediaCodec.dequeueOutputBuffer(MediaCodec.java:1036) 08-22 13:59:00.606: W/System.err(9035): at net.majorkernelpanic.streaming.hw.EncoderDebugger.decode(EncoderDebugger.java:776) 08-22 13:59:00.606: W/System.err(9035): at net.majorkernelpanic.streaming.hw.EncoderDebugger.debug(EncoderDebugger.java:249) 08-22 13:59:00.606: W/System.err(9035): at net.majorkernelpanic.streaming.hw.EncoderDebugger.debug(EncoderDebugger.java:117) 08-22 13:59:00.606: W/System.err(9035): at net.majorkernelpanic.streaming.video.H264Stream.testMediaCodecAPI(H264Stream.java:133) 08-22 13:59:00.606: W/System.err(9035): at net.majorkernelpanic.streaming.video.H264Stream.testH264(H264Stream.java:120) 08-22 13:59:00.606: W/System.err(9035): at net.majorkernelpanic.streaming.video.H264Stream.configure(H264Stream.java:112) 08-22 13:59:00.606: W/System.err(9035): at net.majorkernelpanic.streaming.Session.syncConfigure(Session.java:403) 08-22 13:59:00.606: W/System.err(9035): at net.majorkernelpanic.streaming.rtsp.RtspServer$WorkerThread.processRequest(RtspServer.java:439) 08-22 13:59:00.606: W/System.err(9035): at net.majorkernelpanic.streaming.rtsp.RtspServer$WorkerThread.run(RtspServer.java:390) 08-22 13:59:00.606: I/OMXMaster(9035): clearPlugins: 0 key=462faaa8 value=47d3ad24 08-22 13:59:00.606: V/component_tracker(9035): [deinitialize_component_tracker]: called 08-22 13:59:00.606: I/OMXMaster(9035): clearPlugins: 1 key=492db5e8 value=49218544 08-22 13:59:00.606: I/OMXMaster(9035): clearPlugins: 2 key=492dda98 value=0 08-22 13:59:00.616: I/OMXClient(9035): Using client-side OMX mux. 08-22 13:59:02.418: W/System.err(9035): java.lang.RuntimeException: It is likely that stride!=width 08-22 13:59:02.418: W/System.err(9035): at net.majorkernelpanic.streaming.hw.EncoderDebugger.debug(EncoderDebugger.java:267) 08-22 13:59:02.418: W/System.err(9035): at net.majorkernelpanic.streaming.hw.EncoderDebugger.debug(EncoderDebugger.java:117) 08-22 13:59:02.418: W/System.err(9035): at net.majorkernelpanic.streaming.video.H264Stream.testMediaCodecAPI(H264Stream.java:133) 08-22 13:59:02.418: W/System.err(9035): at net.majorkernelpanic.streaming.video.H264Stream.testH264(H264Stream.java:120) 08-22 13:59:02.418: W/System.err(9035): at net.majorkernelpanic.streaming.video.H264Stream.configure(H264Stream.java:112) 08-22 13:59:02.418: W/System.err(9035): at net.majorkernelpanic.streaming.Session.syncConfigure(Session.java:403) 08-22 13:59:02.418: W/System.err(9035): at net.majorkernelpanic.streaming.rtsp.RtspServer$WorkerThread.processRequest(RtspServer.java:439) 08-22 13:59:02.428: W/System.err(9035): at net.majorkernelpanic.streaming.rtsp.RtspServer$WorkerThread.run(RtspServer.java:390) 08-22 13:59:02.488: I/OMXClient(9035): Using client-side OMX mux. 08-22 13:59:02.498: E/ACodec(9035): [OMX.BRCM.vc4.encoder.avc] storeMetaDataInBuffers (output) failed w/ err -2147483648 08-22 13:59:02.498: I/ACodec(9035): [OMX.BRCM.vc4.encoder.avc] setupVideoEncoder succeeded 08-22 13:59:03.008: I/OMXClient(9035): Using client-side OMX mux. 08-22 13:59:03.018: V/component_tracker(9035): [initialize_component_tracker]: called 08-22 13:59:03.018: E/brcm-omx(9035): [BrcmOmxPluginNew] could not load mmalomx 08-22 13:59:03.018: D/brcm-omx(9035): [enumerateComponents] 0, OMX.BRCM.vc4.decoder.mpeg4 08-22 13:59:03.018: D/brcm-omx(9035): [enumerateComponents] 1, OMX.BRCM.vc4.decoder.mpeg4.secure 08-22 13:59:03.018: D/brcm-omx(9035): [enumerateComponents] 2, OMX.BRCM.vc4.decoder.mpeg4.divx_drm 08-22 13:59:03.018: D/brcm-omx(9035): [enumerateComponents] 3, OMX.BRCM.vc4.decoder.h263 08-22 13:59:03.018: D/brcm-omx(9035): [enumerateComponents] 4, OMX.BRCM.vc4.decoder.h263.secure 08-22 13:59:03.018: D/brcm-omx(9035): [enumerateComponents] 5, OMX.BRCM.vc4.decoder.h263.divx_drm 08-22 13:59:03.018: D/brcm-omx(9035): [enumerateComponents] 6, OMX.BRCM.vc4.decoder.avc 08-22 13:59:03.018: D/brcm-omx(9035): [enumerateComponents] 7, OMX.BRCM.vc4.decoder.avc.secure 08-22 13:59:03.018: D/brcm-omx(9035): [enumerateComponents] 8, OMX.BRCM.vc4.decoder.avc.divx_drm 08-22 13:59:03.018: D/brcm-omx(9035): [enumerateComponents] 9, OMX.BRCM.vc4.decoder.mpeg2 08-22 13:59:03.018: D/brcm-omx(9035): [enumerateComponents] 10, OMX.BRCM.vc4.decoder.mpeg2.secure 08-22 13:59:03.018: D/brcm-omx(9035): [enumerateComponents] 11, OMX.BRCM.vc4.decoder.mpeg2.divx_drm 08-22 13:59:03.018: D/brcm-omx(9035): [enumerateComponents] 12, OMX.BRCM.vc4.decoder.wmv3 08-22 13:59:03.018: D/brcm-omx(9035): [enumerateComponents] 13, OMX.BRCM.vc4.decoder.wmv3.secure 08-22 13:59:03.018: D/brcm-omx(9035): [enumerateComponents] 14, OMX.BRCM.vc4.decoder.wmv3.divx_drm 08-22 13:59:03.018: D/brcm-omx(9035): [enumerateComponents] 15, OMX.BRCM.vc4.decoder.wvc1 08-22 13:59:03.018: D/brcm-omx(9035): [enumerateComponents] 16, OMX.BRCM.vc4.decoder.wvc1.secure 08-22 13:59:03.018: D/brcm-omx(9035): [enumerateComponents] 17, OMX.BRCM.vc4.decoder.wvc1.divx_drm 08-22 13:59:03.018: D/brcm-omx(9035): [enumerateComponents] 18, OMX.BRCM.vc4.decoder.vpx 08-22 13:59:03.018: D/brcm-omx(9035): [enumerateComponents] 19, OMX.BRCM.vc4.decoder.vpx.secure 08-22 13:59:03.018: D/brcm-omx(9035): [enumerateComponents] 20, OMX.BRCM.vc4.decoder.vpx.divx_drm 08-22 13:59:03.018: D/brcm-omx(9035): [enumerateComponents] 21, OMX.BRCM.vc4.decoder.spark 08-22 13:59:03.018: D/brcm-omx(9035): [enumerateComponents] 22, OMX.BRCM.vc4.decoder.spark.secure 08-22 13:59:03.018: D/brcm-omx(9035): [enumerateComponents] 23, OMX.BRCM.vc4.decoder.spark.divx_drm 08-22 13:59:03.018: D/brcm-omx(9035): [enumerateComponents] 24, OMX.BRCM.vc4.encoder.mpeg4 08-22 13:59:03.018: D/brcm-omx(9035): [enumerateComponents] 25, OMX.BRCM.vc4.encoder.mpeg4.secure 08-22 13:59:03.018: D/brcm-omx(9035): [enumerateComponents] 26, OMX.BRCM.vc4.encoder.mpeg4.divx_drm 08-22 13:59:03.018: D/brcm-omx(9035): [enumerateComponents] 27, OMX.BRCM.vc4.encoder.h263 08-22 13:59:03.018: D/brcm-omx(9035): [enumerateComponents] 28, OMX.BRCM.vc4.encoder.h263.secure 08-22 13:59:03.018: D/brcm-omx(9035): [enumerateComponents] 29, OMX.BRCM.vc4.encoder.h263.divx_drm 08-22 13:59:03.018: D/brcm-omx(9035): [enumerateComponents] 30, OMX.BRCM.vc4.encoder.avc 08-22 13:59:03.018: D/brcm-omx(9035): [enumerateComponents] 31, OMX.BRCM.vc4.encoder.avc.secure 08-22 13:59:03.018: D/brcm-omx(9035): [enumerateComponents] 32, OMX.BRCM.vc4.encoder.avc.divx_drm 08-22 13:59:03.028: E/OMXMaster(9035): A component of name 'OMX.ffmpeg.wmv.decoder' already exists, ignoring this one. 08-22 13:59:03.038: I/art(9035): Background sticky concurrent mark sweep GC freed 11583(2012KB) AllocSpace objects, 0(0B) LOS objects, 36% free, 3MB/5MB, paused 8.361ms total 17.974ms 08-22 13:59:03.098: E/SoftAVC(9035): Decoder failed: -2 08-22 13:59:03.098: E/ACodec(9035): [OMX.google.h264.decoder] ERROR(0x80001001) 08-22 13:59:03.098: E/ACodec(9035): signalError(omxError 0x80001001, internalError -2147483648) 08-22 13:59:03.098: E/MediaCodec(9035): Codec reported err 0x80001001, actionCode 0, while in state 6 08-22 13:59:03.098: W/System.err(9035): java.lang.IllegalStateException 08-22 13:59:03.098: W/System.err(9035): at android.media.MediaCodec.native_dequeueOutputBuffer(Native Method) 08-22 13:59:03.098: W/System.err(9035): at android.media.MediaCodec.dequeueOutputBuffer(MediaCodec.java:1036) 08-22 13:59:03.098: W/System.err(9035): at net.majorkernelpanic.streaming.hw.EncoderDebugger.decode(EncoderDebugger.java:776) 08-22 13:59:03.098: W/System.err(9035): at net.majorkernelpanic.streaming.hw.EncoderDebugger.debug(EncoderDebugger.java:249) 08-22 13:59:03.098: W/System.err(9035): at net.majorkernelpanic.streaming.hw.EncoderDebugger.debug(EncoderDebugger.java:117) 08-22 13:59:03.098: W/System.err(9035): at net.majorkernelpanic.streaming.video.H264Stream.testMediaCodecAPI(H264Stream.java:133) 08-22 13:59:03.098: W/System.err(9035): at net.majorkernelpanic.streaming.video.H264Stream.testH264(H264Stream.java:120) 08-22 13:59:03.098: W/System.err(9035): at net.majorkernelpanic.streaming.video.H264Stream.configure(H264Stream.java:112) 08-22 13:59:03.098: W/System.err(9035): at net.majorkernelpanic.streaming.Session.syncConfigure(Session.java:403) 08-22 13:59:03.098: W/System.err(9035): at net.majorkernelpanic.streaming.rtsp.RtspServer$WorkerThread.processRequest(RtspServer.java:439) 08-22 13:59:03.098: W/System.err(9035): at net.majorkernelpanic.streaming.rtsp.RtspServer$WorkerThread.run(RtspServer.java:390) 08-22 13:59:03.098: I/OMXMaster(9035): clearPlugins: 0 key=462fa4e8 value=49218694 08-22 13:59:03.098: I/OMXMaster(9035): clearPlugins: 1 key=46a23428 value=49218544 08-22 13:59:03.098: V/component_tracker(9035): [deinitialize_component_tracker]: called 08-22 13:59:03.098: I/OMXMaster(9035): clearPlugins: 2 key=49126458 value=0 08-22 13:59:03.098: I/OMXClient(9035): Using client-side OMX mux. 08-22 13:59:03.639: I/RtspServer(9035): Connection from 192.168.1.4 08-22 13:59:03.649: E/RtspServer(9035): OPTIONS rtsp://192.168.1.3:1234 08-22 13:59:03.649: D/RtspServer(9035): RTSP/1.0 200 OK 08-22 13:59:03.649: D/RtspServer(9035): Server: MajorKernelPanic RTSP Server 08-22 13:59:03.649: D/RtspServer(9035): Cseq: 1 08-22 13:59:03.649: D/RtspServer(9035): Content-Length: 0 08-22 13:59:03.649: D/RtspServer(9035): Public: DESCRIBE,SETUP,TEARDOWN,PLAY,PAUSE 08-22 13:59:03.659: I/RtspServer(9035): Client disconnected 08-22 13:59:04.940: W/System.err(9035): java.lang.RuntimeException: It is likely that stride!=width 08-22 13:59:04.940: W/System.err(9035): at net.majorkernelpanic.streaming.hw.EncoderDebugger.debug(EncoderDebugger.java:267) 08-22 13:59:04.940: W/System.err(9035): at net.majorkernelpanic.streaming.hw.EncoderDebugger.debug(EncoderDebugger.java:117) 08-22 13:59:04.940: W/System.err(9035): at net.majorkernelpanic.streaming.video.H264Stream.testMediaCodecAPI(H264Stream.java:133) 08-22 13:59:04.940: W/System.err(9035): at net.majorkernelpanic.streaming.video.H264Stream.testH264(H264Stream.java:120) 08-22 13:59:04.940: W/System.err(9035): at net.majorkernelpanic.streaming.video.H264Stream.configure(H264Stream.java:112) 08-22 13:59:04.940: W/System.err(9035): at net.majorkernelpanic.streaming.Session.syncConfigure(Session.java:403) 08-22 13:59:04.940: W/System.err(9035): at net.majorkernelpanic.streaming.rtsp.RtspServer$WorkerThread.processRequest(RtspServer.java:439) 08-22 13:59:04.940: W/System.err(9035): at net.majorkernelpanic.streaming.rtsp.RtspServer$WorkerThread.run(RtspServer.java:390) 08-22 13:59:04.950: E/H264Stream(9035): Resolution not supported with the MediaCodec API, we fallback on the old streamign method. 08-22 13:59:04.960: I/H264Stream(9035): Testing H264 support... Test file saved at: /storage/emulated/0/spydroid-test.mp4 08-22 13:59:05.070: D/VideoStream(9035): Unlocking camera 08-22 13:59:05.080: I/MediaRecorderJNI(9035): prepare: surface=0x49127638 08-22 13:59:05.100: E/MediaRecorder(9035): start failed: -19 08-22 13:59:05.100: E/MediaRecorder(9035): stop called in an invalid state: 0 08-22 13:59:05.100: D/VideoStream(9035): Locking camera 08-22 13:59:05.100: E/RtspServer(9035): start failed. 08-22 13:59:05.100: W/System.err(9035): net.majorkernelpanic.streaming.exceptions.ConfNotSupportedException: start failed. 08-22 13:59:05.100: W/System.err(9035): at net.majorkernelpanic.streaming.video.H264Stream.testMediaRecorderAPI(H264Stream.java:238) 08-22 13:59:05.100: W/System.err(9035): at net.majorkernelpanic.streaming.video.H264Stream.testH264(H264Stream.java:121) 08-22 13:59:05.100: W/System.err(9035): at net.majorkernelpanic.streaming.video.H264Stream.testMediaCodecAPI(H264Stream.java:139) 08-22 13:59:05.100: W/System.err(9035): at net.majorkernelpanic.streaming.video.H264Stream.testH264(H264Stream.java:120) 08-22 13:59:05.100: W/System.err(9035): at net.majorkernelpanic.streaming.video.H264Stream.configure(H264Stream.java:112) 08-22 13:59:05.100: W/System.err(9035): at net.majorkernelpanic.streaming.Session.syncConfigure(Session.java:403) 08-22 13:59:05.100: W/System.err(9035): at net.majorkernelpanic.streaming.rtsp.RtspServer$WorkerThread.processRequest(RtspServer.java:439) 08-22 13:59:05.100: W/System.err(9035): at net.majorkernelpanic.streaming.rtsp.RtspServer$WorkerThread.run(RtspServer.java:390) 08-22 13:59:05.100: D/RtspServer(9035): RTSP/1.0 500 Internal Server Error 08-22 13:59:05.100: D/RtspServer(9035): Server: MajorKernelPanic RTSP Server 08-22 13:59:05.100: D/RtspServer(9035): Cseq: 3 08-22 13:59:05.100: D/RtspServer(9035): Content-Length: 0 08-22 13:59:05.100: V/VideoQuality(9035): Supported resolutions: 176x144, 320x240, 352x288, 640x480, 720x480, 800x600, 1024x768, 1280x720, 1920x1080 08-22 13:59:05.110: V/VideoQuality(9035): Supported frame rates: 10-10fps, 15-15fps, 24-24fps, 1-30fps, 30-30fps 08-22 13:59:05.220: I/RtspServer(9035): Client disconnected

eskalera commented 6 years ago

Did you ever solve this?

ishaan-khan commented 6 years ago

Nope. I never got a response from the developer as well. I think it's a dead library.

eskalera commented 6 years ago

Thanks. That's what I thought too. There are no answers to any issue. It still seems to be the reference open library for Android RTSP streaming in most forums though.

Did you ever get an RTSP Android Server with any other technology?

ishaan-khan commented 6 years ago

Actually we had to drop out on this idea. We had to come up with an alternative to this. Have a look at this, maybe it helps. https://github.com/VideoExpertsGroup/RTSP.Server.Android

eskalera commented 6 years ago

I'd tried this repo and it works really well, but it is a 2 minute demo and the full license starts at $250/mo. Thanks anyway.