Skip to content
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

Can not stream with resolution greater than 320x240 #45

Open
LuuHieu opened this issue Jun 11, 2018 · 0 comments
Open

Can not stream with resolution greater than 320x240 #45

LuuHieu opened this issue Jun 11, 2018 · 0 comments

Comments

@LuuHieu
Copy link

LuuHieu commented Jun 11, 2018

I tried to stream with different resolutions but only can work with 320x240 and 176x144.

SessionBuilder.getInstance()
              .setSurfaceView(mSurfaceCamera)
              .setPreviewOrientation(90)
              .setContext(getApplicationContext())
              .setAudioEncoder(SessionBuilder.AUDIO_NONE)
              .setVideoEncoder(SessionBuilder.VIDEO_H264)
              .setVideoQuality(new VideoQuality(320, 240, 20, 500000));

      // Starts the RTSP server
      startService(new Intent(ServerActivity.this, RtspServer.class));

and errors occurs then client disconnect

com.avct.securitycamera I/RtspServer: RTSP server listening on port 8080
com.avct.securitycamera I/Choreographer: Skipped 50 frames!  The application may be doing too much work on its main thread.
com.avct.securitycamera W/PathParser: Points are too far apart 4.000000596046461
com.avct.securitycamera I/Timeline: Timeline: Activity_idle id: android.os.BinderProxy@e2f37e0 time:73301064
com.avct.securitycamera I/RtspServer: Connection from 192.168.49.18
com.avct.securitycamera E/RtspServer: DESCRIBE rtsp://192.168.49.1:8080
com.avct.securitycamera I/MediaStream: Phone supports the MediaCoded API
com.avct.securitycamera E/Camera: Error 2
com.avct.securitycamera V/VideoQuality: Supported resolutions: 1920x1080, 1600x1200, 1280x720, 960x720, 720x480, 640x480, 480x320, 320x240, 176x144
    Supported frame rates: 5-15fps, 15-15fps, 5-30fps, 30-30fps
com.avct.securitycamera W/VideoCapabilities: Unrecognized profile 2130706433 for video/avc
com.avct.securitycamera W/AudioCapabilities: Unsupported mime audio/alac
com.avct.securitycamera W/AudioCapabilities: Unsupported mime audio/dsd
com.avct.securitycamera W/VideoCapabilities: Unsupported mime video/divx
com.avct.securitycamera W/VideoCapabilities: Unsupported mime video/divx311
com.avct.securitycamera W/VideoCapabilities: Unsupported mime video/divx4
com.avct.securitycamera W/VideoCapabilities: Unsupported mime video/mp4v-esdp
com.avct.securitycamera I/VideoCapabilities: Unsupported profile 4 for video/mp4v-es
com.avct.securitycamera W/VideoCapabilities: Unrecognized profile 2130706433 for video/avc
com.avct.securitycamera I/OMXClient: Using client-side OMX mux.
com.avct.securitycamera E/OMXMaster: A component of name 'OMX.qcom.audio.decoder.aac' already exists, ignoring this one.
com.avct.securitycamera D/MediaOutputController: attach(0x0, 0xa02b1880, 0xb5c46701)
com.avct.securitycamera D/MediaCodec: MediaCodec callback for event 0
    onMediaOutputControllEvent(VIDEO_FLAGS_SET, 0x9e5dd55c, 4)
com.avct.securitycamera D/MediaCodec: mVideoOutputFlags = 0x00000000
com.avct.securitycamera D/MediaOutputController: onConnect(): 0x00010003
    setAudioDevicesState(0x00010003, 1)
