microshow/RxFFmpeg

bugly 收到闪退日志

liuhuan8986 opened this issue · 0 comments

命令参数如下:
`boolean isHorizontalVideo = AudioVideoUtils.isHorizontalVideo(file);

    RxFFmpegCommandList cmdlist = new RxFFmpegCommandList();

    cmdlist.append("-i");
    cmdlist.append(file);

    cmdlist.append("-vf");
    if (isHorizontalVideo) {
        cmdlist.append("scale=960:540");
    } else {
        cmdlist.append("scale=540:960");
    }

    cmdlist.append("-b");
    cmdlist.append("2097k");

    cmdlist.append("-r");
    cmdlist.append("24");

    cmdlist.append("-vcodec");
    cmdlist.append("libx264");

    cmdlist.append("-crf");
    cmdlist.append("28");

    cmdlist.append("-preset");
    cmdlist.append("superfast");

    cmdlist.append(outFile);
    return cmdlist.build();`

有 android 8,10,11,12 的设备都出现了闪退

09-23 19:58:42.558 3276 3276 V TAG_FFMPEG: ==============================av_dump_format==================================

309-23 19:58:42.558 3276 3276 V TAG_FFMPEG: ===========================================================================
409-23 19:58:42.558 3276 3276 V TAG_FFMPEG: 文件名 : /storage/emulated/0/DCIM/Camera/lv_7101490057411972382_20220923191933.mp4
509-23 19:58:42.558 3276 3276 V TAG_FFMPEG: 输入格式 : mov,mp4,m4a,3gp,3g2,mj2
609-23 19:58:42.558 3276 3276 V TAG_FFMPEG: 全称 : (null)
709-23 19:58:42.558 3276 3276 V TAG_FFMPEG: 总时长 : 30210.000000 ms,fmt:00:00:30
809-23 19:58:42.558 3276 3276 V TAG_FFMPEG: 总比特率 : 5603.705000 kbs
909-23 19:58:42.558 3276 3276 V TAG_FFMPEG: 文件大小 : 20.18 MB
1009-23 19:58:42.558 3276 3276 V TAG_FFMPEG: 协议白名单 : file,crypto
1109-23 19:58:42.558 3276 3276 V TAG_FFMPEG: 协义黑名单 : (null)
1209-23 19:58:42.558 3276 3276 V TAG_FFMPEG: 数据包的最大数量 : 50
1309-23 19:58:42.558 3276 3276 V TAG_FFMPEG: 最大缓冲时间 : 10000000
1409-23 19:58:42.558 3276 3276 V TAG_FFMPEG: 缓冲帧的最大缓冲 : 3041280 Bytes
1509-23 19:58:42.558 3276 3276 V TAG_FFMPEG: metadata:
1609-23 19:58:42.558 3276 3276 V TAG_FFMPEG: major_brand : isom
1709-23 19:58:42.558 3276 3276 V TAG_FFMPEG: minor_version : 512
1809-23 19:58:42.558 3276 3276 V TAG_FFMPEG: compatible_brands : isomiso2avc1mp41
1909-23 19:58:42.558 3276 3276 V TAG_FFMPEG: Hw : 1
2009-23 19:58:42.558 3276 3276 V TAG_FFMPEG:
2109-23 19:58:42.558 3276 3276 V TAG_FFMPEG: LvMetaInfo : {"data":{"appVersion":"8.7.0","did":"Mfsw9FCZiRJ8p9Ioe4DkvGMdn/iE2o5SfuuOrtYzapLhrt+sYvt2Vcv69A1OmjThUIHqMWtaEyE/UTN9By0DWaXHuD21BjSXQtPNwyBKY0Lyq5MrNOsjiYGEbXEDYfA6OU8HZGFjzM+2OV/EXidZkEPNf7Kp+YHwKv5WrunAByAGCASaHVSDkYbVjEfUCBNUp//5wnCo7zVBMSY7+YXtueZkyL3OIaf2+8If2wKxTpXb0RvsDI4mJ4dBqDJQwEsRMFtqVxaBkKlRvK06B0Rts2sSaEV1I3tVL8EdHy/E6extVCHPtJWjbtak8gVJSn4N1ljJGxluB58dippbnEM5dw\u003d\u003d","editSource":"","editType":"template_edit","exportType":"template_export","infoStickerId":"7022557850920586533, 7009463229961293063, 7022555964616363278","launchMode":"launch","musicId":"7095543129075878669","os":"android","product":"lv","resourceTypeApplied":"","slowMotion":"none","stickerId":"7101490057411972382","templateId":"","transferMethod":"","videoEffectId":"","videoId":"ae232a53-0a22-4013-a9a8-c790af13b434","videoParams":{"st":7,"ef":0,"be":0,"tx":1,"mu":1,"ft":8,"te":0,"re":0,"ma":0,"v":0,"me":0,"vs":0,"sp":8}},"source_type":"douyin_beauty_me"}
2209-23 19:58:42.558 3276 3276 V TAG_FFMPEG: bitRate : 6000000
2309-23 19:58:42.558 3276 3276 V TAG_FFMPEG:
2409-23 19:58:42.558 3276 3276 V TAG_FFMPEG: copyright : 7ff2e268cd3c4d27b8546a7de2cb3000
2509-23 19:58:42.558 3276 3276 V TAG_FFMPEG: maxrate : 30000000
2609-23 19:58:42.558 3276 3276 V TAG_FFMPEG:
2709-23 19:58:42.558 3276 3276 V TAG_FFMPEG: te_is_reencode : 1
2809-23 19:58:42.558 3276 3276 V TAG_FFMPEG:
2909-23 19:58:42.558 3276 3276 V TAG_FFMPEG: encoder : bytevehwavc
3009-23 19:58:42.558 3276 3276 V TAG_FFMPEG: 视频流信息(video):
3109-23 19:58:42.558 3276 3276 V TAG_FFMPEG: Stream #0
3209-23 19:58:42.558 3276 3276 V TAG_FFMPEG: 总帧数 : 754
3309-23 19:58:42.558 3276 3276 V TAG_FFMPEG: 编码方式 : h264
3409-23 19:58:42.558 3276 3276 V TAG_FFMPEG: Codec Profile : (null)
3509-23 19:58:42.558 3276 3276 V TAG_FFMPEG: Codec FourCC : avc1
3609-23 19:58:42.558 3276 3276 V TAG_FFMPEG: 显示编码格式(color space) : yuv420p
3709-23 19:58:42.558 3276 3276 V TAG_FFMPEG: 宽 : 960 pixels,高 : 720 pixels
3809-23 19:58:42.558 3276 3276 V TAG_FFMPEG: simple_aspect_ratio(SAR) : 0 : 1
3909-23 19:58:42.558 3276 3276 V TAG_FFMPEG: display_aspect_ratio(DAR) : 0 : 1
4009-23 19:58:42.558 3276 3276 V TAG_FFMPEG: 最低帧率 : 25.000000 fps
4109-23 19:58:42.558 3276 3276 V TAG_FFMPEG: 平均帧率 : 25.000000 fps
4209-23 19:58:42.558 3276 3276 V TAG_FFMPEG: 每个像素点的比特数 : 8 bits
4309-23 19:58:42.558 3276 3276 V TAG_FFMPEG: 每个像素点编码比特数 : 24 bits
4409-23 19:58:42.558 3276 3276 V TAG_FFMPEG: 视频流比特率 : 5480.173000 kbps
4509-23 19:58:42.558 3276 3276 V TAG_FFMPEG: 基准时间 : 1 / 1000000 = 0.000001
4609-23 19:58:42.558 3276 3276 V TAG_FFMPEG: 视频流时长 : 30160.000000 ms
4709-23 19:58:42.558 3276 3276 V TAG_FFMPEG: 帧率(tbr) : 25.000000
4809-23 19:58:42.558 3276 3276 V TAG_FFMPEG: 文件层的时间精度(tbn) : 1000000.000000
4909-23 19:58:42.558 3276 3276 V TAG_FFMPEG: 视频层的时间精度(tbc) : 2000000.000000
5009-23 19:58:42.558 3276 3276 V TAG_FFMPEG: 视频流大小(Bytes) : 19.70 MB
5109-23 19:58:42.558 3276 3276 V TAG_FFMPEG: metadata:
5209-23 19:58:42.558 3276 3276 V TAG_FFMPEG: language : und
5309-23 19:58:42.558 3276 3276 V TAG_FFMPEG: handler_name : VideoHandler
5409-23 19:58:42.558 3276 3276 V TAG_FFMPEG: 音频流信息(audio):
5509-23 19:58:42.558 3276 3276 V TAG_FFMPEG: Stream #1
5609-23 19:58:42.558 3276 3276 V TAG_FFMPEG: 音频时长 : 30162.993197 ms
5709-23 19:58:42.558 3276 3276 V TAG_FFMPEG: 编码格式 aac ((null),mp4a)
5809-23 19:58:42.558 3276 3276 V TAG_FFMPEG: 音频采样率 : 44100 Hz
5909-23 19:58:42.558 3276 3276 V TAG_FFMPEG: 音频声道数 : 2
6009-23 19:58:42.558 3276 3276 V TAG_FFMPEG: 音频流比特率 : 128.000000 kbps
6109-23 19:58:42.558 3276 3276 V TAG_FFMPEG: 音频流大小(Bytes) : 471.30 KB