Open raghavtilak opened 3 years ago
Same "Failed to trim" in google pixel 2
2022-06-21 19:15:40.054 31352-31352/com.gtl.gispm V/VIDEO_TRIMMER ::: outputPath::/storage/emulated/0/Android/data/com.gtl.gispm/files/Download/trimmed_video_2022_5_21_19_15_40.mp4
2022-06-21 19:15:40.054 31352-31352/com.gtl.gispm V/VIDEO_TRIMMER ::: sourcePath::/storage/emulated/0/Pictures/GNXT_VIDEO/MP4_20220621_191240_7261555589894766486.mp4
2022-06-21 19:15:40.054 31352-31352/com.gtl.gispm V/VIDEO_TRIMMER ::: No compression option used
2022-06-21 19:15:40.095 31352-31352/com.gtl.gispm D/MPEG4Writer: PreAllocation disabled. fallocate : Operation not supported on transport endpoint, 95
2022-06-21 19:15:40.110 31352-1972/com.gtl.gispm I/OMXClient: IOmx service obtained
2022-06-21 19:15:40.133 31352-1972/com.gtl.gispm W/OMXUtils: do not know color format 0x7fa30c06 = 2141391878
2022-06-21 19:15:40.133 31352-1972/com.gtl.gispm W/OMXUtils: do not know color format 0x7fa30c04 = 2141391876
2022-06-21 19:15:40.133 31352-1972/com.gtl.gispm W/OMXUtils: do not know color format 0x7fa30c08 = 2141391880
2022-06-21 19:15:40.133 31352-1972/com.gtl.gispm W/OMXUtils: do not know color format 0x7fa30c07 = 2141391879
2022-06-21 19:15:40.134 31352-1972/com.gtl.gispm W/OMXUtils: do not know color format 0x7f000789 = 2130708361
2022-06-21 19:15:40.142 31352-1972/com.gtl.gispm E/ACodec: [OMX.qcom.video.encoder.avc] configureCodec returning error -38
2022-06-21 19:15:40.142 31352-1972/com.gtl.gispm E/ACodec: signalError(omxError 0x80001001, internalError -2147483648)
2022-06-21 19:15:40.142 31352-1971/com.gtl.gispm E/MediaCodec: Codec reported err 0x80001001, actionCode 0, while in state 3
2022-06-21 19:15:40.143 31352-1462/com.gtl.gispm E/MediaCodec: configure failed with err 0x80001001, resetting...
2022-06-21 19:15:40.151 31352-1972/com.gtl.gispm I/OMXClient: IOmx service obtained
2022-06-21 19:15:40.166 31352-1462/com.gtl.gispm E/com.linkedin.android.litr.exception.TrackTranscoderException: Failed to retrieve media codec info.
2022-06-21 19:15:40.167 31352-1462/com.gtl.gispm E/TransformationJob: Transformation job error
com.linkedin.android.litr.exception.TrackTranscoderException: Failed to configure encoder codec.Media transformation failed for job id: null
Media format: {color-format=2130708361, i-frame-interval=5, durationUs=61183066, mime=video/avc, profile=8, width=3840, bitrate=48214535, frame-rate=29, height=2160}
Selected media codec info:
Available media codec info list (Name, IsEncoder, Supported Types):
MediaCodecInfo: c2.android.aac.decoder,false,[audio/mp4a-latm]
MediaCodecInfo: OMX.google.aac.decoder,false,[audio/mp4a-latm]
MediaCodecInfo: c2.android.aac.encoder,true,[audio/mp4a-latm]
MediaCodecInfo: OMX.google.aac.encoder,true,[audio/mp4a-latm]
MediaCodecInfo: c2.android.amrnb.decoder,false,[audio/3gpp]
MediaCodecInfo: OMX.google.amrnb.decoder,false,[audio/3gpp]
MediaCodecInfo: c2.android.amrnb.encoder,true,[audio/3gpp]
MediaCodecInfo: OMX.google.amrnb.encoder,true,[audio/3gpp]
MediaCodecInfo: c2.android.amrwb.decoder,false,[audio/amr-wb]
MediaCodecInfo: OMX.google.amrwb.decoder,false,[audio/amr-wb]
MediaCodecInfo: c2.android.amrwb.encoder,true,[audio/amr-wb]
MediaCodecInfo: OMX.google.amrwb.encoder,true,[audio/amr-wb]
MediaCodecInfo: c2.android.flac.decoder,false,[audio/flac]
MediaCodecInfo: OMX.google.flac.decoder,false,[audio/flac]
MediaCodecInfo: c2.android.flac.encoder,true,[audio/flac]
MediaCodecInfo: OMX.google.flac.encoder,true,[audio/flac]
MediaCodecInfo: c2.android.g711.alaw.decoder,false,[audio/g711-alaw]
MediaCodecInfo: OMX.google.g711.alaw.decoder,false,[audio/g711-alaw]
MediaCodecInfo: c2.android.g711.mlaw.decoder,false,[audio/g711-mlaw]
MediaCodecInfo: OMX.google.g711.mlaw.decoder,false,[audio/g711-mlaw]
MediaCodecInfo: c2.android.mp3.decoder,false,[audio/mpeg]
MediaCodecInfo: OMX.google.mp3.decoder,false,[audio/mpeg]
MediaCodecInfo: c2.android.opus.decoder,false,[audio/opus]
MediaCodecInfo: OMX.google.opus.decoder,false,[audio/opus]
MediaCodecInfo: c2.android.opus.encoder,true,[audio/opus]
MediaCodecInfo: c2.android.raw.decoder,false,[audio/raw]
MediaCodecInfo: OMX.google.raw.decoder,false,[audio/raw]
MediaCodecInfo: c2.android.vorbis.decoder,false,[audio/vorbis]
MediaCodecInfo: OMX.google.vorbis.decoder,false,[audio/vorbis]
MediaCodecInfo: OMX.google.gsm.decoder,false,[audio/gsm]
MediaCodecInfo: OMX.qcom.video.decoder.avc,false,[video/avc]
MediaCodecInfo: OMX.qcom.video.decoder.avc.secure,false,[video/avc]
MediaCodecInfo: OMX.qcom.video.decoder.h263,false,[video/3gpp]
MediaCodecInfo: OMX.qcom.video.decoder.hevc,false,[video/hevc]
MediaCodecInfo: OMX.qcom.video.decoder.hevc.secure,false,[video/hevc]
MediaCodecInfo: OMX.qcom.video.decoder.mpeg4,false,[video/mp4v-es]
MediaCodecInfo: OMX.qcom.video.decoder.vp8,false,[video/x-vnd.on2.vp8]
MediaCodecInfo: OMX.qcom.video.decoder.vp9,false,[video/x-vnd.on2.vp9]
MediaCodecInfo: OMX.qcom.video.decoder.vp9.secure,false,[video/x-vnd.on2.vp9]
MediaCodecInfo: OMX.qcom.video.encoder.avc,true,[video/avc]
MediaCodecInfo: OMX.qcom.video.encoder.h263,true,[video/3gpp]
MediaCodecInfo: OMX.qcom.video.encoder.hevc,true,[video/hevc]
MediaCodecInfo: OMX.qcom.video.encoder.mpeg4,true,[video/mp4v-es]
MediaCodecInfo: OMX.qcom.video.encoder.vp8,true,[video/x-vnd.on2.vp8]
MediaCodecInfo: c2.android.av1.decoder,false,[video/av01]
MediaCodecInfo: c2.android.avc.decoder,false,[video/avc]
MediaCodecInfo: OMX.google.h264.decoder,false,[video/avc]
MediaCodecInfo: c2.android.avc.encoder,true,[video/avc]
MediaCodecInfo: OMX.google.h264.encoder,true,[video/avc]
MediaCodecInfo: c2.android.h263.decoder,false,[video/3gpp]
MediaCodecInfo: OMX.google.h263.decoder,false,[video/3gpp]
MediaCodecInfo: c2.android.h263.encoder,true,[video/3gpp]
MediaCodecInfo: OMX.google.h263.encoder,true,[video/3gpp]
MediaCodecInfo: c2.android.hevc.decoder,false,[video/hevc]
MediaCodecInfo: OMX.google.hevc.decoder,false,[video/hevc]
MediaCodecInfo: c2.android.hevc.encoder,true,[video/hevc]
MediaCodecInfo: c2.android.mpeg4.decoder,false,[video/mp4v-es]
MediaCodecInfo: OMX.google.mpeg4.decoder,false,[video/mp4v-es]
2022-06-21 19:15:40.167 31352-1462/com.gtl.gispm E/TransformationJob: MediaCodecInfo: c2.android.mpeg4.encoder,true,[video/mp4v-es]
MediaCodecInfo: OMX.google.mpeg4.encoder,true,[video/mp4v-es]
MediaCodecInfo: c2.android.vp8.decoder,false,[video/x-vnd.on2.vp8]
MediaCodecInfo: OMX.google.vp8.decoder,false,[video/x-vnd.on2.vp8]
MediaCodecInfo: c2.android.vp8.encoder,true,[video/x-vnd.on2.vp8]
MediaCodecInfo: OMX.google.vp8.encoder,true,[video/x-vnd.on2.vp8]
MediaCodecInfo: c2.android.vp9.decoder,false,[video/x-vnd.on2.vp9]
MediaCodecInfo: OMX.google.vp9.decoder,false,[video/x-vnd.on2.vp9]
MediaCodecInfo: c2.android.vp9.encoder,true,[video/x-vnd.on2.vp9]
MediaCodecInfo: OMX.google.vp9.encoder,true,[video/x-vnd.on2.vp9]Diagnostic info: android.media.MediaCodec.error_neg_2147479551
at com.linkedin.android.litr.codec.MediaCodecEncoder.init(MediaCodecEncoder.java:86)
at com.linkedin.android.litr.transcoder.VideoTrackTranscoder.initCodecs(VideoTrackTranscoder.java:74)
at com.linkedin.android.litr.transcoder.VideoTrackTranscoder.
The player doesn't load the video file from the content uri (Uri: content://media/external/video/media/454398).
LOGS: 2021-06-14 19:28:18.251 1805-1974/? I/Timeline: Timeline: Activity_windows_visible id: ActivityRecord{3c634b4 u0 com.raghav.videomerger/com.videotrimmer.library.ui.ActVideoTrimmer t5762} time:217283237 2021-06-14 19:28:18.259 1805-1974/? I/WindowManager: Screen frozen for +703ms due to Window{c0e499b u0 com.raghav.videomerger/com.videotrimmer.library.ui.ActVideoTrimmer} 2021-06-14 19:28:21.135 13506-13506/com.raghav.videomerger V/VIDEO_TRIMMER ::: onPlayerStateChanged: STATE_IDLE. 2021-06-14 19:28:22.973 13506-13506/com.raghav.videomerger V/VIDEO_TRIMMER ::: outputPath::/storage/emulated/0/Android/data/com.raghav.videomerger/files/Download/trimmed_video_2021_5_14_19_28_22.mp4 2021-06-14 19:28:22.973 13506-13506/com.raghav.videomerger V/VIDEO_TRIMMER ::: sourcePath::/data/user/0/com.raghav.videomerger/files/userfiles/VID-1623588541564.mp4 2021-06-14 19:28:22.979 13506-13506/com.raghav.videomerger V/VIDEO_TRIMMER ::: No compression option used 2021-06-14 19:28:23.043 13506-13506/com.raghav.videomerger V/VIDEO_TRIMMER ::: onError com.linkedin.android.litr.exception.MediaSourceException: Failed to create media source due to a data source errorMedia transformation failed for job id: null Failed to create media source due to a data source error Uri: content://media/external/video/media/454398 2021-06-14 19:28:23.052 13506-13506/com.raghav.videomerger D/ForceDarkHelper: updateByCheckExcludeList: pkg: com.raghav.videomerger activity: com.videotrimmer.library.ui.ActVideoTrimmer@e08f105 2021-06-14 19:28:23.062 13506-13506/com.raghav.videomerger D/ForceDarkHelper: updateByCheckExcludeList: pkg: com.raghav.videomerger activity: com.videotrimmer.library.ui.ActVideoTrimmer@e08f105 2021-06-14 19:28:29.394 13506-13506/com.raghav.videomerger W/ActivityThread: SCHED: com.raghav.videomerger/com.videotrimmer.library.ui.ActVideoTrimmer [71, r=421ms, a=168ms, w=11272ms] 2021-06-14 19:28:29.525 13506-13506/com.raghav.videomerger D/ForceDarkHelper: updateByCheckExcludeList: pkg: com.raghav.videomerger activity: com.videotrimmer.library.ui.ActVideoTrimmer@3f8fbb7 2021-06-14 19:28:29.541 13506-13506/com.raghav.videomerger D/ForceDarkHelper: updateByCheckExcludeList: pkg: com.raghav.videomerger activity: com.videotrimmer.library.ui.ActVideoTrimmer@3f8fbb7 2021-06-14 19:28:29.542 13506-13506/com.raghav.videomerger D/ForceDarkHelper: updateByCheckExcludeList: pkg: com.raghav.videomerger activity: com.videotrimmer.library.ui.ActVideoTrimmer@3f8fbb7 2021-06-14 19:28:29.547 13506-13506/com.raghav.videomerger D/ForceDarkHelper: updateByCheckExcludeList: pkg: com.raghav.videomerger activity: com.videotrimmer.library.ui.ActVideoTrimmer@3f8fbb7 2021-06-14 19:28:29.550 13506-13506/com.raghav.videomerger D/ForceDarkHelper: updateByCheckExcludeList: pkg: com.raghav.videomerger activity: com.videotrimmer.library.ui.ActVideoTrimmer@3f8fbb7 2021-06-14 19:28:29.587 13506-13506/com.raghav.videomerger D/ForceDarkHelper: updateByCheckExcludeList: pkg: com.raghav.videomerger activity: com.videotrimmer.library.ui.ActVideoTrimmer@3f8fbb7 2021-06-14 19:28:29.635 13506-13506/com.raghav.videomerger V/VIDEO_TRIMMER ::: VideoUri:: /data/user/0/com.raghav.videomerger/files/userfiles/VID-1623588541564.mp4 2021-06-14 19:28:29.636 13506-13506/com.raghav.videomerger W/System.err: at com.videotrimmer.library.utils.TrimmerUtils.getDuration(TrimmerUtils.java:46) 2021-06-14 19:28:29.636 13506-13506/com.raghav.videomerger W/System.err: at com.videotrimmer.library.ui.ActVideoTrimmer.setDataInView(ActVideoTrimmer.java:199) 2021-06-14 19:28:29.636 13506-13506/com.raghav.videomerger W/System.err: at com.videotrimmer.library.ui.ActVideoTrimmer.onPostCreate(ActVideoTrimmer.java:160) 2021-06-14 19:28:29.673 2449-2449/? D/RecentsImpl: mActivityStateObserver com.videotrimmer.library.ui.ActVideoTrimmer 2021-06-14 19:28:29.767 1805-1974/? I/Timeline: Timeline: Activity_windows_visible id: ActivityRecord{3c634b4 u0 com.raghav.videomerger/com.videotrimmer.library.ui.ActVideoTrimmer t5762} time:217294753 2021-06-14 19:28:29.776 1805-1974/? I/WindowManager: Screen frozen for +509ms due to Window{282a890 u0 com.raghav.videomerger/com.videotrimmer.library.ui.ActVideoTrimmer} 2021-06-14 19:28:32.671 13506-13506/com.raghav.videomerger V/VIDEO_TRIMMER ::: onPlayerStateChanged: STATE_IDLE. 2021-06-14 19:28:33.184 13506-13506/com.raghav.videomerger W/ActivityThread: SCHED: com.raghav.videomerger/com.videotrimmer.library.ui.ActVideoTrimmer [79, r=161ms, a=42ms, w=3523ms] 2021-06-14 19:28:35.791 1805-3047/? I/ActivityTaskManager: START u0 {cmp=com.raghav.videomerger/com.videotrimmer.library.ui.ActVideoTrimmer (has extras)} from uid 10579 2021-06-14 19:28:35.914 13506-13506/com.raghav.videomerger D/ForceDarkHelper: updateByCheckExcludeList: pkg: com.raghav.videomerger activity: com.videotrimmer.library.ui.ActVideoTrimmer@745761e 2021-06-14 19:28:35.915 13506-13506/com.raghav.videomerger D/ForceDarkHelper: updateByCheckExcludeList: pkg: com.raghav.videomerger activity: com.videotrimmer.library.ui.ActVideoTrimmer@745761e 2021-06-14 19:28:35.918 13506-13506/com.raghav.videomerger D/ForceDarkHelper: updateByCheckExcludeList: pkg: com.raghav.videomerger activity: com.videotrimmer.library.ui.ActVideoTrimmer@745761e 2021-06-14 19:28:35.920 13506-13506/com.raghav.videomerger D/ForceDarkHelper: updateByCheckExcludeList: pkg: com.raghav.videomerger activity: com.videotrimmer.library.ui.ActVideoTrimmer@745761e 2021-06-14 19:28:35.921 13506-13506/com.raghav.videomerger D/ForceDarkHelper: updateByCheckExcludeList: pkg: com.raghav.videomerger activity: com.videotrimmer.library.ui.ActVideoTrimmer@745761e 2021-06-14 19:28:35.942 13506-13506/com.raghav.videomerger D/ForceDarkHelper: updateByCheckExcludeList: pkg: com.raghav.videomerger activity: com.videotrimmer.library.ui.ActVideoTrimmer@745761e 2021-06-14 19:28:35.943 13506-13506/com.raghav.videomerger D/ForceDarkHelper: updateByCheckExcludeList: pkg: com.raghav.videomerger activity: com.videotrimmer.library.ui.ActVideoTrimmer@745761e 2021-06-14 19:28:35.971 13506-13506/com.raghav.videomerger D/ForceDarkHelper: updateByCheckExcludeList: pkg: com.raghav.videomerger activity: com.videotrimmer.library.ui.ActVideoTrimmer@745761e 2021-06-14 19:28:36.005 13506-13506/com.raghav.videomerger V/VIDEO_TRIMMER ::: VideoUri:: /data/user/0/com.raghav.videomerger/files/userfiles/VID-1623511630231.mp4 2021-06-14 19:28:36.006 13506-13506/com.raghav.videomerger W/System.err: at com.videotrimmer.library.utils.TrimmerUtils.getDuration(TrimmerUtils.java:46) 2021-06-14 19:28:36.006 13506-13506/com.raghav.videomerger W/System.err: at com.videotrimmer.library.ui.ActVideoTrimmer.setDataInView(ActVideoTrimmer.java:199) 2021-06-14 19:28:36.006 13506-13506/com.raghav.videomerger W/System.err: at com.videotrimmer.library.ui.ActVideoTrimmer.onPostCreate(ActVideoTrimmer.java:160) 2021-06-14 19:28:36.026 2449-2449/? D/RecentsImpl: mActivityStateObserver com.videotrimmer.library.ui.ActVideoTrimmer 2021-06-14 19:28:36.102 1805-1993/? I/ActivityTaskManager: Displayed com.raghav.videomerger/com.videotrimmer.library.ui.ActVideoTrimmer: +303ms 2021-06-14 19:28:36.578 1805-1974/? I/Timeline: Timeline: Activity_windows_visible id: ActivityRecord{2596667 u0 com.raghav.videomerger/com.videotrimmer.library.ui.ActVideoTrimmer t5762} time:217301563 2021-06-14 19:28:39.050 13506-13506/com.raghav.videomerger V/VIDEO_TRIMMER ::: onPlayerStateChanged: STATE_IDLE. 2021-06-14 19:30:07.932 13506-13506/com.raghav.videomerger W/ActivityThread: SCHED: com.raghav.videomerger/com.videotrimmer.library.ui.ActVideoTrimmer [76, r=133ms, a=41ms, w=91919ms] 2021-06-14 19:31:08.174 14647-14696/? I/cr_BindingManager: onTrimMemory: level=20, size=0
CODE String srcUri= getIntent().getStringExtra("uri");
//the srcUri contains the content uri //content://media/external/video/media/454398 TrimVideo.activity(srcUri) .setHideSeekBar(true) .setDestination(file.getAbsolutePath()) //default output path /storage/emulated/0/DOWNLOADS .start(this);
and
@Override public void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); if (requestCode == TrimVideo.VIDEO_TRIMMER_REQ_CODE && data != null) { Uri uri = Uri.parse(TrimVideo.getTrimmedVideoPath(data)); Log.d("TAG", "Trimmed path:: " + uri); } }