com.avct.securitycamera D/MediaOutputPolicy: notifyAudioStateIfNeeded(0x00010003)
com.avct.securitycamera D/MediaOutputController: Registered as audio policy client
com.avct.securitycamera I/ExtendedACodec: setupVideoEncoder()
com.avct.securitycamera I/ACodec: setupVideoEncoder succeeded
com.avct.securitycamera D/ACodec: Found video-output-protection flags set to 00000000
com.avct.securitycamera D/SoftAVCEnc: Params width 480 height 320 level 41 colorFormat 0
com.avct.securitycamera I/OMXClient: Using client-side OMX mux.
com.avct.securitycamera E/OMXMaster: A component of name 'OMX.qcom.audio.decoder.aac' already exists, ignoring this one.
com.avct.securitycamera D/MediaOutputController: attach(0x0, 0xa02b19c0, 0xb5c46701)
com.avct.securitycamera D/MediaCodec: MediaCodec callback for event 0
    onMediaOutputControllEvent(VIDEO_FLAGS_SET, 0x9d97f55c, 4)
    mVideoOutputFlags = 0x00000000
com.avct.securitycamera D/MediaOutputPolicy: notifyAudioStateIfNeeded(0x00010003)
com.avct.securitycamera I/ExtendedACodec: setupVideoDecoder()
com.avct.securitycamera D/ACodec: Found video-output-protection flags set to 00000000
com.avct.securitycamera W/System.err: java.lang.RuntimeException: The decoder did not decode anything.
        at net.majorkernelpanic.streaming.hw.EncoderDebugger.decode(EncoderDebugger.java:796)
        at net.majorkernelpanic.streaming.hw.EncoderDebugger.debug(EncoderDebugger.java:244)
        at net.majorkernelpanic.streaming.hw.EncoderDebugger.debug(EncoderDebugger.java:113)
        at net.majorkernelpanic.streaming.video.H264Stream.testMediaCodecAPI(H264Stream.java:129)
        at net.majorkernelpanic.streaming.video.H264Stream.testH264(H264Stream.java:116)
        at net.majorkernelpanic.streaming.video.H264Stream.configure(H264Stream.java:108)
        at net.majorkernelpanic.streaming.Session.syncConfigure(Session.java:389)
        at net.majorkernelpanic.streaming.rtsp.RtspServer$WorkerThread.processRequest(RtspServer.java:460)
        at net.majorkernelpanic.streaming.rtsp.RtspServer$WorkerThread.run(RtspServer.java:403)
com.avct.securitycamera D/MediaOutputController: detach(0xa02b19c0)
com.avct.securitycamera I/OMXClient: Using client-side OMX mux.
com.avct.securitycamera D/MediaOutputController: attach(0x0, 0xa02b19c0, 0xb5c46701)
com.avct.securitycamera D/MediaCodec: MediaCodec callback for event 0
    onMediaOutputControllEvent(VIDEO_FLAGS_SET, 0x9d97f55c, 4)
    mVideoOutputFlags = 0x00000000
com.avct.securitycamera D/MediaOutputPolicy: notifyAudioStateIfNeeded(0x00010003)
com.avct.securitycamera I/ExtendedACodec: setupVideoDecoder()
    vpp-enable search is 0 and value is 0
com.avct.securitycamera I/ExtendedACodec: Decoder will be in frame by frame mode
com.avct.securitycamera D/ACodec: Found video-output-protection flags set to 00000000
com.avct.securitycamera W/ExtendedACodec: Failed to get Profile and Level from Component
com.avct.securitycamera W/ExtendedACodec: Failed to get Entropy from Component
com.avct.securitycamera W/System.err: java.lang.RuntimeException: The decoder did not decode anything.
        at net.majorkernelpanic.streaming.hw.EncoderDebugger.decode(EncoderDebugger.java:796)
        at net.majorkernelpanic.streaming.hw.EncoderDebugger.debug(EncoderDebugger.java:244)
        at net.majorkernelpanic.streaming.hw.EncoderDebugger.debug(EncoderDebugger.java:113)
        at net.majorkernelpanic.streaming.video.H264Stream.testMediaCodecAPI(H264Stream.java:129)
        at net.majorkernelpanic.streaming.video.H264Stream.testH264(H264Stream.java:116)
        at net.majorkernelpanic.streaming.video.H264Stream.configure(H264Stream.java:108)
        at net.majorkernelpanic.streaming.Session.syncConfigure(Session.java:389)
        at net.majorkernelpanic.streaming.rtsp.RtspServer$WorkerThread.processRequest(RtspServer.java:460)
        at net.majorkernelpanic.streaming.rtsp.RtspServer$WorkerThread.run(RtspServer.java:403)
