android / camera-samples

Multiple samples showing the best practices in camera APIs on Android.
Apache License 2.0
4.95k stars 2.32k forks source link

[CameraXVideo] Glitchy video result on Samsung Galaxy S6 (Android 7.0) #486

Open buntupana opened 2 years ago

buntupana commented 2 years ago

After recording a video with CameraXVideo sample the video result is glitchy

I tried all different Qualities and Back/Front camera with the same result.

For some reason the file has the extension 3gp instead of mp4 and the name it's different.

File Names and Path:

Video Result: sample_error

Logs:

2022-05-24 20:16:38.892 16479-16479/com.android.example.camerax.video D/ViewRootImpl@194a1a4[MainActivity]: ViewPostImeInputStage processPointer 0
2022-05-24 20:16:38.938 16479-16479/com.android.example.camerax.video D/ViewRootImpl@194a1a4[MainActivity]: ViewPostImeInputStage processPointer 1
2022-05-24 20:16:38.960 16479-16479/com.android.example.camerax.video D/TextView: setTypeface with style : 0
2022-05-24 20:16:38.974 16479-16479/com.android.example.camerax.video D/TextView: setTypeface with style : 0
2022-05-24 20:16:38.991 16479-16484/com.android.example.camerax.video I/art: Do full code cache collection, code=106KB, data=118KB
2022-05-24 20:16:38.992 16479-16484/com.android.example.camerax.video I/art: After code cache collection, code=98KB, data=86KB
2022-05-24 20:16:38.998 16479-17352/com.android.example.camerax.video W/VideoCapabilities: Unrecognized profile 2130706433 for video/avc
2022-05-24 20:16:38.998 16479-17352/com.android.example.camerax.video W/VideoCapabilities: Unrecognized profile 2130706433 for video/avc
2022-05-24 20:16:38.998 16479-17352/com.android.example.camerax.video W/VideoCapabilities: Unrecognized profile 2130706433 for video/avc
2022-05-24 20:16:38.998 16479-17352/com.android.example.camerax.video W/VideoCapabilities: Unrecognized profile 2130706433 for video/avc
2022-05-24 20:16:38.998 16479-17352/com.android.example.camerax.video W/VideoCapabilities: Unrecognized profile 2130706433 for video/avc
2022-05-24 20:16:38.998 16479-17352/com.android.example.camerax.video W/VideoCapabilities: Unrecognized profile 2130706433 for video/avc
2022-05-24 20:16:38.998 16479-17352/com.android.example.camerax.video W/VideoCapabilities: Unrecognized profile 2130706433 for video/avc
2022-05-24 20:16:38.998 16479-17352/com.android.example.camerax.video W/VideoCapabilities: Unrecognized profile 2130706433 for video/avc
2022-05-24 20:16:38.998 16479-17352/com.android.example.camerax.video W/VideoCapabilities: Unrecognized profile 2130706433 for video/avc
2022-05-24 20:16:38.998 16479-17352/com.android.example.camerax.video W/VideoCapabilities: Unrecognized profile 2130706433 for video/avc
2022-05-24 20:16:38.998 16479-17352/com.android.example.camerax.video W/VideoCapabilities: Unrecognized profile 2130706433 for video/avc
2022-05-24 20:16:38.998 16479-17352/com.android.example.camerax.video W/VideoCapabilities: Unrecognized profile 2130706433 for video/avc
2022-05-24 20:16:38.998 16479-17352/com.android.example.camerax.video W/VideoCapabilities: Unrecognized profile 2130706433 for video/avc
2022-05-24 20:16:38.998 16479-17352/com.android.example.camerax.video W/VideoCapabilities: Unrecognized profile 2130706433 for video/avc
2022-05-24 20:16:38.998 16479-17352/com.android.example.camerax.video W/VideoCapabilities: Unrecognized profile 2130706433 for video/avc
2022-05-24 20:16:38.998 16479-17352/com.android.example.camerax.video W/VideoCapabilities: Unrecognized profile 2130706433 for video/avc
2022-05-24 20:16:38.999 16479-17352/com.android.example.camerax.video W/VideoCapabilities: Unrecognized profile 2130706434 for video/avc
2022-05-24 20:16:39.001 16479-17352/com.android.example.camerax.video I/ACodec:  [] Now uninitialized
2022-05-24 20:16:39.003 16479-17361/com.android.example.camerax.video I/ACodec: [] onAllocateComponent
2022-05-24 20:16:39.010 16479-17361/com.android.example.camerax.video I/OMXClient: MuxOMX ctor
2022-05-24 20:16:39.012 16479-16479/com.android.example.camerax.video D/TextView: setTypeface with style : 0
2022-05-24 20:16:39.017 16479-16479/com.android.example.camerax.video D/TextView: setTypeface with style : 0
2022-05-24 20:16:39.020 16479-16479/com.android.example.camerax.video D/TextView: setTypeface with style : 0
2022-05-24 20:16:39.021 16479-16491/com.android.example.camerax.video I/CameraManagerGlobal: postSingleUpdate : Camera id 0 has status changed to 0xfffffffe
2022-05-24 20:16:39.022 16479-16491/com.android.example.camerax.video I/CameraManagerGlobal: postSingleUpdate : Camera id 0 has status changed to 0xfffffffe
2022-05-24 20:16:39.035 16479-17361/com.android.example.camerax.video I/ACodec: [OMX.Exynos.AVC.Encoder] Now Loaded
2022-05-24 20:16:39.037 16479-17352/com.android.example.camerax.video I/VideoEncoder: Selected encoder: OMX.Exynos.AVC.Encoder
2022-05-24 20:16:39.039 16479-17361/com.android.example.camerax.video I/ACodec:  [OMX.Exynos.AVC.Encoder] Now uninitialized
2022-05-24 20:16:39.039 16479-17361/com.android.example.camerax.video I/ACodec:  [] Now kWhatShutdownCompleted event : 8438
2022-05-24 20:16:39.040 16479-17360/com.android.example.camerax.video I/MediaCodec: Codec shutdown complete
2022-05-24 20:16:39.041 16479-17352/com.android.example.camerax.video I/ACodec:  [] Now uninitialized
2022-05-24 20:16:39.043 16479-16479/com.android.example.camerax.video D/ViewRootImpl@194a1a4[MainActivity]: Relayout returned: oldFrame=[0,0][1440,2560] newFrame=[0,0][1440,2560] result=0x1 surface={isValid=true 515396445696} surfaceGenerationChanged=false
2022-05-24 20:16:39.045 16479-17361/com.android.example.camerax.video I/ACodec: [] onAllocateComponent
2022-05-24 20:16:39.047 16479-17361/com.android.example.camerax.video I/OMXClient: MuxOMX ctor
2022-05-24 20:16:39.049 16479-16495/com.android.example.camerax.video W/OpenGLRenderer: Points are too far apart 4.000001
2022-05-24 20:16:39.069 16479-17361/com.android.example.camerax.video I/ACodec: [OMX.Exynos.AVC.Encoder] Now Loaded
2022-05-24 20:16:39.071 16479-17360/com.android.example.camerax.video I/MediaCodec: MediaCodec will operate in async mode
2022-05-24 20:16:39.074 16479-17361/com.android.example.camerax.video W/ACodec: do not know color format 0x7f000011 = 2130706449
2022-05-24 20:16:39.075 16479-17361/com.android.example.camerax.video W/ACodec: do not know color format 0x10 = 16
2022-05-24 20:16:39.077 16479-17361/com.android.example.camerax.video W/ACodec: do not know color format 0x7f00a000 = 2130747392
2022-05-24 20:16:39.079 16479-17361/com.android.example.camerax.video W/ACodec: do not know color format 0x7f000789 = 2130708361
2022-05-24 20:16:39.083 16479-17361/com.android.example.camerax.video I/ACodec: setupAVCEncoderParameters with [profile: Baseline] [level: Level31]
2022-05-24 20:16:39.085 16479-17361/com.android.example.camerax.video I/ACodec: Success set VideoMinQP(5/5/5) VideoMaxQP(50/50/50)
2022-05-24 20:16:39.086 16479-17361/com.android.example.camerax.video I/ACodec: [OMX.Exynos.AVC.Encoder] cannot encode color aspects. Ignoring.
2022-05-24 20:16:39.087 16479-17361/com.android.example.camerax.video I/ACodec: [OMX.Exynos.AVC.Encoder] cannot encode HDR static metadata. Ignoring.
2022-05-24 20:16:39.087 16479-17361/com.android.example.camerax.video I/ACodec: setupVideoEncoder succeeded
2022-05-24 20:16:39.089 16479-17361/com.android.example.camerax.video W/ACodec: do not know color format 0x7f000789 = 2130708361
2022-05-24 20:16:39.090 16479-16484/com.android.example.camerax.video I/art: Do partial code cache collection, code=106KB, data=104KB
2022-05-24 20:16:39.090 16479-16484/com.android.example.camerax.video I/art: After code cache collection, code=103KB, data=102KB
2022-05-24 20:16:39.090 16479-16484/com.android.example.camerax.video I/art: Increasing code cache capacity to 512KB
2022-05-24 20:16:39.093 16479-17352/com.android.example.camerax.video I/OMXClient: MuxOMX ctor
2022-05-24 20:16:40.038 16479-17361/com.android.example.camerax.video W/AMessage: failed to deliver message as target handler 6 is gone.
2022-05-24 20:16:46.872 16479-16479/com.android.example.camerax.video D/ViewRootImpl@194a1a4[MainActivity]: ViewPostImeInputStage processPointer 0
2022-05-24 20:16:46.951 16479-16479/com.android.example.camerax.video D/ViewRootImpl@194a1a4[MainActivity]: ViewPostImeInputStage processPointer 1
2022-05-24 20:16:46.968 16479-16479/com.android.example.camerax.video I/CaptureFragment: Recording started
2022-05-24 20:16:46.970 16479-17361/com.android.example.camerax.video I/ACodec: [OMX.Exynos.AVC.Encoder] Now Loaded->Idle
2022-05-24 20:16:46.985 16479-16479/com.android.example.camerax.video I/CaptureFragment: recording event: Started: recorded 0KB, in 0second
2022-05-24 20:16:47.011 16479-16479/com.android.example.camerax.video D/ViewRootImpl@194a1a4[MainActivity]: Relayout returned: oldFrame=[0,0][1440,2560] newFrame=[0,0][1440,2560] result=0x1 surface={isValid=true 515396445696} surfaceGenerationChanged=false
2022-05-24 20:16:47.017 16479-17361/com.android.example.camerax.video I/ACodec: [OMX.Exynos.AVC.Encoder] Now Idle->Executing
2022-05-24 20:16:47.024 16479-17361/com.android.example.camerax.video I/ACodec: [OMX.Exynos.AVC.Encoder] Now Executing
2022-05-24 20:16:47.155 16479-17361/com.android.example.camerax.video D/ACodec: dataspace changed to 0x10c10000 (R:2(Limited), P:1(BT709_5), M:1(BT709_5), T:3(SMPTE170M)) (R:2(Limited), S:1(BT709), T:3(SMPTE_170M))
2022-05-24 20:16:47.170 16479-17360/com.android.example.camerax.video I/MediaCodec: onMessageReceived(kWhatOutputFormatChanged), prependSPSPPS 0
2022-05-24 20:16:47.306 16479-17664/com.android.example.camerax.video I/MPEG4Writer: setStartTimestampUs: 4070995007
2022-05-24 20:16:47.307 16479-17664/com.android.example.camerax.video I/MPEG4Writer: Earliest track starting time: 4070995007
2022-05-24 20:16:47.327 16479-16479/com.android.example.camerax.video I/CaptureFragment: recording event: Started: recorded 180KB, in 0second
2022-05-24 20:16:47.328 16479-16479/com.android.example.camerax.video I/CaptureFragment: recording event: Started: recorded 291KB, in 0second
2022-05-24 20:16:47.328 16479-16479/com.android.example.camerax.video I/CaptureFragment: recording event: Started: recorded 358KB, in 0second
2022-05-24 20:16:47.329 16479-16479/com.android.example.camerax.video I/CaptureFragment: recording event: Started: recorded 423KB, in 0second
2022-05-24 20:16:47.357 16479-16479/com.android.example.camerax.video I/CaptureFragment: recording event: Started: recorded 489KB, in 0second
2022-05-24 20:16:47.357 16479-16479/com.android.example.camerax.video I/CaptureFragment: recording event: Started: recorded 554KB, in 0second
2022-05-24 20:16:47.383 16479-16479/com.android.example.camerax.video I/CaptureFragment: recording event: Started: recorded 619KB, in 0second
2022-05-24 20:16:47.412 16479-16479/com.android.example.camerax.video I/CaptureFragment: recording event: Started: recorded 685KB, in 0second
2022-05-24 20:16:47.434 16479-16479/com.android.example.camerax.video I/CaptureFragment: recording event: Started: recorded 750KB, in 0second
2022-05-24 20:16:47.466 16479-16479/com.android.example.camerax.video I/CaptureFragment: recording event: Started: recorded 815KB, in 0second
2022-05-24 20:16:47.502 16479-16479/com.android.example.camerax.video I/CaptureFragment: recording event: Started: recorded 881KB, in 0second
2022-05-24 20:16:47.554 16479-16479/com.android.example.camerax.video I/CaptureFragment: recording event: Started: recorded 946KB, in 0second
2022-05-24 20:16:47.592 16479-16479/com.android.example.camerax.video I/CaptureFragment: recording event: Started: recorded 1012KB, in 0second
2022-05-24 20:16:47.628 16479-16479/com.android.example.camerax.video I/CaptureFragment: recording event: Started: recorded 1077KB, in 0second
2022-05-24 20:16:47.650 16479-16479/com.android.example.camerax.video I/CaptureFragment: recording event: Started: recorded 1143KB, in 0second
2022-05-24 20:16:47.667 16479-16479/com.android.example.camerax.video I/CaptureFragment: recording event: Started: recorded 1208KB, in 0second
2022-05-24 20:16:47.698 16479-16479/com.android.example.camerax.video I/CaptureFragment: recording event: Started: recorded 1274KB, in 0second
2022-05-24 20:16:47.737 16479-16479/com.android.example.camerax.video I/CaptureFragment: recording event: Started: recorded 1339KB, in 0second
2022-05-24 20:16:47.766 16479-16479/com.android.example.camerax.video I/CaptureFragment: recording event: Started: recorded 1405KB, in 0second
2022-05-24 20:16:47.820 16479-16479/com.android.example.camerax.video I/CaptureFragment: recording event: Started: recorded 1470KB, in 0second
2022-05-24 20:16:47.848 16479-16479/com.android.example.camerax.video I/CaptureFragment: recording event: Started: recorded 1535KB, in 0second
2022-05-24 20:16:47.882 16479-16479/com.android.example.camerax.video I/CaptureFragment: recording event: Started: recorded 1601KB, in 0second
2022-05-24 20:16:47.910 16479-16479/com.android.example.camerax.video I/CaptureFragment: recording event: Started: recorded 1666KB, in 0second
2022-05-24 20:16:47.946 16479-16479/com.android.example.camerax.video I/CaptureFragment: recording event: Started: recorded 1732KB, in 0second
2022-05-24 20:16:47.972 16479-16479/com.android.example.camerax.video I/CaptureFragment: recording event: Started: recorded 1797KB, in 0second
2022-05-24 20:16:48.001 16479-16479/com.android.example.camerax.video I/CaptureFragment: recording event: Started: recorded 1863KB, in 0second
2022-05-24 20:16:48.034 16479-16479/com.android.example.camerax.video I/CaptureFragment: recording event: Started: recorded 1928KB, in 0second
2022-05-24 20:16:48.069 16479-16479/com.android.example.camerax.video I/CaptureFragment: recording event: Started: recorded 1994KB, in 0second
2022-05-24 20:16:48.103 16479-16479/com.android.example.camerax.video I/CaptureFragment: recording event: Started: recorded 2059KB, in 0second
2022-05-24 20:16:48.136 16479-16479/com.android.example.camerax.video I/CaptureFragment: recording event: Started: recorded 2125KB, in 0second
2022-05-24 20:16:48.171 16479-16479/com.android.example.camerax.video I/CaptureFragment: recording event: Started: recorded 2260KB, in 0second
2022-05-24 20:16:48.204 16479-16479/com.android.example.camerax.video I/CaptureFragment: recording event: Started: recorded 2316KB, in 1second
2022-05-24 20:16:48.247 16479-16479/com.android.example.camerax.video I/CaptureFragment: recording event: Started: recorded 2376KB, in 1second
2022-05-24 20:16:48.284 16479-16479/com.android.example.camerax.video I/CaptureFragment: recording event: Started: recorded 2442KB, in 1second
2022-05-24 20:16:48.309 16479-16479/com.android.example.camerax.video I/CaptureFragment: recording event: Started: recorded 2511KB, in 1second
2022-05-24 20:16:48.335 16479-16479/com.android.example.camerax.video I/CaptureFragment: recording event: Started: recorded 2581KB, in 1second
2022-05-24 20:16:48.372 16479-16479/com.android.example.camerax.video I/CaptureFragment: recording event: Started: recorded 2650KB, in 1second
2022-05-24 20:16:48.411 16479-16479/com.android.example.camerax.video I/CaptureFragment: recording event: Started: recorded 2720KB, in 1second
2022-05-24 20:16:48.439 16479-16479/com.android.example.camerax.video I/CaptureFragment: recording event: Started: recorded 2789KB, in 1second
2022-05-24 20:16:48.475 16479-16479/com.android.example.camerax.video I/CaptureFragment: recording event: Started: recorded 2859KB, in 1second
2022-05-24 20:16:48.504 16479-16479/com.android.example.camerax.video I/CaptureFragment: recording event: Started: recorded 2928KB, in 1second
2022-05-24 20:16:48.540 16479-16479/com.android.example.camerax.video I/CaptureFragment: recording event: Started: recorded 2997KB, in 1second
2022-05-24 20:16:48.573 16479-16479/com.android.example.camerax.video I/CaptureFragment: recording event: Started: recorded 3067KB, in 1second
2022-05-24 20:16:48.606 16479-16479/com.android.example.camerax.video I/CaptureFragment: recording event: Started: recorded 3137KB, in 1second
2022-05-24 20:16:48.628 16479-16479/com.android.example.camerax.video I/CaptureFragment: recording event: Started: recorded 3206KB, in 1second
2022-05-24 20:16:48.671 16479-16479/com.android.example.camerax.video I/CaptureFragment: recording event: Started: recorded 3277KB, in 1second
2022-05-24 20:16:48.711 16479-16479/com.android.example.camerax.video I/CaptureFragment: recording event: Started: recorded 3345KB, in 1second
2022-05-24 20:16:48.744 16479-16479/com.android.example.camerax.video I/CaptureFragment: recording event: Started: recorded 3415KB, in 1second
2022-05-24 20:16:48.767 16479-16479/com.android.example.camerax.video D/ViewRootImpl@194a1a4[MainActivity]: ViewPostImeInputStage processPointer 0
2022-05-24 20:16:48.772 16479-16479/com.android.example.camerax.video I/CaptureFragment: recording event: Started: recorded 3485KB, in 1second
2022-05-24 20:16:48.804 16479-16479/com.android.example.camerax.video I/CaptureFragment: recording event: Started: recorded 3554KB, in 1second
2022-05-24 20:16:48.829 16479-16479/com.android.example.camerax.video I/CaptureFragment: recording event: Started: recorded 3623KB, in 1second
2022-05-24 20:16:48.839 16479-16479/com.android.example.camerax.video D/ViewRootImpl@194a1a4[MainActivity]: ViewPostImeInputStage processPointer 1
2022-05-24 20:16:48.855 16479-17360/com.android.example.camerax.video I/ACodec: [OMX.Exynos.AVC.Encoder] signalFlush
2022-05-24 20:16:48.855 16479-17361/com.android.example.camerax.video I/ACodec: [OMX.Exynos.AVC.Encoder] ExecutingState flushing now (codec owns 0/5 input, 3/4 output).
2022-05-24 20:16:48.856 16479-17361/com.android.example.camerax.video I/ACodec: [OMX.Exynos.AVC.Encoder] Now Flushing
2022-05-24 20:16:48.856 16479-17361/com.android.example.camerax.video I/ACodec: [OMX.Exynos.AVC.Encoder] FlushingState onOMXEvent(0,1,0)
2022-05-24 20:16:48.859 16479-17361/com.android.example.camerax.video I/ACodec: [OMX.Exynos.AVC.Encoder] FlushingState onOMXEvent(0,1,1)
2022-05-24 20:16:48.859 16479-17361/com.android.example.camerax.video I/ACodec: [OMX.Exynos.AVC.Encoder] Now Executing
2022-05-24 20:16:48.860 16479-17352/com.android.example.camerax.video I/MPEG4Writer: Normal stop process
2022-05-24 20:16:48.860 16479-17352/com.android.example.camerax.video D/MPEG4Writer: Video track stopping
2022-05-24 20:16:48.860 16479-17664/com.android.example.camerax.video I/MPEG4Writer: Received total/0-length (51/0) buffers and encoded 51 frames. - Video
2022-05-24 20:16:48.860 16479-17352/com.android.example.camerax.video D/MPEG4Writer: Video track source stopping
2022-05-24 20:16:48.860 16479-17352/com.android.example.camerax.video D/MPEG4Writer: Video track source stopped
2022-05-24 20:16:48.860 16479-17352/com.android.example.camerax.video D/MPEG4Writer: Video track stopped
2022-05-24 20:16:48.860 16479-17352/com.android.example.camerax.video D/MPEG4Writer: Stopping writer thread
2022-05-24 20:16:48.865 16479-17663/com.android.example.camerax.video D/MPEG4Writer: 0 chunks are written in the last batch
2022-05-24 20:16:48.866 16479-17352/com.android.example.camerax.video D/MPEG4Writer: Writer thread stopped
2022-05-24 20:16:48.868 16479-17352/com.android.example.camerax.video I/MPEG4Writer: The mp4 file will not be streamable.
2022-05-24 20:16:48.868 16479-17352/com.android.example.camerax.video D/MPEG4Writer: Video track stopping
2022-05-24 20:16:48.919 16479-16479/com.android.example.camerax.video I/CaptureFragment: recording event: Finalized: recorded 3623KB, in 1second
File saved to: content://media/external/video/media/1023
2022-05-24 20:16:48.971 16479-17361/com.android.example.camerax.video I/ACodec: [OMX.Exynos.AVC.Encoder] Now Executing->Idle
2022-05-24 20:16:48.976 16479-17361/com.android.example.camerax.video I/ACodec: [OMX.Exynos.AVC.Encoder] Now Idle->Loaded
2022-05-24 20:16:48.977 16479-17361/com.android.example.camerax.video I/ACodec: [OMX.Exynos.AVC.Encoder] Now Loaded
2022-05-24 20:16:48.977 16479-17361/com.android.example.camerax.video I/ACodec:  [OMX.Exynos.AVC.Encoder] Now kWhatShutdownCompleted event : 8438
2022-05-24 20:16:48.977 16479-17360/com.android.example.camerax.video I/MediaCodec: Codec shutdown complete
2022-05-24 20:16:48.980 16479-16479/com.android.example.camerax.video D/TextView: setTypeface with style : 0
2022-05-24 20:16:48.980 16479-17361/com.android.example.camerax.video I/ACodec:  [OMX.Exynos.AVC.Encoder] Now uninitialized
2022-05-24 20:16:48.980 16479-17361/com.android.example.camerax.video I/ACodec:  [] Now kWhatShutdownCompleted event : 8438
2022-05-24 20:16:48.981 16479-17360/com.android.example.camerax.video I/MediaCodec: Codec shutdown complete
2022-05-24 20:16:48.984 16479-16520/com.android.example.camerax.video I/ACodec:  [] Now uninitialized
2022-05-24 20:16:48.984 16479-17361/com.android.example.camerax.video I/ACodec: [] onAllocateComponent
2022-05-24 20:16:48.987 16479-17361/com.android.example.camerax.video I/OMXClient: MuxOMX ctor
2022-05-24 20:16:49.016 16479-17361/com.android.example.camerax.video I/ACodec: [OMX.Exynos.AVC.Encoder] Now Loaded
2022-05-24 20:16:49.018 16479-17360/com.android.example.camerax.video I/MediaCodec: MediaCodec will operate in async mode
2022-05-24 20:16:49.022 16479-17361/com.android.example.camerax.video W/ACodec: do not know color format 0x7f000011 = 2130706449
2022-05-24 20:16:49.022 16479-17361/com.android.example.camerax.video W/ACodec: do not know color format 0x10 = 16
2022-05-24 20:16:49.023 16479-17361/com.android.example.camerax.video W/ACodec: do not know color format 0x7f00a000 = 2130747392
2022-05-24 20:16:49.023 16479-16479/com.android.example.camerax.video D/ViewRootImpl@194a1a4[MainActivity]: Relayout returned: oldFrame=[0,0][1440,2560] newFrame=[0,0][1440,2560] result=0x7 surface={isValid=true 514788162048} surfaceGenerationChanged=true
2022-05-24 20:16:49.024 16479-17361/com.android.example.camerax.video W/ACodec: do not know color format 0x7f000789 = 2130708361
2022-05-24 20:16:49.027 16479-17361/com.android.example.camerax.video I/ACodec: setupAVCEncoderParameters with [profile: Baseline] [level: Level31]
2022-05-24 20:16:49.030 16479-17361/com.android.example.camerax.video I/ACodec: Success set VideoMinQP(5/5/5) VideoMaxQP(50/50/50)
2022-05-24 20:16:49.031 16479-17361/com.android.example.camerax.video I/ACodec: [OMX.Exynos.AVC.Encoder] cannot encode color aspects. Ignoring.
2022-05-24 20:16:49.032 16479-17361/com.android.example.camerax.video I/ACodec: [OMX.Exynos.AVC.Encoder] cannot encode HDR static metadata. Ignoring.
2022-05-24 20:16:49.032 16479-17361/com.android.example.camerax.video I/ACodec: setupVideoEncoder succeeded
2022-05-24 20:16:49.035 16479-17361/com.android.example.camerax.video W/ACodec: do not know color format 0x7f000789 = 2130708361
2022-05-24 20:16:49.041 16479-16495/com.android.example.camerax.video D/mali_winsys: EGLint new_window_surface(egl_winsys_display*, void*, EGLSurface, EGLConfig, egl_winsys_surface**, egl_color_buffer_format*, EGLBoolean) returns 0x3000,  [1440x2560]-format:1
2022-05-24 20:16:49.041 16479-16479/com.android.example.camerax.video D/ViewRootImpl@194a1a4[MainActivity]: mHardwareRenderer.updateSurface() mSurface={isValid=true 514788162048}
2022-05-24 20:16:49.064 16479-16479/com.android.example.camerax.video D/SurfaceView: Relayout returned: oldFrame=[0,0][0,0] newFrame=[0,0][1440,2560] result=0x7 surface={ Surface(name=null) /@0x7e74700 isValid=true 514789044736}
2022-05-24 20:16:49.097 16479-16479/com.android.example.camerax.video V/InputMethodManager: Starting input: tba=android.view.inputmethod.EditorInfo@f1b6b39 nm : com.android.example.camerax.video ic=null
2022-05-24 20:16:49.097 16479-16479/com.android.example.camerax.video I/InputMethodManager: [IMM] startInputInner - mService.startInputOrWindowGainedFocus
2022-05-24 20:16:49.110 16479-16479/com.android.example.camerax.video D/InputTransport: Input channel constructed: fd=87
2022-05-24 20:16:49.110 16479-16479/com.android.example.camerax.video D/InputTransport: Input channel destroyed: fd=67
2022-05-24 20:16:49.145 16479-16479/com.android.example.camerax.video D/SurfaceView: Relayout returned: oldFrame=[0,0][1440,2560] newFrame=[0,0][1440,2560] result=0x1 surface={Surface(name=null)/@0x7e74700 isValid=true 514789683200}
2022-05-24 20:16:49.246 16479-16479/com.android.example.camerax.video I/VideoViewerFragment: FileSize: 3625260
/storage/emulated/0/video/1653416207203.3gp
2022-05-24 20:16:49.272 16479-16479/com.android.example.camerax.video D/AudioManager: requestAudioFocus status : 1
2022-05-24 20:16:49.286 16479-16479/com.android.example.camerax.video I/MediaPlayer: Need to enable context aware info
2022-05-24 20:16:49.286 16479-16479/com.android.example.camerax.video V/MediaPlayer-JNI: native_setup
2022-05-24 20:16:49.287 16479-16479/com.android.example.camerax.video V/MediaPlayer: constructor
2022-05-24 20:16:49.292 16479-16479/com.android.example.camerax.video V/MediaPlayer: setListener
2022-05-24 20:16:49.302 16479-16479/com.android.example.camerax.video V/MediaPlayer-JNI: get_session_id()
2022-05-24 20:16:49.307 16479-16479/com.android.example.camerax.video D/RingtoneManager: Can't get current user. return default user
2022-05-24 20:16:49.321 16479-16479/com.android.example.camerax.video V/MediaPlayer-JNI: setDataSourceFD: fd 67
2022-05-24 20:16:49.321 16479-16479/com.android.example.camerax.video V/MediaPlayer: setDataSource(67, 0, 576460752303423487)
2022-05-24 20:16:49.328 16479-16479/com.android.example.camerax.video V/MediaPlayer: setVideoSurfaceTexture
2022-05-24 20:16:49.332 16479-16479/com.android.example.camerax.video V/MediaPlayer-JNI: setAudioStreamType: 3
2022-05-24 20:16:49.333 16479-16479/com.android.example.camerax.video V/MediaPlayer: MediaPlayer::setAudioStreamType
2022-05-24 20:16:49.333 16479-16479/com.android.example.camerax.video V/MediaPlayer: setVideoSurfaceTexture
2022-05-24 20:16:49.333 16479-16479/com.android.example.camerax.video V/MediaPlayer: prepareAsync
2022-05-24 20:16:49.398 16479-16641/com.android.example.camerax.video V/MediaPlayer: message received msg=5, ext1=1080, ext2=1920
2022-05-24 20:16:49.398 16479-16641/com.android.example.camerax.video V/MediaPlayer: New video size 1080 x 1920
2022-05-24 20:16:49.398 16479-16641/com.android.example.camerax.video V/MediaPlayer: callback application
2022-05-24 20:16:49.398 16479-16641/com.android.example.camerax.video V/MediaPlayer: back from callback
2022-05-24 20:16:49.400 16479-16492/com.android.example.camerax.video V/MediaPlayer: message received msg=200, ext1=10972, ext2=0
2022-05-24 20:16:49.400 16479-16492/com.android.example.camerax.video W/MediaPlayer: info/warning (10972, 0)
2022-05-24 20:16:49.400 16479-16492/com.android.example.camerax.video V/MediaPlayer: callback application
2022-05-24 20:16:49.400 16479-16492/com.android.example.camerax.video V/MediaPlayer: back from callback
2022-05-24 20:16:49.402 16479-16512/com.android.example.camerax.video V/MediaPlayer: message received msg=1, ext1=0, ext2=0
2022-05-24 20:16:49.402 16479-16512/com.android.example.camerax.video V/MediaPlayer: prepared
2022-05-24 20:16:49.402 16479-16512/com.android.example.camerax.video V/MediaPlayer: callback application
2022-05-24 20:16:49.402 16479-16512/com.android.example.camerax.video V/MediaPlayer: back from callback
2022-05-24 20:16:49.444 16479-16479/com.android.example.camerax.video D/ViewRootImpl@194903e[MainActivity]: ThreadedRenderer.create() translucent=true
2022-05-24 20:16:49.450 16479-16479/com.android.example.camerax.video D/InputTransport: Input channel constructed: fd=67
2022-05-24 20:16:49.450 16479-16479/com.android.example.camerax.video D/ViewRootImpl@194903e[MainActivity]: setView = DecorView@e287e9f[] touchMode=true
2022-05-24 20:16:49.455 16479-16479/com.android.example.camerax.video D/ViewRootImpl@194903e[MainActivity]: dispatchAttachedToWindow
2022-05-24 20:16:49.500 16479-16479/com.android.example.camerax.video D/ViewRootImpl@194903e[MainActivity]: Relayout returned: oldFrame=[0,0][0,0] newFrame=[0,2252][1440,2560] result=0x27 surface={isValid=true 514789044736} surfaceGenerationChanged=true
2022-05-24 20:16:49.501 16479-16479/com.android.example.camerax.video D/ViewRootImpl@194903e[MainActivity]: mHardwareRenderer.initialize() mSurface={isValid=true 514789044736} hwInitialized=true
2022-05-24 20:16:49.503 16479-16495/com.android.example.camerax.video D/mali_winsys: EGLint new_window_surface(egl_winsys_display*, void*, EGLSurface, EGLConfig, egl_winsys_surface**, egl_color_buffer_format*, EGLBoolean) returns 0x3000,  [1440x308]-format:1
2022-05-24 20:16:49.517 16479-16479/com.android.example.camerax.video V/MediaPlayer: getVideoWidth
2022-05-24 20:16:49.517 16479-16479/com.android.example.camerax.video V/MediaPlayer-JNI: getVideoWidth: 1080
2022-05-24 20:16:49.517 16479-16479/com.android.example.camerax.video V/MediaPlayer: getVideoHeight
2022-05-24 20:16:49.517 16479-16479/com.android.example.camerax.video V/MediaPlayer-JNI: getVideoHeight: 1920
2022-05-24 20:16:49.518 16479-16479/com.android.example.camerax.video V/MediaPlayer: invoke 68
2022-05-24 20:16:49.524 16479-16479/com.android.example.camerax.video D/MediaPlayer: getMetadata
2022-05-24 20:16:49.526 16479-16479/com.android.example.camerax.video V/MediaPlayer: getVideoWidth
2022-05-24 20:16:49.526 16479-16479/com.android.example.camerax.video V/MediaPlayer-JNI: getVideoWidth: 1080
2022-05-24 20:16:49.527 16479-16479/com.android.example.camerax.video V/MediaPlayer: getVideoHeight
2022-05-24 20:16:49.527 16479-16479/com.android.example.camerax.video V/MediaPlayer-JNI: getVideoHeight: 1920
2022-05-24 20:16:49.529 16479-16479/com.android.example.camerax.video D/ViewRootImpl@194903e[MainActivity]: MSG_WINDOW_FOCUS_CHANGED 1
2022-05-24 20:16:49.530 16479-16479/com.android.example.camerax.video D/ViewRootImpl@194903e[MainActivity]: mHardwareRenderer.initializeIfNeeded()#2 mSurface={isValid=true 514789044736}
2022-05-24 20:16:49.531 16479-16479/com.android.example.camerax.video V/MediaPlayer-JNI: getCurrentPosition: 0 (msec)
2022-05-24 20:16:49.532 16479-16479/com.android.example.camerax.video V/MediaPlayer: getDuration_l
2022-05-24 20:16:49.532 16479-16479/com.android.example.camerax.video V/MediaPlayer-JNI: getDuration: 1700 (msec)
2022-05-24 20:16:49.535 16479-16479/com.android.example.camerax.video D/ViewRootImpl@194903e[MainActivity]: MSG_RESIZED_REPORT: ci=Rect(0, 0 - 0, 0) vi=Rect(0, 0 - 0, 0) or=1
2022-05-24 20:16:49.610 16479-16479/com.android.example.camerax.video D/ViewRootImpl@194a1a4[MainActivity]: Relayout returned: oldFrame=[0,0][1440,2560] newFrame=[0,0][1440,2560] result=0x1 surface={isValid=true 514788162048} surfaceGenerationChanged=false
2022-05-24 20:16:49.632 16479-16479/com.android.example.camerax.video D/SurfaceView: Relayout returned: oldFrame=[0,0][1440,2560] newFrame=[0,0][1440,2560] result=0x21 surface={Surface(name=null)/@0x7e74700 isValid=true 514789686784}
2022-05-24 20:16:49.634 16479-16479/com.android.example.camerax.video V/MediaPlayer-JNI: start
2022-05-24 20:16:49.634 16479-16479/com.android.example.camerax.video V/MediaPlayer: start
2022-05-24 20:16:49.656 16479-16479/com.android.example.camerax.video D/ViewRootImpl@194903e[MainActivity]: Relayout returned: oldFrame=[0,2252][1440,2560] newFrame=[0,2252][1440,2560] result=0x1 surface={isValid=true 514789044736} surfaceGenerationChanged=false
2022-05-24 20:16:49.662 16479-16479/com.android.example.camerax.video D/ViewRootImpl@194a1a4[MainActivity]: MSG_WINDOW_FOCUS_CHANGED 0
2022-05-24 20:16:49.745 16479-16641/com.android.example.camerax.video I/CameraManagerGlobal: postSingleUpdate : Camera id 0 has status changed to 0x1
2022-05-24 20:16:49.746 16479-16641/com.android.example.camerax.video I/CameraManagerGlobal: postSingleUpdate : Camera id 0 has status changed to 0x1
2022-05-24 20:16:49.756 16479-17361/com.android.example.camerax.video I/ACodec:  [OMX.Exynos.AVC.Encoder] Now uninitialized
2022-05-24 20:16:49.757 16479-17361/com.android.example.camerax.video I/ACodec:  [] Now kWhatShutdownCompleted event : 8438
2022-05-24 20:16:49.758 16479-17360/com.android.example.camerax.video I/MediaCodec: Codec shutdown complete
2022-05-24 20:16:49.781 16479-16641/com.android.example.camerax.video V/MediaPlayer: message received msg=5, ext1=1080, ext2=1920
2022-05-24 20:16:49.781 16479-16641/com.android.example.camerax.video V/MediaPlayer: New video size 1080 x 1920
2022-05-24 20:16:49.781 16479-16641/com.android.example.camerax.video V/MediaPlayer: callback application
2022-05-24 20:16:49.781 16479-16641/com.android.example.camerax.video V/MediaPlayer: back from callback
2022-05-24 20:16:49.781 16479-16641/com.android.example.camerax.video V/MediaPlayer: message received msg=200, ext1=3, ext2=0
2022-05-24 20:16:49.781 16479-16641/com.android.example.camerax.video W/MediaPlayer: info/warning (3, 0)
2022-05-24 20:16:49.781 16479-16641/com.android.example.camerax.video V/MediaPlayer: callback application
2022-05-24 20:16:49.781 16479-16641/com.android.example.camerax.video V/MediaPlayer: back from callback
2022-05-24 20:16:49.781 16479-16641/com.android.example.camerax.video V/MediaPlayer: message received msg=6, ext1=0, ext2=0
2022-05-24 20:16:49.781 16479-16641/com.android.example.camerax.video V/MediaPlayer: unrecognized message: (6, 0, 0)
2022-05-24 20:16:49.781 16479-16641/com.android.example.camerax.video V/MediaPlayer: callback application
2022-05-24 20:16:49.781 16479-16641/com.android.example.camerax.video V/MediaPlayer: back from callback
2022-05-24 20:16:49.782 16479-16479/com.android.example.camerax.video V/MediaPlayer: getVideoWidth
2022-05-24 20:16:49.782 16479-16479/com.android.example.camerax.video V/MediaPlayer-JNI: getVideoWidth: 1080
2022-05-24 20:16:49.782 16479-16479/com.android.example.camerax.video V/MediaPlayer: getVideoHeight
2022-05-24 20:16:49.782 16479-16479/com.android.example.camerax.video V/MediaPlayer-JNI: getVideoHeight: 1920
2022-05-24 20:16:49.792 16479-16479/com.android.example.camerax.video V/MediaPlayer-JNI: getCurrentPosition: 13 (msec)
2022-05-24 20:16:49.815 16479-16479/com.android.example.camerax.video D/ViewRootImpl@194903e[MainActivity]: Relayout returned: oldFrame=[0,2252][1440,2560] newFrame=[0,2252][1440,2560] result=0x1 surface={isValid=true 514789044736} surfaceGenerationChanged=false
2022-05-24 20:16:51.415 16479-16512/com.android.example.camerax.video V/MediaPlayer: message received msg=2, ext1=0, ext2=0
2022-05-24 20:16:51.415 16479-16512/com.android.example.camerax.video V/MediaPlayer: playback complete
2022-05-24 20:16:51.415 16479-16512/com.android.example.camerax.video V/MediaPlayer: callback application
2022-05-24 20:16:51.415 16479-16512/com.android.example.camerax.video V/MediaPlayer: back from callback
2022-05-24 20:16:51.432 16479-16479/com.android.example.camerax.video D/ViewRootImpl@194903e[MainActivity]: mHardwareRenderer.destroy()#4
2022-05-24 20:16:51.435 16479-16479/com.android.example.camerax.video D/ViewRootImpl@194903e[MainActivity]: dispatchDetachedFromWindow
2022-05-24 20:16:51.467 16479-16479/com.android.example.camerax.video D/InputTransport: Input channel destroyed: fd=67
2022-05-24 20:16:51.471 16479-16479/com.android.example.camerax.video D/ViewRootImpl@194a1a4[MainActivity]: MSG_WINDOW_FOCUS_CHANGED 1
2022-05-24 20:16:51.472 16479-16479/com.android.example.camerax.video D/ViewRootImpl@194a1a4[MainActivity]: mHardwareRenderer.initializeIfNeeded()#2 mSurface={isValid=true 514788162048}
2022-05-24 20:16:51.475 16479-16479/com.android.example.camerax.video E/ViewRootImpl: sendUserActionEvent() mView == null

Device: Samsung Galaxy S6 (SM-G920F) Android version: Android 7.0 Build number: NRD90M.G920FXXS6ETJ6

J3y-S commented 2 years ago

Hi all. I run into the same issue (same Device). Did anyone found a solution here?

buntupana commented 2 years ago

Hi all. I run into the same issue (same Device). Did anyone found a solution here?

Unfortunately there is not. I've opened a ticket in to inform google about this issue but there is no solution yet.