MediaMTX Version: 1.15.3
React Native Version: 0.78
Gradle 8.14
Hii, I was developing a streaming mobile application using react native. I am using mediamtx and webrtc to stream and receive real time video. I device was streaming a 2k video but the mobile application wasn't able to decode it for higher resolution. The max resolution it support was 1080p for android 13. Mobile model '2201116SI - 13'/ Redmi note 11 pro plus 5g. I am able to get the video on android 15 but below version I get only black screen. For some Samsung android version 10 it was able decode and receive the video. If possible I want to H265 video format too. The server doesn't reduce the video quality and send the video, how it is received. So server side it is not transcoding or downscaling the video resolution. If possible I would prefer client side mobile apk changes.
This are logs that maybe helpful to understand it better:
-----------------------------------------------------------------------------------
11-18 13:49:25.381 1500 29041 E ActivityManager: 2.4% 23923/MediaCodec_loop: 1.2% user + 1.2% kernel 11-18 14:20:17.499 9779 2645 I MediaCodec: [mId: 453] video-debug setState: RELEASING 11-18 14:20:17.506 9779 2645 I MediaCodec: [mId: 453] video-debug setState: UNINITIALIZED 11-18 14:20:17.507 9779 2645 I MediaCodec: MediaStub sendHdrInfo/sendFrameRateFloatCal/updateFrcAieAisState 11-18 14:20:17.513 9779 9788 D MediaCodec: flushMediametrics 11-18 14:20:17.513 9779 9788 D VideoInfo: com.livestreamapp destroy c2.qti.avc.decoder in MediaCodec, input num 0 output num 0 render num 0 11-18 14:20:17.518 9779 2629 I MediaCodec: [mId: 452] video-debug setState: RELEASING 11-18 14:20:17.536 9779 2629 I MediaCodec: [mId: 452] video-debug setState: UNINITIALIZED 11-18 14:20:17.537 9779 2629 I MediaCodec: MediaStub sendHdrInfo/sendFrameRateFloatCal/updateFrcAieAisState 11-18 14:20:17.542 9779 9788 D MediaCodec: flushMediametrics 11-18 14:20:17.542 9779 9788 D VideoInfo: com.livestreamapp destroy c2.qti.avc.decoder in MediaCodec, input num 0 output num 0 render num 0 11-18 14:20:17.551 9779 2615 I MediaCodec: [mId: 451] video-debug setState: RELEASING 11-18 14:20:17.553 9779 2615 I MediaCodec: [mId: 451] video-debug setState: UNINITIALIZED 11-18 14:20:17.554 9779 2615 I MediaCodec: MediaStub sendHdrInfo/sendFrameRateFloatCal/updateFrcAieAisState 11-18 14:20:17.559 9779 9788 D MediaCodec: flushMediametrics 11-18 14:20:17.559 9779 9788 D VideoInfo: com.livestreamapp destroy c2.qti.avc.decoder in MediaCodec, input num 0 output num 0 render num 0 11-18 14:20:18.902 9779 25774 D MediaCodec: [mId: 232] video-debug Stats over last 5006ms: 11-18 14:20:18.902 9779 25774 D MediaCodec: [mId: 232] video-debug Qinput: 147, DQinput: 147 success out of 148 tries 11-18 14:20:18.902 9779 25774 D MediaCodec: [mId: 232] video-debug Render: 0, Drop: 147, DQoutput: 147 success out of 147 tries 11-18 14:20:18.947 9779 13063 I MediaCodec: init video box disabled for codec not supported 11-18 14:20:19.016 9779 2949 I MediaCodec: [mId: 455] video-debug setState: INITIALIZED 11-18 14:20:19.020 9779 13063 D VideoInfo: com.livestreamapp create c2.qti.avc.decoder in MediaCodec 11-18 14:20:19.020 9779 13063 D MediaCodec: [mId: 455] video-debug configure: ClientName: com.livestreamapp ComponentName: c2.qti.avc.decoder 11-18 14:20:19.020 9779 13063 D MediaCodec: [mId: 455] video-debug configure: ClientFormat: AMessage(what = 0x00000000) = { 11-18 14:20:19.020 9779 13063 D MediaCodec: string mime = "video/avc" 11-18 14:20:19.020 9779 13063 D MediaCodec: int32_t width = 2560 11-18 14:20:19.020 9779 13063 D MediaCodec: int32_t height = 1440 11-18 14:20:19.020 9779 13063 D MediaCodec: } 11-18 14:20:19.021 9779 13063 I MiMediaCodecStub: MiMediaCodecStub::MiMediaCodecStub 11-18 14:20:19.021 9779 13063 I MediaCodec: fps video to display enabled 11-18 14:20:19.022 9779 13063 I MediaCodec: The Fps from player is 0.000000 frameRateFloat -1.000000 frameRateInt -1 11-18 14:20:19.022 9779 13063 I MediaCodec: MediaStub sendFrameRate 11-18 14:20:19.031 9779 13063 I MediaCodec: MediaStub sendMine 11-18 14:20:19.032 9779 13063 D MediaCodec: currery video type video/avc 11-18 14:20:19.032 9779 13063 I MediaCodec: MediaStub sendDolbyVision 11-18 14:20:19.032 9779 13063 I MediaCodec: MediaStub sendPackageName 11-18 14:20:19.032 9779 13063 I MediaCodec: MediaStub sendWidth/sendHeight 11-18 14:20:19.033 9779 13063 I MediaCodec: configure : init video box disabled 11-18 14:20:20.190 2651 2712 I MediaCodec: init video box disabled for codec not supported 11-18 14:20:20.320 2651 3184 I MediaCodec: [mId: 0] video-debug setState: INITIALIZED 11-18 14:20:20.322 2651 2732 W AppInitScheduler|Schedule: Executing 70:MediaCodecTrackingInitializer 11-18 14:20:20.322 2651 2732 W AppInitScheduler|Run: Running MediaCodecTrackingInitializer 11-18 14:20:20.323 2651 2732 W AppInitScheduler|Run: Finished MediaCodecTrackingInitializer in 1ms 11-18 14:20:20.323 2651 2712 D VideoInfo: com.instagram.android create c2.qti.vp9.decoder in MediaCodec 11-18 14:20:20.324 2651 2712 I MediaCodec: [mId: 0] video-debug stop 11-18 14:20:20.324 2651 3184 I MediaCodec: [mId: 0] video-debug setState: STOPPING 11-18 14:20:20.324 2651 3184 I MediaCodec: [mId: 0] video-debug setState: INITIALIZED 11-18 14:20:20.683 2651 3206 I MediaCodec: [mId: 1] video-debug setState: UNINITIALIZED 11-18 14:20:20.684 2651 3206 I MediaCodec: MediaStub sendHdrInfo/sendFrameRateFloatCal/updateFrcAieAisState 11-18 14:20:20.685 2651 3206 D MediaCodec: flushMediametrics 11-18 14:20:20.687 2651 3206 D MediaCodec: flushMediametrics 11-18 14:20:21.033 9779 13063 I MediaCodec: The Fps from player is 0.000000 frameRateFloat -1.000000 frameRateInt -1 11-18 14:20:21.033 9779 13063 I MediaCodec: MediaStub sendFrameRate 11-18 14:20:21.040 9779 13063 I MediaCodec: MediaStub sendMine 11-18 14:20:21.040 9779 13063 D MediaCodec: currery video type video/avc 11-18 14:20:21.040 9779 13063 I MediaCodec: MediaStub sendDolbyVision 11-18 14:20:21.040 9779 13063 I MediaCodec: MediaStub sendPackageName 11-18 14:20:21.040 9779 13063 I MediaCodec: MediaStub sendWidth/sendHeight 11-18 14:20:21.040 9779 13063 I MediaCodec: configure : init video box disabled 11-18 14:20:21.041 9779 3245 D MediaCodec: flushMediametrics 11-18 14:20:21.042 9779 3245 I MediaCodec: [mId: 456] video-debug connectToSurface: surface 0xb4000072bad58000, mSurface 0x0 11-18 14:20:21.044 9779 3245 I MediaCodec: [c2.qti.avc.decoder] setting surface generation to 10014137 11-18 14:20:21.046 9779 3245 I MediaCodec: [mId: 456] video-debug setState: CONFIGURING 11-18 14:20:21.051 9779 3245 E MediaCodec: [TF-VIDEO]Codec reported err 0xffffffea/BAD_VALUE, actionCode 0, while in state 3/CONFIGURING 11-18 14:20:21.051 9779 3245 D MediaCodec: flushMediametrics 11-18 14:20:21.052 9779 3245 I MediaCodec: [mId: 456] video-debug disconnectFromSurface: mSurface 0xb4000072bad58000 11-18 14:20:21.052 9779 3245 I MediaCodec: [mId: 456] video-debug setState: UNINITIALIZED 11-18 14:20:21.053 9779 13063 E MediaCodec: configure failed with err 0xffffffea, resetting... 11-18 14:20:21.055 9779 3245 I MediaCodec: [mId: 456] video-debug setState: RELEASING 11-18 14:20:21.069 9779 13063 I MediaCodec: init video box disabled for codec not supported 11-18 14:20:21.071 9779 3245 I MediaCodec: [mId: 456] video-debug setState: INITIALIZING 11-18 14:20:21.111 9779 3245 I MediaCodec: [mId: 456] video-debug setState: INITIALIZED 11-18 14:20:21.117 9779 13063 D VideoInfo: com.livestreamapp create c2.qti.avc.decoder in MediaCodec 11-18 14:20:21.118 9779 13063 E org.webrtc.Logging: at android.media.MediaCodec.native_configure(Native Method) 11-18 14:20:21.118 9779 13063 E org.webrtc.Logging: at android.media.MediaCodec.configure(MediaCodec.java:2214) 11-18 14:20:21.118 9779 13063 E org.webrtc.Logging: at android.media.MediaCodec.configure(MediaCodec.java:2130) 11-18 14:20:21.118 9779 13063 E org.webrtc.Logging: at org.webrtc.MediaCodecWrapperFactoryImpl$MediaCodecWrapperImpl.configure(MediaCodecWrapperFactoryImpl.java:37) 11-18 14:20:22.092 1562 6366 D MediaCodec: [mId: 424] video-debug Stats over last 5175ms: 11-18 14:20:22.092 1562 6366 D MediaCodec: [mId: 424] video-debug Qinput: 197, DQinput: 0 success out of 0 tries 11-18 14:20:22.092 1562 6366 D MediaCodec: [mId: 424] video-debug Render: 0, Drop: 197, DQoutput: 0 success out of 0 tries
-----------------------------------------------------------------------------------------------
New contributor
Vilas Katigar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Add a comment
|