com.avct.securitycamera D/MediaOutputController: detach(0xa02b19c0)
com.avct.securitycamera I/OMXClient: Using client-side OMX mux.
com.avct.securitycamera D/MediaOutputController: attach(0x0, 0xa02b19c0, 0xb5c46701)
com.avct.securitycamera D/MediaCodec: MediaCodec callback for event 0
    onMediaOutputControllEvent(VIDEO_FLAGS_SET, 0x9d97f55c, 4)
    mVideoOutputFlags = 0x00000000
com.avct.securitycamera D/MediaOutputPolicy: notifyAudioStateIfNeeded(0x00010003)
com.avct.securitycamera I/ExtendedACodec: setupVideoDecoder()
    vpp-enable search is 0 and value is 0
com.avct.securitycamera I/ExtendedACodec: Decoder will be in frame by frame mode
com.avct.securitycamera D/ACodec: Found video-output-protection flags set to 00000000
com.avct.securitycamera W/ExtendedACodec: Failed to get Profile and Level from Component
com.avct.securitycamera W/ExtendedACodec: Failed to get Entropy from Component
com.avct.securitycamera W/System.err: java.lang.RuntimeException: The decoder did not decode anything.
        at net.majorkernelpanic.streaming.hw.EncoderDebugger.decode(EncoderDebugger.java:796)
        at net.majorkernelpanic.streaming.hw.EncoderDebugger.debug(EncoderDebugger.java:244)
        at net.majorkernelpanic.streaming.hw.EncoderDebugger.debug(EncoderDebugger.java:113)
        at net.majorkernelpanic.streaming.video.H264Stream.testMediaCodecAPI(H264Stream.java:129)
        at net.majorkernelpanic.streaming.video.H264Stream.testH264(H264Stream.java:116)
        at net.majorkernelpanic.streaming.video.H264Stream.configure(H264Stream.java:108)
        at net.majorkernelpanic.streaming.Session.syncConfigure(Session.java:389)
        at net.majorkernelpanic.streaming.rtsp.RtspServer$WorkerThread.processRequest(RtspServer.java:460)
com.avct.securitycamera W/System.err:     at net.majorkernelpanic.streaming.rtsp.RtspServer$WorkerThread.run(RtspServer.java:403)
com.avct.securitycamera D/MediaOutputController: detach(0xa02b19c0)
com.avct.securitycamera W/System.err: java.lang.RuntimeException: Failed to decode NALs from the encoder.
        at net.majorkernelpanic.streaming.hw.EncoderDebugger.debug(EncoderDebugger.java:256)
        at net.majorkernelpanic.streaming.hw.EncoderDebugger.debug(EncoderDebugger.java:113)
        at net.majorkernelpanic.streaming.video.H264Stream.testMediaCodecAPI(H264Stream.java:129)
        at net.majorkernelpanic.streaming.video.H264Stream.testH264(H264Stream.java:116)
        at net.majorkernelpanic.streaming.video.H264Stream.configure(H264Stream.java:108)
        at net.majorkernelpanic.streaming.Session.syncConfigure(Session.java:389)
        at net.majorkernelpanic.streaming.rtsp.RtspServer$WorkerThread.processRequest(RtspServer.java:460)
        at net.majorkernelpanic.streaming.rtsp.RtspServer$WorkerThread.run(RtspServer.java:403)
