Giter Site home page Giter Site logo

Comments (5)

mehroz1 avatar mehroz1 commented on August 14, 2024

As you can see no matter what I do I cant replicate your library neither I can use it to see the results.

from livehiddencamera.

mehroz1 avatar mehroz1 commented on August 14, 2024

Here is another log from second test app in this log surfacePreviewTexture is failing.

01-01 19:48:29.308 12384-12384/? I/art: Late-enabling -Xcheck:jni
01-01 19:48:29.338 12384-12394/? I/art: Debugger is no longer active
01-01 19:48:29.438 12384-12384/? W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter androidx.vectordrawable.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
01-01 19:48:29.458 12384-12384/? E/Process: android_os_Process_getProcessNameByPid pid is 12384
01-01 19:48:29.458 12384-12384/? E/Process: android_os_Process_getProcessNameByPid value is ddentesttwo.cam
01-01 19:48:29.458 12384-12384/? E/CheckPermission: camera-code= 2
01-01 19:48:29.478 12384-12403/? D/OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true
01-01 19:48:29.478 12384-12384/? D/Atlas: Validating map...
01-01 19:48:29.488 12384-12384/? D/camera_power: open camera PackageName = com.livehiddentesttwo.cam
01-01 19:48:29.488 12384-12384/? E/CheckPermission: camera-code= 3
01-01 19:48:29.638 12384-12384/? E/CameraPreviewsafeCamera: Camera ID is 1
01-01 19:48:29.638 12384-12384/? E/SafeCameraOpen: True
01-01 19:48:29.638 12384-12384/? E/Camera Preview: startCameraInternal is not null before request layout which is good :)
01-01 19:48:29.638 12384-12384/? E/CameraSurface: Invalid
01-01 19:48:29.638 12384-12384/? E/StartInternalCam: Camera Object is set. Releasing Preview.
01-01 19:48:29.638 12384-12384/? D/Camera: app passed NULL surface
01-01 19:48:29.658 12384-12384/? E/Camera Layout: First Camera ID: 1
01-01 19:48:29.658 12384-12384/? E/Camera Object: 1
01-01 19:48:29.658 12384-12384/? W/linker: /data/app/com.livehiddentesttwo.cam-1/lib/arm64/libyuv.so: unused DT entry: type 0x6ffffef5 arg 0x1350
01-01 19:48:29.658 12384-12384/? W/linker: /data/app/com.livehiddentesttwo.cam-1/lib/arm64/libyuv.so: unused DT entry: type 0x6ffffffe arg 0x85e0
01-01 19:48:29.658 12384-12384/? W/linker: /data/app/com.livehiddentesttwo.cam-1/lib/arm64/libyuv.so: unused DT entry: type 0x6fffffff arg 0x2
01-01 19:48:29.658 12384-12384/? W/linker: /data/app/com.livehiddentesttwo.cam-1/lib/arm64/libenc.so: unused DT entry: type 0x6ffffef5 arg 0x13b0
01-01 19:48:29.658 12384-12384/? W/linker: /data/app/com.livehiddentesttwo.cam-1/lib/arm64/libenc.so: unused DT entry: type 0x6ffffffe arg 0x99a0
01-01 19:48:29.658 12384-12384/? W/linker: /data/app/com.livehiddentesttwo.cam-1/lib/arm64/libenc.so: unused DT entry: type 0x6fffffff arg 0x3
01-01 19:48:30.048 12384-12384/? W/AudioCapabilities: Unsupported mime audio/evrc
01-01 19:48:30.048 12384-12384/? W/AudioCapabilities: Unsupported mime audio/qcelp
01-01 19:48:30.048 12384-12384/? W/VideoCapabilities: Unrecognized profile 2130706433 for video/avc
01-01 19:48:30.068 12384-12384/? W/AudioCapabilities: Unsupported mime audio/qcelp
01-01 19:48:30.068 12384-12384/? W/AudioCapabilities: Unsupported mime audio/evrc
01-01 19:48:30.068 12384-12384/? W/VideoCapabilities: Unsupported mime video/mpeg2
01-01 19:48:30.078 12384-12384/? W/VideoCapabilities: Unsupported mime video/mpeg2
01-01 19:48:30.078 12384-12384/? W/VideoCapabilities: Unsupported mime video/x-ms-wmv
01-01 19:48:30.088 12384-12384/? W/VideoCapabilities: Unsupported mime video/divx
01-01 19:48:30.088 12384-12384/? W/VideoCapabilities: Unsupported mime video/divx311
01-01 19:48:30.088 12384-12384/? W/VideoCapabilities: Unsupported mime video/divx4
01-01 19:48:30.098 12384-12384/? W/VideoCapabilities: Unsupported mime video/mp4v-esdp
01-01 19:48:30.118 12384-12384/? I/VideoCapabilities: Unsupported profile 4 for video/mp4v-es
01-01 19:48:30.128 12384-12384/? I/SrsEncoder: vencoder OMX.qcom.video.encoder.avc types: video/avc
01-01 19:48:30.128 12384-12384/? W/VideoCapabilities: Unrecognized profile 2130706433 for video/avc
01-01 19:48:30.128 12384-12384/? I/SrsEncoder: vencoder OMX.qcom.video.encoder.avc supports color fomart 0x7fa30c04(2141391876)
01-01 19:48:30.128 12384-12384/? I/SrsEncoder: vencoder OMX.qcom.video.encoder.avc supports color fomart 0x7f000789(2130708361)
01-01 19:48:30.128 12384-12384/? I/SrsEncoder: vencoder OMX.qcom.video.encoder.avc supports color fomart 0x7f420888(2135033992)
01-01 19:48:30.128 12384-12384/? I/SrsEncoder: vencoder OMX.qcom.video.encoder.avc supports color fomart 0x15(21)
01-01 19:48:30.128 12384-12384/? I/SrsEncoder: vencoder OMX.qcom.video.encoder.avc support profile 1, level 2048
01-01 19:48:30.128 12384-12384/? I/SrsEncoder: vencoder OMX.qcom.video.encoder.avc support profile 2, level 2048
01-01 19:48:30.128 12384-12384/? I/SrsEncoder: vencoder OMX.qcom.video.encoder.avc support profile 8, level 2048
01-01 19:48:30.128 12384-12384/? I/SrsEncoder: vencoder OMX.qcom.video.encoder.avc support profile 2130706433, level 2048
01-01 19:48:30.128 12384-12384/? I/SrsEncoder: vencoder OMX.qcom.video.encoder.avc choose color format 0x15(21)
01-01 19:48:30.128 12384-12384/? D/camera_power: open camera PackageName = com.livehiddentesttwo.cam
01-01 19:48:30.128 12384-12384/? E/CheckPermission: camera-code= 3
01-01 19:48:30.298 12384-12384/? E/SupportedPSize: android.hardware.Camera$Size@27ef0c0
01-01 19:48:30.298 12384-12384/? E/Camera: setPreviewSize(), mPackageName = com.livehiddentesttwo.cam , width = 640 , height = 480
01-01 19:48:30.298 12384-12614/? I/SrsFlvMuxer: worker: connecting to RTMP server by url=rtmp://192.168.137.1/live/mehroz1
01-01 19:48:30.298 12384-12614/? D/RtmpConnection: connect() called. Host: 192.168.137.1, port: 1935, appName: live, publishPath: mehroz1
01-01 19:48:30.308 12384-12615/? I/OMXClient: Using client-side OMX mux.
01-01 19:48:30.318 12384-12614/? D/RtmpConnection: connect(): socket connection established, doing handhake...
01-01 19:48:30.318 12384-12614/? D/Handshake: writeC0
01-01 19:48:30.318 12384-12614/? D/Handshake: writeC1
01-01 19:48:30.318 12384-12614/? D/Handshake: writeC1(): Calculating digest offset
01-01 19:48:30.318 12384-12614/? D/Handshake: writeC1(): (real value of) digestOffset: 6
01-01 19:48:30.318 12384-12614/? D/Handshake: writeC1(): recalculated digestOffset: 782
01-01 19:48:30.318 12384-12614/? D/Handshake: writeC1(): digestOffsetBytes: 00000006
01-01 19:48:30.318 12384-12614/? D/Handshake: partBeforeDigest(): size: 782
01-01 19:48:30.318 12384-12614/? D/Handshake: writeC1(): Writing timestamp and Flash Player version
01-01 19:48:30.318 12384-12614/? D/Handshake: partAfterDigest(): size: 722
01-01 19:48:30.318 12384-12614/? D/Handshake: copying digest offset bytes in partBeforeDigest
01-01 19:48:30.318 12384-12614/? D/Handshake: writeC1(): Calculating digest
01-01 19:48:30.328 12384-12614/? D/Handshake: writeC1(): writing C1 packet
01-01 19:48:30.328 12384-12614/? D/Handshake: readS0
01-01 19:48:30.328 12384-12619/? I/OMXClient: Using client-side OMX mux.
01-01 19:48:30.328 12384-12614/? D/Handshake: readS1
01-01 19:48:30.328 12384-12614/? D/Handshake: readS1(): S1 total bytes read OK
01-01 19:48:30.328 12384-12614/? D/Handshake: writeC2
01-01 19:48:30.328 12384-12614/com.livehiddentesttwo.cam D/Handshake: readS2
01-01 19:48:30.328 12384-12614/com.livehiddentesttwo.cam D/Handshake: readS2(): S2 total bytes read OK
01-01 19:48:30.328 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: connect(): handshake done
01-01 19:48:30.328 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: rtmpConnect(): Building 'connect' invoke packet
01-01 19:48:30.338 12384-12619/com.livehiddentesttwo.cam E/ACodec: [OMX.qcom.video.encoder.avc] storeMetaDataInBuffers (output) failed w/ err -1010
01-01 19:48:30.338 12384-12619/com.livehiddentesttwo.cam W/ACodec: do not know color format 0x7fa30c04 = 2141391876
01-01 19:48:30.338 12384-12619/com.livehiddentesttwo.cam W/ACodec: do not know color format 0x7f000789 = 2130708361
01-01 19:48:30.338 12384-12622/com.livehiddentesttwo.cam D/RtmpConnection: starting main rx handler loop
01-01 19:48:30.338 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Command (command: connect, transaction ID: 1), size: 246
01-01 19:48:30.348 12384-12619/com.livehiddentesttwo.cam I/ACodec: [OMX.qcom.video.encoder.avc] setupVideoEncoder succeeded
01-01 19:48:30.348 12384-12619/com.livehiddentesttwo.cam I/ACodec: onStart [OMX.qcom.video.encoder.avc]
01-01 19:48:30.358 12384-12622/com.livehiddentesttwo.cam D/RtmpConnection: handleRxPacketLoop(): Setting acknowledgement window size: 5000000
01-01 19:48:30.358 12384-12615/com.livehiddentesttwo.cam I/ACodec: onStart [OMX.google.aac.encoder]
01-01 19:48:30.388 12384-12384/com.livehiddentesttwo.cam I/Privew Sizes: Supported Preview Size (1280, 960)
01-01 19:48:30.388 12384-12384/com.livehiddentesttwo.cam I/Privew Sizes: Supported Preview Size (1280, 720)
01-01 19:48:30.388 12384-12384/com.livehiddentesttwo.cam I/Privew Sizes: Supported Preview Size (960, 960)
01-01 19:48:30.388 12384-12384/com.livehiddentesttwo.cam I/Privew Sizes: Supported Preview Size (960, 720)
01-01 19:48:30.388 12384-12384/com.livehiddentesttwo.cam I/Privew Sizes: Supported Preview Size (960, 540)
01-01 19:48:30.388 12384-12384/com.livehiddentesttwo.cam I/Privew Sizes: Supported Preview Size (720, 480)
01-01 19:48:30.388 12384-12384/com.livehiddentesttwo.cam I/Privew Sizes: Supported Preview Size (640, 480)
01-01 19:48:30.388 12384-12384/com.livehiddentesttwo.cam I/Privew Sizes: Supported Preview Size (352, 288)
01-01 19:48:30.388 12384-12384/com.livehiddentesttwo.cam I/Privew Sizes: Supported Preview Size (320, 240)
01-01 19:48:30.388 12384-12384/com.livehiddentesttwo.cam I/Privew Sizes: Supported Preview Size (176, 144)
01-01 19:48:30.388 12384-12384/com.livehiddentesttwo.cam E/Camera: setPreviewSize(), mPackageName = com.livehiddentesttwo.cam , width = 640 , height = 480
01-01 19:48:30.388 12384-12384/com.livehiddentesttwo.cam D/Camera: app passed NULL surface
01-01 19:48:30.398 12384-12622/com.livehiddentesttwo.cam D/RtmpConnection: handleRxPacketLoop(): Send acknowledgement window size: 5000000
01-01 19:48:30.398 12384-12622/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Window Acknowledgment Size, size: 4
01-01 19:48:30.398 12384-12622/com.livehiddentesttwo.cam D/RtmpDecoder: readPacket(): Setting chunk size to: 60000
01-01 19:48:30.398 12384-12622/com.livehiddentesttwo.cam D/RtmpConnection: handleRxInvoke: Got result for invoked method: connect
01-01 19:48:30.398 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: createStream(): Sending releaseStream command...
01-01 19:48:30.398 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Command (command: releaseStream, transaction ID: 2), size: 36
01-01 19:48:30.398 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: createStream(): Sending FCPublish command...
01-01 19:48:30.398 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Command (command: FCPublish, transaction ID: 3), size: 32
01-01 19:48:30.398 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: createStream(): Sending createStream command...
01-01 19:48:30.398 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Command (command: createStream, transaction ID: 4), size: 25
01-01 19:48:30.408 12384-12384/com.livehiddentesttwo.cam I/MainActivity: mPublisher Camera is set
01-01 19:48:30.408 12384-12384/com.livehiddentesttwo.cam I/MainActivity: mPublisher Camera ID: 1
01-01 19:48:30.428 12384-12384/com.livehiddentesttwo.cam I/art: Rejecting re-init on previously-failed class java.lang.Class<androidx.core.view.ViewCompat$2>
01-01 19:48:30.428 12384-12384/com.livehiddentesttwo.cam I/art: Rejecting re-init on previously-failed class java.lang.Class<androidx.core.view.ViewCompat$2>
01-01 19:48:30.458 12384-12622/com.livehiddentesttwo.cam D/RtmpConnection: handleRxInvoke: Got result for invoked method: createStream
01-01 19:48:30.458 12384-12622/com.livehiddentesttwo.cam D/RtmpConnection: handleRxInvoke(): Stream ID to publish: 1
01-01 19:48:30.458 12384-12622/com.livehiddentesttwo.cam D/RtmpConnection: fmlePublish(): Sending publish command...
01-01 19:48:30.458 12384-12622/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Command (command: publish, transaction ID: 0), size: 37
01-01 19:48:30.468 12384-12622/com.livehiddentesttwo.cam D/RtmpConnection: handleRxInvoke(): onStatus NetStream.Publish.Start
01-01 19:48:30.468 12384-12622/com.livehiddentesttwo.cam D/RtmpConnection: onMetaData(): Sending empty onMetaData...
01-01 19:48:30.468 12384-12622/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: com.github.faucamp.simplertmp.packets.Data@39e769e, size: 238
01-01 19:48:30.478 12384-12384/com.livehiddentesttwo.cam I/Choreographer: Skipped 58 frames!  The application may be doing too much work on its main thread.
01-01 19:48:30.488 12384-12403/com.livehiddentesttwo.cam I/Adreno-EGL: <qeglDrvAPI_eglInitialize:379>: EGL 1.4 QUALCOMM build: AU_LINUX_ANDROID_LA.BR.1.1.3.C8.05.01.00.115.128_msm8916_64_refs/tags/AU_LINUX_ANDROID_LA.BR.1.1.3.C8.05.01.00.115.128__release_AU (I55c48cad9a)
    OpenGL ES Shader Compiler Version: E031.25.03.04
    Build Date: 03/21/17 Tue
    Local Branch: 
    Remote Branch: refs/tags/AU_LINUX_ANDROID_LA.BR.1.1.3.C8.05.01.00.115.128
    Local Patches: NONE
    Reconstruct Branch: NOTHING
