Open xloger opened 3 years ago
I got error
Hi @NeighborhoodCoding, I am getting this same error, how did you resolved this issue? I checked your #261 but not able to understand it properly. Please help me out, thank you.
I am using library react-native-video-processing for video trim and the app is getting crashed for some of the videos.
Same issue
Did you find any solution?
I have used this library for a long time, It is a great library.I recently upgraded the targetSdkVersion to 29,so I need to convert all file paths to Uri. I found that some special videos will crash when calling FFmpegMediaMetadataRetriever's
setDataSource
. Crash Info:this video is normal when use MediaCodec's
setDataSource(fileDescriptor)
,but in FFmpegMediaMetadataRetriever, I usesetDataSource(context, uri)
、setDataSource(afd.getFileDescriptor())
、setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getDeclaredLength())
will crash. but this video is normal when targetSDK is 28 and input file path. I watch https://stackoverflow.com/questions/24701029/how-to-properly-pass-an-asset-filedescriptor-to-ffmpeg-using-jni-in-android and try add this video toassets
,but it still didn't work.This won't crash,but printjava.lang.RuntimeException: setDataSource failed: status = 0xFFFFFFFF
. I tested it on your fmmr-demo, and it still does. this video download url:https://1drv.ms/v/s!AkJHUVMfwf_0gr4OOHZLM7JoblRpzg?e=JFdjXA . I build this video by MediaCodec.Maybe I lacked some information when I made this video?Such asskip_initial_bytes
? I'm not familiar with these. I wonder what suggestions you have.