com.avct.securitycamera D/MediaOutputController: detach(0xa02b1880)
com.avct.securitycamera I/OMXClient: Using client-side OMX mux.
com.avct.securitycamera E/OMXMaster: A component of name 'OMX.qcom.audio.decoder.aac' already exists, ignoring this one.
com.avct.securitycamera D/MediaOutputController: attach(0x0, 0xa02b1880, 0xb5c46701)
com.avct.securitycamera D/MediaCodec: MediaCodec callback for event 0
    onMediaOutputControllEvent(VIDEO_FLAGS_SET, 0x9e5dd55c, 4)
    mVideoOutputFlags = 0x00000000
com.avct.securitycamera D/MediaOutputPolicy: notifyAudioStateIfNeeded(0x00010003)
com.avct.securitycamera I/ExtendedACodec: setupVideoEncoder()
com.avct.securitycamera I/ACodec: setupVideoEncoder succeeded
com.avct.securitycamera D/ACodec: Found video-output-protection flags set to 00000000
com.avct.securitycamera D/SoftAVCEnc: Params width 480 height 320 level 41 colorFormat 1
com.avct.securitycamera I/OMXClient: Using client-side OMX mux.
com.avct.securitycamera E/OMXMaster: A component of name 'OMX.qcom.audio.decoder.aac' already exists, ignoring this one.
com.avct.securitycamera D/MediaOutputController: attach(0x0, 0xa02b19c0, 0xb5c46701)
com.avct.securitycamera D/MediaCodec: MediaCodec callback for event 0
    onMediaOutputControllEvent(VIDEO_FLAGS_SET, 0x9d97f55c, 4)
    mVideoOutputFlags = 0x00000000
com.avct.securitycamera D/MediaOutputPolicy: notifyAudioStateIfNeeded(0x00010003)
com.avct.securitycamera I/ExtendedACodec: setupVideoDecoder()
com.avct.securitycamera D/ACodec: Found video-output-protection flags set to 00000000
com.avct.securitycamera W/System.err: java.lang.RuntimeException: The decoder did not decode anything.
        at net.majorkernelpanic.streaming.hw.EncoderDebugger.decode(EncoderDebugger.java:796)
        at net.majorkernelpanic.streaming.hw.EncoderDebugger.debug(EncoderDebugger.java:244)
        at net.majorkernelpanic.streaming.hw.EncoderDebugger.debug(EncoderDebugger.java:113)
com.avct.securitycamera W/System.err:     at net.majorkernelpanic.streaming.video.H264Stream.testMediaCodecAPI(H264Stream.java:129)
        at net.majorkernelpanic.streaming.video.H264Stream.testH264(H264Stream.java:116)
        at net.majorkernelpanic.streaming.video.H264Stream.configure(H264Stream.java:108)
        at net.majorkernelpanic.streaming.Session.syncConfigure(Session.java:389)
        at net.majorkernelpanic.streaming.rtsp.RtspServer$WorkerThread.processRequest(RtspServer.java:460)
        at net.majorkernelpanic.streaming.rtsp.RtspServer$WorkerThread.run(RtspServer.java:403)
com.avct.securitycamera D/MediaOutputController: detach(0xa02b19c0)
com.avct.securitycamera I/OMXClient: Using client-side OMX mux.
com.avct.securitycamera D/MediaOutputController: attach(0x0, 0xa02b19c0, 0xb5c46701)
com.avct.securitycamera D/MediaCodec: MediaCodec callback for event 0
    onMediaOutputControllEvent(VIDEO_FLAGS_SET, 0x9cc5f55c, 4)
    mVideoOutputFlags = 0x00000000