01-01 19:48:30.488 12384-12403/com.livehiddentesttwo.cam I/OpenGLRenderer: Initialized EGL, version 1.4
01-01 19:48:30.498 12384-12403/com.livehiddentesttwo.cam D/OpenGLRenderer: Enabling debug mode 0
01-01 19:48:30.508 12384-12384/com.livehiddentesttwo.cam W/System.err: java.io.IOException: setPreviewTexture failed
01-01 19:48:30.528 12384-12384/com.livehiddentesttwo.cam W/System.err:     at android.hardware.Camera.setPreviewSurface(Native Method)
01-01 19:48:30.528 12384-12384/com.livehiddentesttwo.cam W/System.err:     at android.hardware.Camera.setPreviewDisplay(Camera.java:676)
01-01 19:48:30.528 12384-12384/com.livehiddentesttwo.cam W/System.err:     at com.livehiddentesttwo.library.LiveBroadcaster.CameraPreview.surfaceCreated(CameraPreview.java:61)
01-01 19:48:30.528 12384-12384/com.livehiddentesttwo.cam W/System.err:     at android.view.SurfaceView.updateWindow(SurfaceView.java:580)
01-01 19:48:30.528 12384-12384/com.livehiddentesttwo.cam W/System.err:     at android.view.SurfaceView$3.onPreDraw(SurfaceView.java:176)
01-01 19:48:30.528 12384-12384/com.livehiddentesttwo.cam W/System.err:     at android.view.ViewTreeObserver.dispatchOnPreDraw(ViewTreeObserver.java:944)
01-01 19:48:30.528 12384-12384/com.livehiddentesttwo.cam W/System.err:     at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2144)
01-01 19:48:30.528 12384-12384/com.livehiddentesttwo.cam W/System.err:     at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1189)
01-01 19:48:30.528 12384-12384/com.livehiddentesttwo.cam W/System.err:     at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6243)
01-01 19:48:30.528 12384-12384/com.livehiddentesttwo.cam W/System.err:     at android.view.Choreographer$CallbackRecord.run(Choreographer.java:773)
01-01 19:48:30.528 12384-12384/com.livehiddentesttwo.cam W/System.err:     at android.view.Choreographer.doCallbacks(Choreographer.java:586)
01-01 19:48:30.528 12384-12384/com.livehiddentesttwo.cam W/System.err:     at android.view.Choreographer.doFrame(Choreographer.java:556)
01-01 19:48:30.528 12384-12384/com.livehiddentesttwo.cam W/System.err:     at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:759)
01-01 19:48:30.528 12384-12384/com.livehiddentesttwo.cam W/System.err:     at android.os.Handler.handleCallback(Handler.java:739)
01-01 19:48:30.528 12384-12384/com.livehiddentesttwo.cam W/System.err:     at android.os.Handler.dispatchMessage(Handler.java:95)
01-01 19:48:30.528 12384-12384/com.livehiddentesttwo.cam W/System.err:     at android.os.Looper.loop(Looper.java:160)
01-01 19:48:30.528 12384-12384/com.livehiddentesttwo.cam W/System.err:     at android.app.ActivityThread.main(ActivityThread.java:5541)
01-01 19:48:30.528 12384-12384/com.livehiddentesttwo.cam W/System.err:     at java.lang.reflect.Method.invoke(Native Method)
01-01 19:48:30.528 12384-12384/com.livehiddentesttwo.cam W/System.err:     at java.lang.reflect.Method.invoke(Method.java:372)
01-01 19:48:30.528 12384-12384/com.livehiddentesttwo.cam W/System.err:     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:964)
01-01 19:48:30.528 12384-12384/com.livehiddentesttwo.cam W/System.err:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:759)
01-01 19:48:30.528 12384-12384/com.livehiddentesttwo.cam W/System.err: java.io.IOException: setPreviewTexture failed
01-01 19:48:30.528 12384-12384/com.livehiddentesttwo.cam W/System.err:     at android.hardware.Camera.setPreviewSurface(Native Method)
01-01 19:48:30.528 12384-12384/com.livehiddentesttwo.cam W/System.err:     at android.hardware.Camera.setPreviewDisplay(Camera.java:676)
01-01 19:48:30.528 12384-12384/com.livehiddentesttwo.cam W/System.err:     at com.livehiddentesttwo.library.LiveBroadcaster.CameraPreview.surfaceChanged(CameraPreview.java:91)
01-01 19:48:30.528 12384-12384/com.livehiddentesttwo.cam W/System.err:     at android.view.SurfaceView.updateWindow(SurfaceView.java:591)
01-01 19:48:30.528 12384-12384/com.livehiddentesttwo.cam W/System.err:     at android.view.SurfaceView$3.onPreDraw(SurfaceView.java:176)
01-01 19:48:30.528 12384-12384/com.livehiddentesttwo.cam W/System.err:     at android.view.ViewTreeObserver.dispatchOnPreDraw(ViewTreeObserver.java:944)
01-01 19:48:30.528 12384-12384/com.livehiddentesttwo.cam W/System.err:     at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2144)
01-01 19:48:30.528 12384-12384/com.livehiddentesttwo.cam W/System.err:     at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1189)
01-01 19:48:30.528 12384-12384/com.livehiddentesttwo.cam W/System.err:     at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6243)
01-01 19:48:30.528 12384-12384/com.livehiddentesttwo.cam W/System.err:     at android.view.Choreographer$CallbackRecord.run(Choreographer.java:773)
01-01 19:48:30.528 12384-12384/com.livehiddentesttwo.cam W/System.err:     at android.view.Choreographer.doCallbacks(Choreographer.java:586)
01-01 19:48:30.528 12384-12384/com.livehiddentesttwo.cam W/System.err:     at android.view.Choreographer.doFrame(Choreographer.java:556)
01-01 19:48:30.528 12384-12384/com.livehiddentesttwo.cam W/System.err:     at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:759)
01-01 19:48:30.528 12384-12384/com.livehiddentesttwo.cam W/System.err:     at android.os.Handler.handleCallback(Handler.java:739)
01-01 19:48:30.528 12384-12384/com.livehiddentesttwo.cam W/System.err:     at android.os.Handler.dispatchMessage(Handler.java:95)
01-01 19:48:30.528 12384-12384/com.livehiddentesttwo.cam W/System.err:     at android.os.Looper.loop(Looper.java:160)
01-01 19:48:30.528 12384-12384/com.livehiddentesttwo.cam W/System.err:     at android.app.ActivityThread.main(ActivityThread.java:5541)
01-01 19:48:30.528 12384-12384/com.livehiddentesttwo.cam W/System.err:     at java.lang.reflect.Method.invoke(Native Method)
01-01 19:48:30.528 12384-12384/com.livehiddentesttwo.cam W/System.err:     at java.lang.reflect.Method.invoke(Method.java:372)
01-01 19:48:30.528 12384-12384/com.livehiddentesttwo.cam W/System.err:     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:964)
01-01 19:48:30.528 12384-12384/com.livehiddentesttwo.cam W/System.err:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:759)
01-01 19:48:30.528 12384-12384/com.livehiddentesttwo.cam E/HiddenCam: Error in Cannot start preview
01-01 19:48:30.608 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 11
01-01 19:48:30.608 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 192
01-01 19:48:30.628 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 192
01-01 19:48:30.638 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 269
01-01 19:48:30.638 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 254
01-01 19:48:30.678 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 229
01-01 19:48:30.688 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 261
01-01 19:48:30.738 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 227
01-01 19:48:30.748 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 234
01-01 19:48:30.778 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 207
01-01 19:48:30.798 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 208
01-01 19:48:30.818 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 209
01-01 19:48:30.828 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 203
01-01 19:48:30.878 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 238
01-01 19:48:30.888 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 201
01-01 19:48:30.918 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 209
01-01 19:48:30.928 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 201
01-01 19:48:30.958 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 198
01-01 19:48:30.968 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 201
01-01 19:48:31.018 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 201
01-01 19:48:31.038 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 195
01-01 19:48:31.048 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 235
01-01 19:48:31.078 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 197
01-01 19:48:31.088 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 191
01-01 19:48:31.118 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 189
01-01 19:48:31.128 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 189
01-01 19:48:31.178 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 201
01-01 19:48:31.188 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 204
01-01 19:48:31.218 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 191
01-01 19:48:31.228 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 190
01-01 19:48:31.258 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 223
01-01 19:48:31.268 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 220
01-01 19:48:31.318 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 203
01-01 19:48:31.338 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 192
01-01 19:48:31.368 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 223
01-01 19:48:31.378 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 189
01-01 19:48:31.388 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 216
01-01 19:48:31.428 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 187
01-01 19:48:31.428 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 209
01-01 19:48:31.478 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 222
01-01 19:48:31.498 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 188
01-01 19:48:31.518 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 195
01-01 19:48:31.538 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 184
01-01 19:48:31.568 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 184
01-01 19:48:31.588 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 174
01-01 19:48:31.618 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 180
01-01 19:48:31.638 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 186
01-01 19:48:31.668 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 189
01-01 19:48:31.688 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 201
01-01 19:48:31.698 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 193
01-01 19:48:31.718 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 194
01-01 19:48:31.738 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 219
01-01 19:48:31.778 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 194
01-01 19:48:31.798 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 187
01-01 19:48:31.818 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 182
01-01 19:48:31.838 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 196
01-01 19:48:31.858 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 193
01-01 19:48:31.878 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 213
01-01 19:48:31.918 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 177
01-01 19:48:31.938 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 188
01-01 19:48:31.958 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 183
01-01 19:48:31.978 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 180
01-01 19:48:31.998 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 184
01-01 19:48:32.028 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 179
01-01 19:48:32.048 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 185
01-01 19:48:32.098 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 182
01-01 19:48:32.108 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 192
01-01 19:48:32.128 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 180
01-01 19:48:32.148 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 178
01-01 19:48:32.168 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 200
01-01 19:48:32.188 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 190
01-01 19:48:32.228 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 222
01-01 19:48:32.258 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 194
01-01 19:48:32.268 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 183
01-01 19:48:32.288 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 184
01-01 19:48:32.308 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 205
01-01 19:48:32.328 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 191
01-01 19:48:32.348 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 188
01-01 19:48:32.388 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 182
01-01 19:48:32.408 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 206
01-01 19:48:32.428 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 188
01-01 19:48:32.448 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 207
01-01 19:48:32.468 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 225
01-01 19:48:32.488 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 179
01-01 19:48:32.528 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 191
01-01 19:48:32.548 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 183
01-01 19:48:32.568 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 185
01-01 19:48:32.588 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 183
01-01 19:48:32.608 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 185
01-01 19:48:32.628 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 183
01-01 19:48:32.648 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 196
01-01 19:48:32.688 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 198
01-01 19:48:32.708 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 183
01-01 19:48:32.728 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 211
01-01 19:48:32.748 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 222
01-01 19:48:32.768 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 187
01-01 19:48:32.788 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 183
01-01 19:48:32.838 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 215
01-01 19:48:32.858 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 185
01-01 19:48:32.868 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 192
01-01 19:48:32.888 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 191
01-01 19:48:32.908 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 188
01-01 19:48:32.928 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 206
01-01 19:48:32.948 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 181
01-01 19:48:32.988 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 182
01-01 19:48:33.008 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 191
01-01 19:48:33.028 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 191
01-01 19:48:33.058 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 212
01-01 19:48:33.068 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 185
01-01 19:48:33.098 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 188
01-01 19:48:33.108 12384-12614/com.livehiddentesttwo.cam D/RtmpConnection: wrote packet: RTMP Audio, size: 193
01-01 19:48:33.168 12384-12640/com.livehiddentesttwo.cam W/AudioSystem: AudioFlinger server died!
01-01 19:48:33.168 12384-12400/com.livehiddentesttwo.cam W/CameraBase: Camera service died!
01-01 19:48:33.168 12384-12640/com.livehiddentesttwo.cam W/AudioSystem: AudioPolicyService server died!
01-01 19:48:33.168 12384-12400/com.livehiddentesttwo.cam W/CameraBase: mediaserver's remote binder Camera object died
01-01 19:48:33.168 12384-12619/com.livehiddentesttwo.cam E/ACodec: OMX/mediaserver died, signalling error!
01-01 19:48:33.168 12384-12400/com.livehiddentesttwo.cam W/CameraBase: mediaserver's remote binder Camera object died
01-01 19:48:33.168 12384-12619/com.livehiddentesttwo.cam E/ACodec: signalError(omxError 0x8000100d, internalError -32)
01-01 19:48:33.168 12384-12615/com.livehiddentesttwo.cam E/ACodec: OMX/mediaserver died, signalling error!
01-01 19:48:33.168 12384-12627/com.livehiddentesttwo.cam W/AudioRecord: dead IAudioRecord, creating a new one from obtainBuffer()
01-01 19:48:33.168 12384-12615/com.livehiddentesttwo.cam E/ACodec: signalError(omxError 0x8000100d, internalError -32)
01-01 19:48:33.168 12384-12615/com.livehiddentesttwo.cam E/MediaCodec: Codec reported err 0xffffffe0, actionCode 0, while in state 6
01-01 19:48:33.168 12384-12384/com.livehiddentesttwo.cam E/Camera: Error 100
01-01 19:48:33.168 12384-12618/com.livehiddentesttwo.cam E/MediaCodec: Codec reported err 0xffffffe0, actionCode 0, while in state 6
01-01 19:48:33.168 12384-12384/com.livehiddentesttwo.cam E/Camera: Error 100
01-01 19:48:33.178 12384-12627/com.livehiddentesttwo.cam I/ServiceManager: Waiting for service media.audio_flinger...
01-01 19:48:36.798 12384-12627/com.livehiddentesttwo.cam E/Buffer: mPcmBuffer: [B@500d95
01-01 19:48:36.798 12384-12627/com.livehiddentesttwo.cam E/BufferSize: BufferSize: 4096
01-01 19:48:36.798 12384-12627/com.livehiddentesttwo.cam W/System.err: java.lang.IllegalStateException
01-01 19:48:36.798 12384-12627/com.livehiddentesttwo.cam W/System.err:     at android.media.MediaCodec.native_dequeueInputBuffer(Native Method)
01-01 19:48:36.798 12384-12627/com.livehiddentesttwo.cam W/System.err:     at android.media.MediaCodec.dequeueInputBuffer(MediaCodec.java:986)
01-01 19:48:36.798 12384-12627/com.livehiddentesttwo.cam W/System.err:     at com.livehiddentesttwo.library.LiveBroadcaster.SrsEncoder.onGetPcmFrame(SrsEncoder.java:362)
01-01 19:48:36.798 12384-12627/com.livehiddentesttwo.cam W/System.err:     at com.livehiddentesttwo.library.LiveBroadcaster.SrsPublisher$2.run(SrsPublisher.java:111)
01-01 19:48:36.798 12384-12627/com.livehiddentesttwo.cam W/System.err:     at java.lang.Thread.run(Thread.java:818)
01-01 19:48:36.818 12384-12627/com.livehiddentesttwo.cam E/Buffer: mPcmBuffer: [B@500d95
01-01 19:48:36.818 12384-12627/com.livehiddentesttwo.cam E/BufferSize: BufferSize: 4096

from livehiddencamera.

mehroz1 avatar mehroz1 commented on August 14, 2024

Its been 4 days I am still waiting for your reply. Is my error log insufficient?

from livehiddencamera.

mirsamantajbakhsh avatar mirsamantajbakhsh commented on August 14, 2024

Hi, sorry for delay in response. The main problem is in this line:
"D/Camera: app passed NULL surface"

which the surface is set to null. Have you permit your application to overwrite on other layouts?
I mean this part:

https://raw.githubusercontent.com/mirsamantajbakhsh/LiveHiddenCamera/master/ScreenShots/Permissions2.png

from livehiddencamera.

mehroz1 avatar mehroz1 commented on August 14, 2024

Hello,

Thank you so much for your response yes I have granted permission of drawing over other apps. Here is my manifest file:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.livehiddentesttwo.cam">
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.CAMERA" />
    <uses-permission android:name="android.permission.RECORD_VIDEO" />
    <uses-permission android:name="android.permission.RECORD_AUDIO" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.FLASHLIGHT" />
    <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
    <uses-feature android:name="android.hardware.camera" />
    <uses-feature android:name="android.hardware.camera.autofocus" />

    <application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:roundIcon="@mipmap/ic_launcher_round"
        android:supportsRtl="true"
        android:theme="@style/AppTheme">
        <activity
            android:name=".MainActivity"
            android:label="@string/title_activity_main"
            android:theme="@style/AppTheme.NoActionBar">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>

</manifest> 

Further more I have confirmed whenever the application launches the screen becomes non responsive i.e. hidden overlay is drawn over other apps.
I think the problem is some where in the flow of when on surface change we try to set the preview of the camera.

Further more in this library camera is opening 3 times. which causes conflict resulting in Error 100 on setPreviewResolution. The camera opens once when we call the function initHiddenCam(rtmpURL) on activity creation event second in setPreviewResolution while third time on mPublisher.startCamera();

Please correct me if I am wrong, shouldn't the camera be opened and initialized once in initHiddenCam(rtmpURL) ?

I apologize for inconvenience but I am new to android development and I doing this project as a hobby but its integration with yasea is way over my head that's why I am trying to understand your work.

from livehiddencamera.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.