microshow / RxFFmpeg

🔥💥RxFFmpeg 是基于 ( FFmpeg 4.0 + X264 + mp3lame + fdk-aac + opencore-amr + openssl ) 编译的适用于 Android 平台的音视频编辑、视频剪辑的快速处理框架,包含以下功能:视频拼接,转码,压缩,裁剪,片头片尾,分离音视频,变速,添加静态贴纸和gif动态贴纸,添加字幕,添加滤镜,添加背景音乐,加速减速视频,倒放音视频,音频裁剪,变声,混音,图片合成视频,视频解码图片,抖音首页,视频播放器及支持 OpenSSL https 等主流特色功能

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

最新版本4.9.0 拼接2个.mp3的音频文件(试了很多文件),最终文件时长是两个音频的长度,但内容只有第一个音频的内容

fishforest opened this issue · comments

拼接代码:

        var file1 = File(activity?.getExternalFilesDir(null), "lili.mp3")
        var file2 = File(activity?.getExternalFilesDir(null), "hh.mp3")
        var sb = StringBuilder()
        sb.append(file1.absoluteFile)
        sb.append("|")
        sb.append(file2.absoluteFile)
        var targetPath = File(activity?.getExternalFilesDir(null), "target.mp3")

        var list = RxFFmpegCommandList().apply {
            append("-i")
            append("concat:$sb")
            append("-acodec")
            append("copy")
            append("${targetPath.absolutePath}")
        }.build()

拼接的命令为:

image

调用拼接方法

        RxFFmpegInvoke.getInstance().runCommand(list, object : RxFFmpegInvoke.IFFmpegListener {
            override fun onFinish() {
                println("rx finish")
            }

            override fun onProgress(progress: Int, progressTime: Long) {
                println("rx onProgress:$progress")
            }

            override fun onCancel() {
                println("rx onCancel")
            }

            override fun onError(message: String?) {
                println("rx error:$message")
            }

        })

回调打印了finish,没有报错误。

完整日志:

2022-11-30 00:36:13.289 15461-15461/com.fish.perform I/TAG_FFMPEG: ffmpeg version 4.0
2022-11-30 00:36:13.289 15461-15461/com.fish.perform I/TAG_FFMPEG: Copyright (c) 2000-2018 the FFmpeg developers
2022-11-30 00:36:13.289 15461-15461/com.fish.perform I/TAG_FFMPEG: built with gcc 4.9 (GCC) 20140827 (prerelease)
2022-11-30 00:36:13.289 15461-15461/com.fish.perform I/TAG_FFMPEG: configuration: --prefix=/mnt/d/DevConfig/ffmpeg/4.0/build/build_script/lib/ffmpeg-lite/x86 --enable-neon --enable-hwaccels --enable-openssl --enable-nonfree --enable-gpl --disable-x86asm --disable-asm --disable-shared --enable-static --cross-prefix=/mnt/d/DevConfig/ffmpeg/ndk/android-ndk-r10e/toolchains/x86-4.9/prebuilt/linux-x86_64/bin/i686-linux-android- --target-os=android --arch=x86 --cpu=x86 --cc=/mnt/d/DevConfig/ffmpeg/ndk/android-ndk-r10e/toolchains/x86-4.9/prebuilt/linux-x86_64/bin/i686-linux-android-gcc --nm=/mnt/d/DevConfig/ffmpeg/ndk/android-ndk-r10e/toolchains/x86-4.9/prebuilt/linux-x86_64/bin/i686-linux-android-nm --enable-cross-compile --sysroot=/mnt/d/DevConfig/ffmpeg/ndk/android-ndk-r10e/platforms/android-16/arch-x86 --disable-encoders --enable-libx264 --enable-libmp3lame --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfdk-aac --enable-encoder='libx264,libmp3lame,libfdk_aac,aac,mpeg4,pcm_s16le,pcm_s16be,png,gif,mjpeg,bmp,pcm_u8,libopencore_amrnb' --disabl
2022-11-30 00:36:13.289 15461-15461/com.fish.perform I/TAG_FFMPEG: WARNING: library configuration mismatch
2022-11-30 00:36:13.289 15461-15461/com.fish.perform I/TAG_FFMPEG: avutil configuration: --prefix=/mnt/d/DevConfig/ffmpeg/4.0/build/build_script/lib/ffmpeg/armv8-a --enable-neon --enable-hwaccels --enable-openssl --enable-nonfree --enable-gpl --enable-x86asm --enable-asm --disable-shared --enable-static --cross-prefix=/mnt/d/DevConfig/ffmpeg/ndk/android-ndk-r10e/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android- --target-os=android --arch=arm64 --cpu=armv8-a --cc=/mnt/d/DevConfig/ffmpeg/ndk/android-ndk-r10e/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android-gcc --nm=/mnt/d/DevConfig/ffmpeg/ndk/android-ndk-r10e/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android-nm --enable-cross-compile --sysroot=/mnt/d/DevConfig/ffmpeg/ndk/android-ndk-r10e/platforms/android-21/arch-arm64 --enable-libx264 --enable-encoder=libx264 --enable-libmp3lame --enable-encoder=libmp3lame --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfdk-aac --enable-encoder
2022-11-30 00:36:13.289 15461-15461/com.fish.perform I/TAG_FFMPEG: avcodec configuration: --prefix=/mnt/d/DevConfig/ffmpeg/4.0/build/build_script/lib/ffmpeg/armv8-a --enable-neon --enable-hwaccels --enable-openssl --enable-nonfree --enable-gpl --enable-x86asm --enable-asm --disable-shared --enable-static --cross-prefix=/mnt/d/DevConfig/ffmpeg/ndk/android-ndk-r10e/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android- --target-os=android --arch=arm64 --cpu=armv8-a --cc=/mnt/d/DevConfig/ffmpeg/ndk/android-ndk-r10e/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android-gcc --nm=/mnt/d/DevConfig/ffmpeg/ndk/android-ndk-r10e/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android-nm --enable-cross-compile --sysroot=/mnt/d/DevConfig/ffmpeg/ndk/android-ndk-r10e/platforms/android-21/arch-arm64 --enable-libx264 --enable-encoder=libx264 --enable-libmp3lame --enable-encoder=libmp3lame --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfdk-aac --enable-encoder
2022-11-30 00:36:13.289 15461-15461/com.fish.perform I/TAG_FFMPEG: avformat configuration: --prefix=/mnt/d/DevConfig/ffmpeg/4.0/build/build_script/lib/ffmpeg/armv8-a --enable-neon --enable-hwaccels --enable-openssl --enable-nonfree --enable-gpl --enable-x86asm --enable-asm --disable-shared --enable-static --cross-prefix=/mnt/d/DevConfig/ffmpeg/ndk/android-ndk-r10e/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android- --target-os=android --arch=arm64 --cpu=armv8-a --cc=/mnt/d/DevConfig/ffmpeg/ndk/android-ndk-r10e/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android-gcc --nm=/mnt/d/DevConfig/ffmpeg/ndk/android-ndk-r10e/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android-nm --enable-cross-compile --sysroot=/mnt/d/DevConfig/ffmpeg/ndk/android-ndk-r10e/platforms/android-21/arch-arm64 --enable-libx264 --enable-encoder=libx264 --enable-libmp3lame --enable-encoder=libmp3lame --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfdk-aac --enable-encoder
2022-11-30 00:36:13.289 15461-15461/com.fish.perform I/TAG_FFMPEG: avdevice configuration: --prefix=/mnt/d/DevConfig/ffmpeg/4.0/build/build_script/lib/ffmpeg/armv8-a --enable-neon --enable-hwaccels --enable-openssl --enable-nonfree --enable-gpl --enable-x86asm --enable-asm --disable-shared --enable-static --cross-prefix=/mnt/d/DevConfig/ffmpeg/ndk/android-ndk-r10e/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android- --target-os=android --arch=arm64 --cpu=armv8-a --cc=/mnt/d/DevConfig/ffmpeg/ndk/android-ndk-r10e/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android-gcc --nm=/mnt/d/DevConfig/ffmpeg/ndk/android-ndk-r10e/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android-nm --enable-cross-compile --sysroot=/mnt/d/DevConfig/ffmpeg/ndk/android-ndk-r10e/platforms/android-21/arch-arm64 --enable-libx264 --enable-encoder=libx264 --enable-libmp3lame --enable-encoder=libmp3lame --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfdk-aac --enable-encoder
2022-11-30 00:36:13.289 15461-15461/com.fish.perform I/TAG_FFMPEG: avfilter configuration: --prefix=/mnt/d/DevConfig/ffmpeg/4.0/build/build_script/lib/ffmpeg/armv8-a --enable-neon --enable-hwaccels --enable-openssl --enable-nonfree --enable-gpl --enable-x86asm --enable-asm --disable-shared --enable-static --cross-prefix=/mnt/d/DevConfig/ffmpeg/ndk/android-ndk-r10e/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android- --target-os=android --arch=arm64 --cpu=armv8-a --cc=/mnt/d/DevConfig/ffmpeg/ndk/android-ndk-r10e/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android-gcc --nm=/mnt/d/DevConfig/ffmpeg/ndk/android-ndk-r10e/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android-nm --enable-cross-compile --sysroot=/mnt/d/DevConfig/ffmpeg/ndk/android-ndk-r10e/platforms/android-21/arch-arm64 --enable-libx264 --enable-encoder=libx264 --enable-libmp3lame --enable-encoder=libmp3lame --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfdk-aac --enable-encoder
2022-11-30 00:36:13.289 15461-15461/com.fish.perform I/TAG_FFMPEG: swscale configuration: --prefix=/mnt/d/DevConfig/ffmpeg/4.0/build/build_script/lib/ffmpeg/armv8-a --enable-neon --enable-hwaccels --enable-openssl --enable-nonfree --enable-gpl --enable-x86asm --enable-asm --disable-shared --enable-static --cross-prefix=/mnt/d/DevConfig/ffmpeg/ndk/android-ndk-r10e/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android- --target-os=android --arch=arm64 --cpu=armv8-a --cc=/mnt/d/DevConfig/ffmpeg/ndk/android-ndk-r10e/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android-gcc --nm=/mnt/d/DevConfig/ffmpeg/ndk/android-ndk-r10e/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android-nm --enable-cross-compile --sysroot=/mnt/d/DevConfig/ffmpeg/ndk/android-ndk-r10e/platforms/android-21/arch-arm64 --enable-libx264 --enable-encoder=libx264 --enable-libmp3lame --enable-encoder=libmp3lame --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfdk-aac --enable-encoder
2022-11-30 00:36:13.289 15461-15461/com.fish.perform I/TAG_FFMPEG: swresample configuration: --prefix=/mnt/d/DevConfig/ffmpeg/4.0/build/build_script/lib/ffmpeg/armv8-a --enable-neon --enable-hwaccels --enable-openssl --enable-nonfree --enable-gpl --enable-x86asm --enable-asm --disable-shared --enable-static --cross-prefix=/mnt/d/DevConfig/ffmpeg/ndk/android-ndk-r10e/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android- --target-os=android --arch=arm64 --cpu=armv8-a --cc=/mnt/d/DevConfig/ffmpeg/ndk/android-ndk-r10e/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android-gcc --nm=/mnt/d/DevConfig/ffmpeg/ndk/android-ndk-r10e/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android-nm --enable-cross-compile --sysroot=/mnt/d/DevConfig/ffmpeg/ndk/android-ndk-r10e/platforms/android-21/arch-arm64 --enable-libx264 --enable-encoder=libx264 --enable-libmp3lame --enable-encoder=libmp3lame --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfdk-aac --enable-encoder
2022-11-30 00:36:13.289 15461-15461/com.fish.perform I/TAG_FFMPEG: postproc configuration: --prefix=/mnt/d/DevConfig/ffmpeg/4.0/build/build_script/lib/ffmpeg/armv8-a --enable-neon --enable-hwaccels --enable-openssl --enable-nonfree --enable-gpl --enable-x86asm --enable-asm --disable-shared --enable-static --cross-prefix=/mnt/d/DevConfig/ffmpeg/ndk/android-ndk-r10e/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android- --target-os=android --arch=arm64 --cpu=armv8-a --cc=/mnt/d/DevConfig/ffmpeg/ndk/android-ndk-r10e/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android-gcc --nm=/mnt/d/DevConfig/ffmpeg/ndk/android-ndk-r10e/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android-nm --enable-cross-compile --sysroot=/mnt/d/DevConfig/ffmpeg/ndk/android-ndk-r10e/platforms/android-21/arch-arm64 --enable-libx264 --enable-encoder=libx264 --enable-libmp3lame --enable-encoder=libmp3lame --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfdk-aac --enable-encoder
2022-11-30 00:36:13.289 15461-15461/com.fish.perform I/TAG_FFMPEG: libavutil 56. 14.100 / 56. 14.100
2022-11-30 00:36:13.289 15461-15461/com.fish.perform I/TAG_FFMPEG: libavcodec 58. 18.100 / 58. 18.100
2022-11-30 00:36:13.289 15461-15461/com.fish.perform I/TAG_FFMPEG: libavformat 58. 12.100 / 58. 12.100
2022-11-30 00:36:13.289 15461-15461/com.fish.perform I/TAG_FFMPEG: libavdevice 58. 3.100 / 58. 3.100
2022-11-30 00:36:13.289 15461-15461/com.fish.perform I/TAG_FFMPEG: libavfilter 7. 16.100 / 7. 16.100
2022-11-30 00:36:13.289 15461-15461/com.fish.perform I/TAG_FFMPEG: libswscale 5. 1.100 / 5. 1.100
2022-11-30 00:36:13.289 15461-15461/com.fish.perform I/TAG_FFMPEG: libswresample 3. 1.100 / 3. 1.100
2022-11-30 00:36:13.289 15461-15461/com.fish.perform I/TAG_FFMPEG: libpostproc 55. 1.100 / 55. 1.100
2022-11-30 00:36:13.289 15461-15461/com.fish.perform D/TAG_FFMPEG: Splitting the commandline.
2022-11-30 00:36:13.289 15461-15461/com.fish.perform D/TAG_FFMPEG: Reading option '-y' ...
2022-11-30 00:36:13.289 15461-15461/com.fish.perform D/TAG_FFMPEG: matched as option 'y' (overwrite output files) with argument '1'.
2022-11-30 00:36:13.289 15461-15461/com.fish.perform D/TAG_FFMPEG: Reading option '-i' ...
2022-11-30 00:36:13.289 15461-15461/com.fish.perform D/TAG_FFMPEG: matched as input url with argument 'concat:/storage/emulated/0/Android/data/com.fish.perform/files/lili.mp3|/storage/emulated/0/Android/data/com.fish.perform/files/hh.mp3'.
2022-11-30 00:36:13.289 15461-15461/com.fish.perform D/TAG_FFMPEG: Reading option '-acodec' ...
2022-11-30 00:36:13.289 15461-15461/com.fish.perform D/TAG_FFMPEG: matched as option 'acodec' (force audio codec ('copy' to copy stream)) with argument 'copy'.
2022-11-30 00:36:13.289 15461-15461/com.fish.perform D/TAG_FFMPEG: Reading option '/storage/emulated/0/Android/data/com.fish.perform/files/target.mp3' ...
2022-11-30 00:36:13.289 15461-15461/com.fish.perform D/TAG_FFMPEG: matched as output url.
2022-11-30 00:36:13.289 15461-15461/com.fish.perform D/TAG_FFMPEG: Finished splitting the commandline.
2022-11-30 00:36:13.289 15461-15461/com.fish.perform D/TAG_FFMPEG: Parsing a group of options: global .
2022-11-30 00:36:13.289 15461-15461/com.fish.perform D/TAG_FFMPEG: Applying option y (overwrite output files) with argument 1.
2022-11-30 00:36:13.289 15461-15461/com.fish.perform D/TAG_FFMPEG: Successfully parsed a group of options.
2022-11-30 00:36:13.289 15461-15461/com.fish.perform D/TAG_FFMPEG: Parsing a group of options: input url concat:/storage/emulated/0/Android/data/com.fish.perform/files/lili.mp3|/storage/emulated/0/Android/data/com.fish.perform/files/hh.mp3.
2022-11-30 00:36:13.289 15461-15461/com.fish.perform D/TAG_FFMPEG: Successfully parsed a group of options.
2022-11-30 00:36:13.289 15461-15461/com.fish.perform D/TAG_FFMPEG: Opening an input file: concat:/storage/emulated/0/Android/data/com.fish.perform/files/lili.mp3|/storage/emulated/0/Android/data/com.fish.perform/files/hh.mp3.
2022-11-30 00:36:13.290 15461-15461/com.fish.perform D/TAG_FFMPEG: Opening 'concat:/storage/emulated/0/Android/data/com.fish.perform/files/lili.mp3|/storage/emulated/0/Android/data/com.fish.perform/files/hh.mp3' for reading
2022-11-30 00:36:13.290 15461-15461/com.fish.perform D/TAG_FFMPEG: Setting default whitelist 'concat,file,subfile'
2022-11-30 00:36:13.291 15461-15461/com.fish.perform D/TAG_FFMPEG: Format mp3 probed with size=2048 and score=51
2022-11-30 00:36:13.292 15461-15461/com.fish.perform V/TAG_FFMPEG: Skipping 0 bytes of junk at 0.
2022-11-30 00:36:13.292 15461-15461/com.fish.perform D/TAG_FFMPEG: Before avformat_find_stream_info() pos: 0 bytes read:65664 seeks:2 nb_streams:1
2022-11-30 00:36:13.294 15461-15461/com.fish.perform D/TAG_FFMPEG: All info found
2022-11-30 00:36:13.294 15461-15461/com.fish.perform W/TAG_FFMPEG: Estimating duration from bitrate, this may be inaccurate
2022-11-30 00:36:13.294 15461-15461/com.fish.perform D/TAG_FFMPEG: After avformat_find_stream_info() pos: 9216 bytes read:65664 seeks:2 frames:50
2022-11-30 00:36:13.294 15461-15461/com.fish.perform I/TAG_FFMPEG: Input #0, mp3, from 'concat:/storage/emulated/0/Android/data/com.fish.perform/files/lili.mp3|/storage/emulated/0/Android/data/com.fish.perform/files/hh.mp3':
2022-11-30 00:36:13.294 15461-15461/com.fish.perform I/TAG_FFMPEG: Duration:
2022-11-30 00:36:13.294 15461-15461/com.fish.perform I/TAG_FFMPEG: 00:00:07.84
2022-11-30 00:36:13.294 15461-15461/com.fish.perform I/TAG_FFMPEG: , start:
2022-11-30 00:36:13.294 15461-15461/com.fish.perform I/TAG_FFMPEG: 0.000000
2022-11-30 00:36:13.294 15461-15461/com.fish.perform I/TAG_FFMPEG: , bitrate:
2022-11-30 00:36:13.294 15461-15461/com.fish.perform I/TAG_FFMPEG: 56 kb/s
2022-11-30 00:36:13.294 15461-15461/com.fish.perform I/TAG_FFMPEG: Stream #0:0
2022-11-30 00:36:13.294 15461-15461/com.fish.perform D/TAG_FFMPEG: , 50, 1/14112000
2022-11-30 00:36:13.294 15461-15461/com.fish.perform I/TAG_FFMPEG: : Audio: mp3, 24000 Hz, mono, fltp, 56 kb/s
2022-11-30 00:36:13.294 15461-15461/com.fish.perform D/TAG_FFMPEG: Successfully opened the file.
2022-11-30 00:36:13.294 15461-15461/com.fish.perform D/TAG_FFMPEG: Parsing a group of options: output url /storage/emulated/0/Android/data/com.fish.perform/files/target.mp3.
2022-11-30 00:36:13.294 15461-15461/com.fish.perform D/TAG_FFMPEG: Applying option acodec (force audio codec ('copy' to copy stream)) with argument copy.
2022-11-30 00:36:13.294 15461-15461/com.fish.perform D/TAG_FFMPEG: Successfully parsed a group of options.
2022-11-30 00:36:13.294 15461-15461/com.fish.perform D/TAG_FFMPEG: Opening an output file: /storage/emulated/0/Android/data/com.fish.perform/files/target.mp3.
2022-11-30 00:36:13.294 15461-15461/com.fish.perform D/TAG_FFMPEG: Setting default whitelist 'file,crypto'
2022-11-30 00:36:13.295 15461-15461/com.fish.perform D/TAG_FFMPEG: Successfully opened the file.
2022-11-30 00:36:13.295 15461-15461/com.fish.perform I/TAG_FFMPEG: Output #0, mp3, to '/storage/emulated/0/Android/data/com.fish.perform/files/target.mp3':
2022-11-30 00:36:13.295 15461-15461/com.fish.perform I/TAG_FFMPEG: Metadata:
2022-11-30 00:36:13.295 15461-15461/com.fish.perform I/TAG_FFMPEG: TSSE :
2022-11-30 00:36:13.295 15461-15461/com.fish.perform I/TAG_FFMPEG: Lavf58.12.100
2022-11-30 00:36:13.295 15461-15461/com.fish.perform I/TAG_FFMPEG: Stream #0:0
2022-11-30 00:36:13.295 15461-15461/com.fish.perform D/TAG_FFMPEG: , 0, 1/14112000
2022-11-30 00:36:13.295 15461-15461/com.fish.perform I/TAG_FFMPEG: : Audio: mp3, 24000 Hz, mono, fltp, 56 kb/s
2022-11-30 00:36:13.295 15461-15461/com.fish.perform I/TAG_FFMPEG: Stream mapping:
2022-11-30 00:36:13.295 15461-15461/com.fish.perform I/TAG_FFMPEG: Stream #0:0 -> #0:0
2022-11-30 00:36:13.295 15461-15461/com.fish.perform I/TAG_FFMPEG: (copy)
2022-11-30 00:36:13.295 15461-15461/com.fish.perform I/TAG_FFMPEG: Press [q] to stop, [?] for help
2022-11-30 00:36:13.295 15461-15461/com.fish.perform D/TAG_FFMPEG: cur_dts is invalid (this is harmless if it occurs once at the start per stream)
2022-11-30 00:36:13.298 15461-15461/com.fish.perform V/TAG_FFMPEG: No more output streams to write to, finishing.
2022-11-30 00:36:13.298 15461-15461/com.fish.perform I/System.out: rx onProgress:99
2022-11-30 00:36:13.298 15461-15461/com.fish.perform I/TAG_FFMPEG: size= 54kB time=00:00:07.76 bitrate= 56.8kbits/s speed=2.75e+03x
2022-11-30 00:36:13.298 15461-15461/com.fish.perform I/TAG_FFMPEG: video:0kB audio:54kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead:
2022-11-30 00:36:13.298 15461-15461/com.fish.perform I/TAG_FFMPEG: 0.432072%
2022-11-30 00:36:13.298 15461-15461/com.fish.perform V/TAG_FFMPEG: Input file #0 (concat:/storage/emulated/0/Android/data/com.fish.perform/files/lili.mp3|/storage/emulated/0/Android/data/com.fish.perform/files/hh.mp3):
2022-11-30 00:36:13.298 15461-15461/com.fish.perform V/TAG_FFMPEG: Input stream #0:0 (audio):
2022-11-30 00:36:13.298 15461-15461/com.fish.perform V/TAG_FFMPEG: 278 packets read (54852 bytes);
2022-11-30 00:36:13.298 15461-15461/com.fish.perform V/TAG_FFMPEG: Total: 278 packets (54852 bytes) demuxed
2022-11-30 00:36:13.298 15461-15461/com.fish.perform V/TAG_FFMPEG: Output file #0 (/storage/emulated/0/Android/data/com.fish.perform/files/target.mp3):
2022-11-30 00:36:13.298 15461-15461/com.fish.perform V/TAG_FFMPEG: Output stream #0:0 (audio):
2022-11-30 00:36:13.298 15461-15461/com.fish.perform V/TAG_FFMPEG: 278 packets muxed (54852 bytes);
2022-11-30 00:36:13.298 15461-15461/com.fish.perform V/TAG_FFMPEG: Total: 278 packets (54852 bytes) muxed
2022-11-30 00:36:13.298 15461-15461/com.fish.perform D/TAG_FFMPEG: 0 frames successfully decoded, 0 decoding errors
2022-11-30 00:36:13.298 15461-15461/com.fish.perform D/TAG_FFMPEG: Statistics: 1 seeks, 1 writeouts
2022-11-30 00:36:13.298 15461-15461/com.fish.perform D/TAG_FFMPEG: Statistics: 87748 bytes read, 2 seeks
2022-11-30 00:36:13.298 15461-15461/com.fish.perform I/System.out: rx finish

对比实验

试了不同的文件,不同的手机,都无法成功。
请大佬帮忙解答!!!