com.avct.securitycamera D/MediaOutputPolicy: notifyAudioStateIfNeeded(0x00010003)
com.avct.securitycamera I/ExtendedACodec: setupVideoDecoder()
com.avct.securitycamera I/ExtendedACodec: vpp-enable search is 0 and value is 0
com.avct.securitycamera I/ExtendedACodec: Decoder will be in frame by frame mode
com.avct.securitycamera D/ACodec: Found video-output-protection flags set to 00000000
com.avct.securitycamera W/ExtendedACodec: Failed to get Profile and Level from Component
com.avct.securitycamera W/ExtendedACodec: Failed to get Entropy from Component
com.avct.securitycamera W/System.err: java.lang.RuntimeException: The decoder did not decode anything.
        at net.majorkernelpanic.streaming.hw.EncoderDebugger.decode(EncoderDebugger.java:796)
        at net.majorkernelpanic.streaming.hw.EncoderDebugger.debug(EncoderDebugger.java:244)
        at net.majorkernelpanic.streaming.hw.EncoderDebugger.debug(EncoderDebugger.java:113)
        at net.majorkernelpanic.streaming.video.H264Stream.testMediaCodecAPI(H264Stream.java:129)
        at net.majorkernelpanic.streaming.video.H264Stream.testH264(H264Stream.java:116)
        at net.majorkernelpanic.streaming.video.H264Stream.configure(H264Stream.java:108)
        at net.majorkernelpanic.streaming.Session.syncConfigure(Session.java:389)
        at net.majorkernelpanic.streaming.rtsp.RtspServer$WorkerThread.processRequest(RtspServer.java:460)
        at net.majorkernelpanic.streaming.rtsp.RtspServer$WorkerThread.run(RtspServer.java:403)
com.avct.securitycamera D/MediaOutputController: detach(0xa02b19c0)
com.avct.securitycamera I/OMXClient: Using client-side OMX mux.
com.avct.securitycamera D/MediaOutputController: attach(0x0, 0xa02b19c0, 0xb5c46701)
com.avct.securitycamera D/MediaCodec: MediaCodec callback for event 0
    onMediaOutputControllEvent(VIDEO_FLAGS_SET, 0x9d97f55c, 4)
    mVideoOutputFlags = 0x00000000
com.avct.securitycamera D/MediaOutputPolicy: notifyAudioStateIfNeeded(0x00010003)
com.avct.securitycamera I/ExtendedACodec: setupVideoDecoder()
    vpp-enable search is 0 and value is 0
com.avct.securitycamera I/ExtendedACodec: Decoder will be in frame by frame mode
com.avct.securitycamera D/ACodec: Found video-output-protection flags set to 00000000
com.avct.securitycamera W/ExtendedACodec: Failed to get Profile and Level from Component
com.avct.securitycamera W/ExtendedACodec: Failed to get Entropy from Component
com.avct.securitycamera W/System.err: java.lang.RuntimeException: The decoder did not decode anything.
        at net.majorkernelpanic.streaming.hw.EncoderDebugger.decode(EncoderDebugger.java:796)
        at net.majorkernelpanic.streaming.hw.EncoderDebugger.debug(EncoderDebugger.java:244)
        at net.majorkernelpanic.streaming.hw.EncoderDebugger.debug(EncoderDebugger.java:113)
        at net.majorkernelpanic.streaming.video.H264Stream.testMediaCodecAPI(H264Stream.java:129)
        at net.majorkernelpanic.streaming.video.H264Stream.testH264(H264Stream.java:116)
        at net.majorkernelpanic.streaming.video.H264Stream.configure(H264Stream.java:108)
        at net.majorkernelpanic.streaming.Session.syncConfigure(Session.java:389)
        at net.majorkernelpanic.streaming.rtsp.RtspServer$WorkerThread.processRequest(RtspServer.java:460)
        at net.majorkernelpanic.streaming.rtsp.RtspServer$WorkerThread.run(RtspServer.java:403)
com.avct.securitycamera D/MediaOutputController: detach(0xa02b19c0)
com.avct.securitycamera W/System.err: java.lang.RuntimeException: Failed to decode NALs from the encoder.
        at net.majorkernelpanic.streaming.hw.EncoderDebugger.debug(EncoderDebugger.java:256)
com.avct.securitycamera W/System.err:     at net.majorkernelpanic.streaming.hw.EncoderDebugger.debug(EncoderDebugger.java:113)
        at net.majorkernelpanic.streaming.video.H264Stream.testMediaCodecAPI(H264Stream.java:129)
        at net.majorkernelpanic.streaming.video.H264Stream.testH264(H264Stream.java:116)
        at net.majorkernelpanic.streaming.video.H264Stream.configure(H264Stream.java:108)
        at net.majorkernelpanic.streaming.Session.syncConfigure(Session.java:389)
        at net.majorkernelpanic.streaming.rtsp.RtspServer$WorkerThread.processRequest(RtspServer.java:460)
        at net.majorkernelpanic.streaming.rtsp.RtspServer$WorkerThread.run(RtspServer.java:403)
com.avct.securitycamera D/MediaOutputController: detach(0xa02b1880)
com.avct.securitycamera I/OMXClient: Using client-side OMX mux.
com.avct.securitycamera D/MediaOutputController: attach(0x0, 0xa02b1880, 0xb5c46701)
com.avct.securitycamera D/MediaCodec: MediaCodec callback for event 0
    onMediaOutputControllEvent(VIDEO_FLAGS_SET, 0x9e5dd55c, 4)
    mVideoOutputFlags = 0x00000000
com.avct.securitycamera D/MediaOutputPolicy: notifyAudioStateIfNeeded(0x00010003)
com.avct.securitycamera E/ACodec: [OMX.qcom.video.encoder.avc] storeMetaDataInBuffers (output) failed w/ err -1010
com.avct.securitycamera I/ExtendedACodec: setupVideoEncoder()
com.avct.securitycamera W/ACodec: do not know color format 0x7fa30c04 = 2141391876
    do not know color format 0x7f000789 = 2130708361
com.avct.securitycamera I/ACodec: setupVideoEncoder succeeded
com.avct.securitycamera I/ExtendedACodec: [OMX.qcom.video.encoder.avc] configure, AMessage : AMessage(what = 'conf', target = 29) = {
      int32_t height = 320
      int32_t width = 480
      int32_t bitrate = 1000000
      string mime = "video/avc"
      int32_t frame-rate = 20
      int32_t i-frame-interval = 1
      int32_t color-format = 21
      int32_t video-output-protection = 0
      int32_t encoder = 1
      int32_t MediaCodec = 1
    }
com.avct.securitycamera D/ACodec: Found video-output-protection flags set to 00000000
com.avct.securitycamera I/OMXClient: Using client-side OMX mux.
com.avct.securitycamera E/OMXMaster: A component of name 'OMX.qcom.audio.decoder.aac' already exists, ignoring this one.
com.avct.securitycamera D/MediaOutputController: attach(0x0, 0xa02b19c0, 0xb5c46701)
com.avct.securitycamera D/MediaCodec: MediaCodec callback for event 0
    onMediaOutputControllEvent(VIDEO_FLAGS_SET, 0x9de0b55c, 4)
    mVideoOutputFlags = 0x00000000
com.avct.securitycamera D/MediaOutputPolicy: notifyAudioStateIfNeeded(0x00010003)
com.avct.securitycamera I/ExtendedACodec: setupVideoDecoder()
com.avct.securitycamera D/ACodec: Found video-output-protection flags set to 00000000
com.avct.securitycamera W/System.err: java.lang.RuntimeException: The decoder did not decode anything.
        at net.majorkernelpanic.streaming.hw.EncoderDebugger.decode(EncoderDebugger.java:796)
        at net.majorkernelpanic.streaming.hw.EncoderDebugger.debug(EncoderDebugger.java:244)
        at net.majorkernelpanic.streaming.hw.EncoderDebugger.debug(EncoderDebugger.java:113)
        at net.majorkernelpanic.streaming.video.H264Stream.testMediaCodecAPI(H264Stream.java:129)
        at net.majorkernelpanic.streaming.video.H264Stream.testH264(H264Stream.java:116)
        at net.majorkernelpanic.streaming.video.H264Stream.configure(H264Stream.java:108)
        at net.majorkernelpanic.streaming.Session.syncConfigure(Session.java:389)
        at net.majorkernelpanic.streaming.rtsp.RtspServer$WorkerThread.processRequest(RtspServer.java:460)
com.avct.securitycamera W/System.err:     at net.majorkernelpanic.streaming.rtsp.RtspServer$WorkerThread.run(RtspServer.java:403)
com.avct.securitycamera D/MediaOutputController: detach(0xa02b19c0)
com.avct.securitycamera I/OMXClient: Using client-side OMX mux.
com.avct.securitycamera D/MediaOutputController: attach(0x0, 0xa02b19c0, 0xb5c46701)
com.avct.securitycamera D/MediaCodec: MediaCodec callback for event 0
    onMediaOutputControllEvent(VIDEO_FLAGS_SET, 0x9d97f55c, 4)
    mVideoOutputFlags = 0x00000000
com.avct.securitycamera D/MediaOutputPolicy: notifyAudioStateIfNeeded(0x00010003)
com.avct.securitycamera I/ExtendedACodec: setupVideoDecoder()
    vpp-enable search is 0 and value is 0
com.avct.securitycamera I/ExtendedACodec: Decoder will be in frame by frame mode
com.avct.securitycamera D/ACodec: Found video-output-protection flags set to 00000000
com.avct.securitycamera W/ExtendedACodec: Failed to get Profile and Level from Component
com.avct.securitycamera W/ExtendedACodec: Failed to get Entropy from Component
com.avct.securitycamera W/System.err: java.lang.RuntimeException: The decoder did not decode anything.
        at net.majorkernelpanic.streaming.hw.EncoderDebugger.decode(EncoderDebugger.java:796)
        at net.majorkernelpanic.streaming.hw.EncoderDebugger.debug(EncoderDebugger.java:244)
        at net.majorkernelpanic.streaming.hw.EncoderDebugger.debug(EncoderDebugger.java:113)
        at net.majorkernelpanic.streaming.video.H264Stream.testMediaCodecAPI(H264Stream.java:129)
        at net.majorkernelpanic.streaming.video.H264Stream.testH264(H264Stream.java:116)
        at net.majorkernelpanic.streaming.video.H264Stream.configure(H264Stream.java:108)
        at net.majorkernelpanic.streaming.Session.syncConfigure(Session.java:389)
        at net.majorkernelpanic.streaming.rtsp.RtspServer$WorkerThread.processRequest(RtspServer.java:460)
com.avct.securitycamera W/System.err:     at net.majorkernelpanic.streaming.rtsp.RtspServer$WorkerThread.run(RtspServer.java:403)
com.avct.securitycamera D/MediaOutputController: detach(0xa02b19c0)
com.avct.securitycamera I/OMXClient: Using client-side OMX mux.
com.avct.securitycamera D/MediaOutputController: attach(0x0, 0xa02b19c0, 0xb5c46701)
com.avct.securitycamera D/MediaCodec: MediaCodec callback for event 0
    onMediaOutputControllEvent(VIDEO_FLAGS_SET, 0x9de0b55c, 4)
    mVideoOutputFlags = 0x00000000
com.avct.securitycamera D/MediaOutputPolicy: notifyAudioStateIfNeeded(0x00010003)
com.avct.securitycamera I/ExtendedACodec: setupVideoDecoder()
    vpp-enable search is 0 and value is 0
com.avct.securitycamera I/ExtendedACodec: Decoder will be in frame by frame mode
com.avct.securitycamera D/ACodec: Found video-output-protection flags set to 00000000
com.avct.securitycamera W/ExtendedACodec: Failed to get Profile and Level from Component
com.avct.securitycamera W/ExtendedACodec: Failed to get Entropy from Component
com.avct.securitycamera W/System.err: java.lang.RuntimeException: The decoder did not decode anything.
        at net.majorkernelpanic.streaming.hw.EncoderDebugger.decode(EncoderDebugger.java:796)
        at net.majorkernelpanic.streaming.hw.EncoderDebugger.debug(EncoderDebugger.java:244)
        at net.majorkernelpanic.streaming.hw.EncoderDebugger.debug(EncoderDebugger.java:113)
        at net.majorkernelpanic.streaming.video.H264Stream.testMediaCodecAPI(H264Stream.java:129)
        at net.majorkernelpanic.streaming.video.H264Stream.testH264(H264Stream.java:116)
        at net.majorkernelpanic.streaming.video.H264Stream.configure(H264Stream.java:108)
        at net.majorkernelpanic.streaming.Session.syncConfigure(Session.java:389)
com.avct.securitycamera W/System.err:     at net.majorkernelpanic.streaming.rtsp.RtspServer$WorkerThread.processRequest(RtspServer.java:460)
        at net.majorkernelpanic.streaming.rtsp.RtspServer$WorkerThread.run(RtspServer.java:403)
com.avct.securitycamera D/MediaOutputController: detach(0xa02b19c0)
com.avct.securitycamera W/System.err: java.lang.RuntimeException: Failed to decode NALs from the encoder.
        at net.majorkernelpanic.streaming.hw.EncoderDebugger.debug(EncoderDebugger.java:256)
        at net.majorkernelpanic.streaming.hw.EncoderDebugger.debug(EncoderDebugger.java:113)
        at net.majorkernelpanic.streaming.video.H264Stream.testMediaCodecAPI(H264Stream.java:129)
        at net.majorkernelpanic.streaming.video.H264Stream.testH264(H264Stream.java:116)
        at net.majorkernelpanic.streaming.video.H264Stream.configure(H264Stream.java:108)
        at net.majorkernelpanic.streaming.Session.syncConfigure(Session.java:389)
        at net.majorkernelpanic.streaming.rtsp.RtspServer$WorkerThread.processRequest(RtspServer.java:460)
        at net.majorkernelpanic.streaming.rtsp.RtspServer$WorkerThread.run(RtspServer.java:403)
com.avct.securitycamera D/MediaOutputController: detach(0xa02b1880)
com.avct.securitycamera E/EncoderDebugger: No usable encoder were found on the phone for resolution 480x320
com.avct.securitycamera E/H264Stream: Resolution not supported with the MediaCodec API, we fallback on the old streamign method.
com.avct.securitycamera I/H264Stream: Testing H264 support... Test file saved at: /storage/emulated/0/spydroid-test.mp4
com.avct.securitycamera D/VideoStream: Unlocking camera
com.avct.securitycamera I/MediaRecorderJNI: prepare: surface=0xaa4d3200
com.avct.securitycamera E/MediaRecorder: start failed: -19
com.avct.securitycamera E/ExtendedMediaRecorder: stop called in an invalid state: 0
com.avct.securitycamera D/VideoStream: Locking camera
com.avct.securitycamera E/RtspServer: start failed.
com.avct.securitycamera W/System.err: net.majorkernelpanic.streaming.exceptions.ConfNotSupportedException: start failed.
        at net.majorkernelpanic.streaming.video.H264Stream.testMediaRecorderAPI(H264Stream.java:234)
        at net.majorkernelpanic.streaming.video.H264Stream.testH264(H264Stream.java:117)
        at net.majorkernelpanic.streaming.video.H264Stream.testMediaCodecAPI(H264Stream.java:135)
        at net.majorkernelpanic.streaming.video.H264Stream.testH264(H264Stream.java:116)
        at net.majorkernelpanic.streaming.video.H264Stream.configure(H264Stream.java:108)
com.avct.securitycamera W/System.err:     at net.majorkernelpanic.streaming.Session.syncConfigure(Session.java:389)
        at net.majorkernelpanic.streaming.rtsp.RtspServer$WorkerThread.processRequest(RtspServer.java:460)
        at net.majorkernelpanic.streaming.rtsp.RtspServer$WorkerThread.run(RtspServer.java:403)
com.avct.securitycamera D/RtspServer: RTSP/1.0 500 Internal Server Error
    Server: MajorKernelPanic RTSP Server
    Cseq: 1
    Content-Length: 0
com.avct.securitycamera I/RtspServer: Client disconnected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant