mengzhidaren / FFmpegCmdSdk

ffmpeg and ffprobe android command line tools
98 stars 21 forks source link

Unable to find a suitable output format for '/data/user/0/com.jonsontu.song.andaclud/cache/RecordingTemp/CUT-1563099848009.mp3' #8

Closed L-X-J closed 5 years ago

L-X-J commented 5 years ago

大佬我直接implementation 'com.yyl.ffmpeg:ffmpeg_cmd:4.1.3'在项目里使用,出来了这个错,我需要重新编译么?

07-14 18:24:08.015 30085-30085/com.jonsontu.song.andaclud I/FFMPEG: [ffmpeg, -i, /data/user/0/com.jonsontu.song.andaclud/cache/Accompany/854c15a2cc21bff1f098562c965f9af5.mp3, -acodec, copy, -ss, 0, -t, 12, /data/user/0/com.jonsontu.song.andaclud/cache/RecordingTemp/CUT-1563099848009.mp3]
07-14 18:24:08.016 30085-30085/com.jonsontu.song.andaclud E/FFmpeg_Start: onStart
07-14 18:24:08.018 30085-30734/com.jonsontu.song.andaclud I/FFMPEG: AttachCurrentThread open=0  tid=-1643902672
07-14 18:24:08.018 30085-30734/com.jonsontu.song.andaclud I/FFMPEG: ffmpeg 命令开始
07-14 18:24:08.018 30085-30734/com.jonsontu.song.andaclud E/FFmpeg_log: ffmpeg version 4.1.3
07-14 18:24:08.018 30085-30734/com.jonsontu.song.andaclud E/FFmpeg_log:  Copyright (c) 2000-2019 the FFmpeg developers
07-14 18:24:08.018 30085-30734/com.jonsontu.song.andaclud E/FFmpeg_log:   built with gcc 4.9.x (GCC) 20150123 (prerelease)
07-14 18:24:08.019 30085-30734/com.jonsontu.song.andaclud E/FFmpeg_log:   configuration: --logfile=conflog.txt --prefix=/Users/long/Desktop/FFmpeg/ffmpeg4.1.3/build/ffmpeg/android/arm64 --target-os=android --cpu=armv8-a --enable-pic --enable-small --enable-cross-compile --extra-libs=-lgcc --arch=aarch64 --cc=/Users/long/Desktop/YYL/android-ndk-r14b/toolchains/aarch64-linux-android-4.9/prebuilt/darwin-x86_64/bin/aarch64-linux-android-gcc --cross-prefix=/Users/long/Desktop/YYL/android-ndk-r14b/toolchains/aarch64-linux-android-4.9/prebuilt/darwin-x86_64/bin/aarch64-linux-android- --nm=/Users/long/Desktop/YYL/android-ndk-r14b/toolchains/aarch64-linux-android-4.9/prebuilt/darwin-x86_64/bin/aarch64-linux-android-nm --extra-cflags=-I/Users/long/Desktop/FFmpeg/ffmpeg4.1.3/build/x264/android/arm64/include --extra-ldflags=-L/Users/long/Desktop/FFmpeg/ffmpeg4.1.3/build/x264/android/arm64/lib --sysroot=/Users/long/Desktop/YYL/android-ndk-r14b/platforms/android-21/arch-arm64/ --disable-stripping --enable-zlib --enable-static --enable-pthreads --enable-network --enable-swscale --enable-hwaccels --enable-avfilter --enable-asm --enable-inline-asm --enable-version3 --disable-doc --disable-ffplay --disable-ffmpeg --disable-ffprobe --disable-protocol=udp --disable-protocol=udplite --disable-muxers --enable-muxer=mp4 --enable-muxer=h264 --enable-muxer=image2 --enable-muxer=mjpeg --disable-encoders --enable-encoder=aac --enable-encoder=libx264 --enable-encoder=png --enable-encoder=mjpeg --enable-gpl --enable-libx264 --enable-neon --enable-thumb --extra-cflags= --extra-ldflags='-lx264 -Wl,-rpath-link=/Users/long/Desktop/YYL/android-ndk-r14b/platforms/android-21/arch-arm64//usr/lib -L/Users/long/Desktop/YYL/android-ndk-r14b/platforms/android-21/arch-arm64//usr/lib -nostdlib -lc -lm -ldl -llog'
07-14 18:24:08.019 30085-30734/com.jonsontu.song.andaclud E/FFmpeg_log: build date 2019.7.5 more info please see my github 
07-14 18:24:08.020 30085-30734/com.jonsontu.song.andaclud E/FFmpeg_log: https://github.com/mengzhidaren
07-14 18:24:08.020 30085-30734/com.jonsontu.song.andaclud E/FFmpeg_log:   WARNING: library configuration mismatch
07-14 18:24:08.020 30085-30734/com.jonsontu.song.andaclud E/FFmpeg_log:   avutil      configuration: --prefix=/Users/long/Desktop/FFmpeg/ffmpeg4.1.3/build/ffmpeg/android/armeabi-v7a --target-os=linux --enable-pic --enable-small --enable-cross-compile --extra-libs=-lgcc --arch=arm --cpu=cortex-a8 --enable-runtime-cpudetect --cc=/Users/long/Desktop/YYL/android-ndk-r14b/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc --cross-prefix=/Users/long/Desktop/YYL/android-ndk-r14b/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi- --nm=/Users/long/Desktop/YYL/android-ndk-r14b/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-nm --extra-cflags=-I/Users/long/Desktop/FFmpeg/ffmpeg4.1.3/build/x264/android/arm/include --extra-ldflags=-L/Users/long/Desktop/FFmpeg/ffmpeg4.1.3/build/x264/android/arm/lib --sysroot=/Users/long/Desktop/YYL/android-ndk-r14b/platforms/android-16/arch-arm/ --disable-stripping --enable-zlib --enable-static --enable-pthreads --enable-network --enable-swscale --enable-hwaccels --enable-avfilter --enable-asm --enable-inline-asm --enable-version3 --disable-doc --disable-ffplay --disable-ffmpeg --disable-ffprobe --disable-protocol=udp --disable-protocol=udplite --disable-muxers --enable-muxer=mp4 --enable-muxer=h264 --enable-muxer=image2 --enable-muxer=mjpeg --disable-encoders --enable-encoder=aac --enable-encoder=libx264 --enable-encoder=png --enable-encoder=mjpeg --enable-gpl --enable-libx264 --enable-neon --enable-thumb --extra-cflags='-O3 -Wall -pipe -std=c99 -ffast-math -fstrict-aliasing -Werror=strict-aliasing -Wno-psabi -Wa,--noexecstack -DANDROID -DNDEBUG -march=armv7-a -mcpu=cortex-a8 -mfpu=vfpv3-d16 -mfloat-abi=softfp -mthumb' --extra-ldflags='-Wl,-rpath-link=/Users/long/Desktop/YYL/android-ndk-r14b/platforms/android-16/arch-arm//usr/lib -Wl,--fix-cortex-a8 -L/Users/long/Desktop/YYL/android-ndk-r14b/platforms/android-16/arch-arm//usr/lib -nostdlib -lc -lm -ldl -llog'
07-14 18:24:08.022 30085-30734/com.jonsontu.song.andaclud E/FFmpeg_log:   avcodec     configuration: --prefix=/Users/long/Desktop/FFmpeg/ffmpeg4.1.3/build/ffmpeg/android/armeabi-v7a --target-os=linux --enable-pic --enable-small --enable-cross-compile --extra-libs=-lgcc --arch=arm --cpu=cortex-a8 --enable-runtime-cpudetect --cc=/Users/long/Desktop/YYL/android-ndk-r14b/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc --cross-prefix=/Users/long/Desktop/YYL/android-ndk-r14b/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi- --nm=/Users/long/Desktop/YYL/android-ndk-r14b/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-nm --extra-cflags=-I/Users/long/Desktop/FFmpeg/ffmpeg4.1.3/build/x264/android/arm/include --extra-ldflags=-L/Users/long/Desktop/FFmpeg/ffmpeg4.1.3/build/x264/android/arm/lib --sysroot=/Users/long/Desktop/YYL/android-ndk-r14b/platforms/android-16/arch-arm/ --disable-stripping --enable-zlib --enable-static --enable-pthreads --enable-network --enable-swscale --enable-hwaccels --enable-avfilter --enable-asm --enable-inline-asm --enable-version3 --disable-doc --disable-ffplay --disable-ffmpeg --disable-ffprobe --disable-protocol=udp --disable-protocol=udplite --disable-muxers --enable-muxer=mp4 --enable-muxer=h264 --enable-muxer=image2 --enable-muxer=mjpeg --disable-encoders --enable-encoder=aac --enable-encoder=libx264 --enable-encoder=png --enable-encoder=mjpeg --enable-gpl --enable-libx264 --enable-neon --enable-thumb --extra-cflags='-O3 -Wall -pipe -std=c99 -ffast-math -fstrict-aliasing -Werror=strict-aliasing -Wno-psabi -Wa,--noexecstack -DANDROID -DNDEBUG -march=armv7-a -mcpu=cortex-a8 -mfpu=vfpv3-d16 -mfloat-abi=softfp -mthumb' --extra-ldflags='-Wl,-rpath-link=/Users/long/Desktop/YYL/android-ndk-r14b/platforms/android-16/arch-arm//usr/lib -Wl,--fix-cortex-a8 -L/Users/long/Desktop/YYL/android-ndk-r14b/platforms/android-16/arch-arm//usr/lib -nostdlib -lc -lm -ldl -llog'
07-14 18:24:08.022 30085-30734/com.jonsontu.song.andaclud E/FFmpeg_log:   avformat    configuration: --prefix=/Users/long/Desktop/FFmpeg/ffmpeg4.1.3/build/ffmpeg/android/armeabi-v7a --target-os=linux --enable-pic --enable-small --enable-cross-compile --extra-libs=-lgcc --arch=arm --cpu=cortex-a8 --enable-runtime-cpudetect --cc=/Users/long/Desktop/YYL/android-ndk-r14b/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc --cross-prefix=/Users/long/Desktop/YYL/android-ndk-r14b/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi- --nm=/Users/long/Desktop/YYL/android-ndk-r14b/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-nm --extra-cflags=-I/Users/long/Desktop/FFmpeg/ffmpeg4.1.3/build/x264/android/arm/include --extra-ldflags=-L/Users/long/Desktop/FFmpeg/ffmpeg4.1.3/build/x264/android/arm/lib --sysroot=/Users/long/Desktop/YYL/android-ndk-r14b/platforms/android-16/arch-arm/ --disable-stripping --enable-zlib --enable-static --enable-pthreads --enable-network --enable-swscale --enable-hwaccels --enable-avfilter --enable-asm --enable-inline-asm --enable-version3 --disable-doc --disable-ffplay --disable-ffmpeg --disable-ffprobe --disable-protocol=udp --disable-protocol=udplite --disable-muxers --enable-muxer=mp4 --enable-muxer=h264 --enable-muxer=image2 --enable-muxer=mjpeg --disable-encoders --enable-encoder=aac --enable-encoder=libx264 --enable-encoder=png --enable-encoder=mjpeg --enable-gpl --enable-libx264 --enable-neon --enable-thumb --extra-cflags='-O3 -Wall -pipe -std=c99 -ffast-math -fstrict-aliasing -Werror=strict-aliasing -Wno-psabi -Wa,--noexecstack -DANDROID -DNDEBUG -march=armv7-a -mcpu=cortex-a8 -mfpu=vfpv3-d16 -mfloat-abi=softfp -mthumb' --extra-ldflags='-Wl,-rpath-link=/Users/long/Desktop/YYL/android-ndk-r14b/platforms/android-16/arch-arm//usr/lib -Wl,--fix-cortex-a8 -L/Users/long/Desktop/YYL/android-ndk-r14b/platforms/android-16/arch-arm//usr/lib -nostdlib -lc -lm -ldl -llog'
07-14 18:24:08.022 30085-30734/com.jonsontu.song.andaclud E/FFmpeg_log:   avdevice    configuration: --prefix=/Users/long/Desktop/FFmpeg/ffmpeg4.1.3/build/ffmpeg/android/armeabi-v7a --target-os=linux --enable-pic --enable-small --enable-cross-compile --extra-libs=-lgcc --arch=arm --cpu=cortex-a8 --enable-runtime-cpudetect --cc=/Users/long/Desktop/YYL/android-ndk-r14b/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc --cross-prefix=/Users/long/Desktop/YYL/android-ndk-r14b/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi- --nm=/Users/long/Desktop/YYL/android-ndk-r14b/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-nm --extra-cflags=-I/Users/long/Desktop/FFmpeg/ffmpeg4.1.3/build/x264/android/arm/include --extra-ldflags=-L/Users/long/Desktop/FFmpeg/ffmpeg4.1.3/build/x264/android/arm/lib --sysroot=/Users/long/Desktop/YYL/android-ndk-r14b/platforms/android-16/arch-arm/ --disable-stripping --enable-zlib --enable-static --enable-pthreads --enable-network --enable-swscale --enable-hwaccels --enable-avfilter --enable-asm --enable-inline-asm --enable-version3 --disable-doc --disable-ffplay --disable-ffmpeg --disable-ffprobe --disable-protocol=udp --disable-protocol=udplite --disable-muxers --enable-muxer=mp4 --enable-muxer=h264 --enable-muxer=image2 --enable-muxer=mjpeg --disable-encoders --enable-encoder=aac --enable-encoder=libx264 --enable-encoder=png --enable-encoder=mjpeg --enable-gpl --enable-libx264 --enable-neon --enable-thumb --extra-cflags='-O3 -Wall -pipe -std=c99 -ffast-math -fstrict-aliasing -Werror=strict-aliasing -Wno-psabi -Wa,--noexecstack -DANDROID -DNDEBUG -march=armv7-a -mcpu=cortex-a8 -mfpu=vfpv3-d16 -mfloat-abi=softfp -mthumb' --extra-ldflags='-Wl,-rpath-link=/Users/long/Desktop/YYL/android-ndk-r14b/platforms/android-16/arch-arm//usr/lib -Wl,--fix-cortex-a8 -L/Users/long/Desktop/YYL/android-ndk-r14b/platforms/android-16/arch-arm//usr/lib -nostdlib -lc -lm -ldl -llog'
07-14 18:24:08.023 30085-30734/com.jonsontu.song.andaclud E/FFmpeg_log:   avfilter    configuration: --prefix=/Users/long/Desktop/FFmpeg/ffmpeg4.1.3/build/ffmpeg/android/armeabi-v7a --target-os=linux --enable-pic --enable-small --enable-cross-compile --extra-libs=-lgcc --arch=arm --cpu=cortex-a8 --enable-runtime-cpudetect --cc=/Users/long/Desktop/YYL/android-ndk-r14b/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc --cross-prefix=/Users/long/Desktop/YYL/android-ndk-r14b/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi- --nm=/Users/long/Desktop/YYL/android-ndk-r14b/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-nm --extra-cflags=-I/Users/long/Desktop/FFmpeg/ffmpeg4.1.3/build/x264/android/arm/include --extra-ldflags=-L/Users/long/Desktop/FFmpeg/ffmpeg4.1.3/build/x264/android/arm/lib --sysroot=/Users/long/Desktop/YYL/android-ndk-r14b/platforms/android-16/arch-arm/ --disable-stripping --enable-zlib --enable-static --enable-pthreads --enable-network --enable-swscale --enable-hwaccels --enable-avfilter --enable-asm --enable-inline-asm --enable-version3 --disable-doc --disable-ffplay --disable-ffmpeg --disable-ffprobe --disable-protocol=udp --disable-protocol=udplite --disable-muxers --enable-muxer=mp4 --enable-muxer=h264 --enable-muxer=image2 --enable-muxer=mjpeg --disable-encoders --enable-encoder=aac --enable-encoder=libx264 --enable-encoder=png --enable-encoder=mjpeg --enable-gpl --enable-libx264 --enable-neon --enable-thumb --extra-cflags='-O3 -Wall -pipe -std=c99 -ffast-math -fstrict-aliasing -Werror=strict-aliasing -Wno-psabi -Wa,--noexecstack -DANDROID -DNDEBUG -march=armv7-a -mcpu=cortex-a8 -mfpu=vfpv3-d16 -mfloat-abi=softfp -mthumb' --extra-ldflags='-Wl,-rpath-link=/Users/long/Desktop/YYL/android-ndk-r14b/platforms/android-16/arch-arm//usr/lib -Wl,--fix-cortex-a8 -L/Users/long/Desktop/YYL/android-ndk-r14b/platforms/android-16/arch-arm//usr/lib -nostdlib -lc -lm -ldl -llog'
07-14 18:24:08.023 30085-30734/com.jonsontu.song.andaclud E/FFmpeg_log:   swscale     configuration: --prefix=/Users/long/Desktop/FFmpeg/ffmpeg4.1.3/build/ffmpeg/android/armeabi-v7a --target-os=linux --enable-pic --enable-small --enable-cross-compile --extra-libs=-lgcc --arch=arm --cpu=cortex-a8 --enable-runtime-cpudetect --cc=/Users/long/Desktop/YYL/android-ndk-r14b/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc --cross-prefix=/Users/long/Desktop/YYL/android-ndk-r14b/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi- --nm=/Users/long/Desktop/YYL/android-ndk-r14b/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-nm --extra-cflags=-I/Users/long/Desktop/FFmpeg/ffmpeg4.1.3/build/x264/android/arm/include --extra-ldflags=-L/Users/long/Desktop/FFmpeg/ffmpeg4.1.3/build/x264/android/arm/lib --sysroot=/Users/long/Desktop/YYL/android-ndk-r14b/platforms/android-16/arch-arm/ --disable-stripping --enable-zlib --enable-static --enable-pthreads --enable-network --enable-swscale --enable-hwaccels --enable-avfilter --enable-asm --enable-inline-asm --enable-version3 --disable-doc --disable-ffplay --disable-ffmpeg --disable-ffprobe --disable-protocol=udp --disable-protocol=udplite --disable-muxers --enable-muxer=mp4 --enable-muxer=h264 --enable-muxer=image2 --enable-muxer=mjpeg --disable-encoders --enable-encoder=aac --enable-encoder=libx264 --enable-encoder=png --enable-encoder=mjpeg --enable-gpl --enable-libx264 --enable-neon --enable-thumb --extra-cflags='-O3 -Wall -pipe -std=c99 -ffast-math -fstrict-aliasing -Werror=strict-aliasing -Wno-psabi -Wa,--noexecstack -DANDROID -DNDEBUG -march=armv7-a -mcpu=cortex-a8 -mfpu=vfpv3-d16 -mfloat-abi=softfp -mthumb' --extra-ldflags='-Wl,-rpath-link=/Users/long/Desktop/YYL/android-ndk-r14b/platforms/android-16/arch-arm//usr/lib -Wl,--fix-cortex-a8 -L/Users/long/Desktop/YYL/android-ndk-r14b/platforms/android-16/arch-arm//usr/lib -nostdlib -lc -lm -ldl -llog'
07-14 18:24:08.023 30085-30734/com.jonsontu.song.andaclud E/FFmpeg_log:   swresample  configuration: --prefix=/Users/long/Desktop/FFmpeg/ffmpeg4.1.3/build/ffmpeg/android/armeabi-v7a --target-os=linux --enable-pic --enable-small --enable-cross-compile --extra-libs=-lgcc --arch=arm --cpu=cortex-a8 --enable-runtime-cpudetect --cc=/Users/long/Desktop/YYL/android-ndk-r14b/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc --cross-prefix=/Users/long/Desktop/YYL/android-ndk-r14b/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi- --nm=/Users/long/Desktop/YYL/android-ndk-r14b/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-nm --extra-cflags=-I/Users/long/Desktop/FFmpeg/ffmpeg4.1.3/build/x264/android/arm/include --extra-ldflags=-L/Users/long/Desktop/FFmpeg/ffmpeg4.1.3/build/x264/android/arm/lib --sysroot=/Users/long/Desktop/YYL/android-ndk-r14b/platforms/android-16/arch-arm/ --disable-stripping --enable-zlib --enable-static --enable-pthreads --enable-network --enable-swscale --enable-hwaccels --enable-avfilter --enable-asm --enable-inline-asm --enable-version3 --disable-doc --disable-ffplay --disable-ffmpeg --disable-ffprobe --disable-protocol=udp --disable-protocol=udplite --disable-muxers --enable-muxer=mp4 --enable-muxer=h264 --enable-muxer=image2 --enable-muxer=mjpeg --disable-encoders --enable-encoder=aac --enable-encoder=libx264 --enable-encoder=png --enable-encoder=mjpeg --enable-gpl --enable-libx264 --enable-neon --enable-thumb --extra-cflags='-O3 -Wall -pipe -std=c99 -ffast-math -fstrict-aliasing -Werror=strict-aliasing -Wno-psabi -Wa,--noexecstack -DANDROID -DNDEBUG -march=armv7-a -mcpu=cortex-a8 -mfpu=vfpv3-d16 -mfloat-abi=softfp -mthumb' --extra-ldflags='-Wl,-rpath-link=/Users/long/Desktop/YYL/android-ndk-r14b/platforms/android-16/arch-arm//usr/lib -Wl,--fix-cortex-a8 -L/Users/long/Desktop/YYL/android-ndk-r14b/platforms/android-16/arch-arm//usr/lib -nostdlib -lc -lm -ldl -llog'
07-14 18:24:08.023 30085-30734/com.jonsontu.song.andaclud E/FFmpeg_log:   postproc    configuration: --prefix=/Users/long/Desktop/FFmpeg/ffmpeg4.1.3/build/ffmpeg/android/armeabi-v7a --target-os=linux --enable-pic --enable-small --enable-cross-compile --extra-libs=-lgcc --arch=arm --cpu=cortex-a8 --enable-runtime-cpudetect --cc=/Users/long/Desktop/YYL/android-ndk-r14b/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc --cross-prefix=/Users/long/Desktop/YYL/android-ndk-r14b/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi- --nm=/Users/long/Desktop/YYL/android-ndk-r14b/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-nm --extra-cflags=-I/Users/long/Desktop/FFmpeg/ffmpeg4.1.3/build/x264/android/arm/include --extra-ldflags=-L/Users/long/Desktop/FFmpeg/ffmpeg4.1.3/build/x264/android/arm/lib --sysroot=/Users/long/Desktop/YYL/android-ndk-r14b/platforms/android-16/arch-arm/ --disable-stripping --enable-zlib --enable-static --enable-pthreads --enable-network --enable-swscale --enable-hwaccels --enable-avfilter --enable-asm --enable-inline-asm --enable-version3 --disable-doc --disable-ffplay --disable-ffmpeg --disable-ffprobe --disable-protocol=udp --disable-protocol=udplite --disable-muxers --enable-muxer=mp4 --enable-muxer=h264 --enable-muxer=image2 --enable-muxer=mjpeg --disable-encoders --enable-encoder=aac --enable-encoder=libx264 --enable-encoder=png --enable-encoder=mjpeg --enable-gpl --enable-libx264 --enable-neon --enable-thumb --extra-cflags='-O3 -Wall -pipe -std=c99 -ffast-math -fstrict-aliasing -Werror=strict-aliasing -Wno-psabi -Wa,--noexecstack -DANDROID -DNDEBUG -march=armv7-a -mcpu=cortex-a8 -mfpu=vfpv3-d16 -mfloat-abi=softfp -mthumb' --extra-ldflags='-Wl,-rpath-link=/Users/long/Desktop/YYL/android-ndk-r14b/platforms/android-16/arch-arm//usr/lib -Wl,--fix-cortex-a8 -L/Users/long/Desktop/YYL/android-ndk-r14b/platforms/android-16/arch-arm//usr/lib -nostdlib -lc -lm -ldl -llog'
07-14 18:24:08.024 30085-30734/com.jonsontu.song.andaclud E/FFmpeg_log:   libavutil      56. 22.100 / 56. 22.100
07-14 18:24:08.024 30085-30734/com.jonsontu.song.andaclud E/FFmpeg_log:   libavcodec     58. 35.100 / 58. 35.100
07-14 18:24:08.024 30085-30734/com.jonsontu.song.andaclud E/FFmpeg_log:   libavformat    58. 20.100 / 58. 20.100
07-14 18:24:08.024 30085-30734/com.jonsontu.song.andaclud E/FFmpeg_log:   libavdevice    58.  5.100 / 58.  5.100
07-14 18:24:08.024 30085-30734/com.jonsontu.song.andaclud E/FFmpeg_log:   libavfilter     7. 40.101 /  7. 40.101
07-14 18:24:08.024 30085-30734/com.jonsontu.song.andaclud E/FFmpeg_log:   libswscale      5.  3.100 /  5.  3.100
07-14 18:24:08.024 30085-30734/com.jonsontu.song.andaclud E/FFmpeg_log:   libswresample   3.  3.100 /  3.  3.100
07-14 18:24:08.024 30085-30734/com.jonsontu.song.andaclud E/FFmpeg_log:   libpostproc    55.  3.100 / 55.  3.100
07-14 18:24:08.057 30085-30734/com.jonsontu.song.andaclud E/FFmpeg_log: Input #0, mp3, from '/data/user/0/com.jonsontu.song.andaclud/cache/Accompany/854c15a2cc21bff1f098562c965f9af5.mp3':
07-14 18:24:08.057 30085-30734/com.jonsontu.song.andaclud E/FFmpeg_log:   Metadata:
07-14 18:24:08.058 30085-30734/com.jonsontu.song.andaclud E/FFmpeg_log:     album           : 
07-14 18:24:08.058 30085-30734/com.jonsontu.song.andaclud E/FFmpeg_log: 《神韵》蒙古话筒
07-14 18:24:08.058 30085-30734/com.jonsontu.song.andaclud E/FFmpeg_log:     artist          : 
07-14 18:24:08.058 30085-30734/com.jonsontu.song.andaclud E/FFmpeg_log: ᠰᠢᠳᠡᠲᠦ ᠠᠶᠠᠯᠭᠤ
07-14 18:24:08.058 30085-30734/com.jonsontu.song.andaclud E/FFmpeg_log:     encoder         : 
07-14 18:24:08.058 30085-30734/com.jonsontu.song.andaclud E/FFmpeg_log: Lavf57.41.100
07-14 18:24:08.058 30085-30734/com.jonsontu.song.andaclud E/FFmpeg_log:     title           : 
07-14 18:24:08.058 30085-30734/com.jonsontu.song.andaclud E/FFmpeg_log: 联系电话:13394766832
07-14 18:24:08.058 30085-30734/com.jonsontu.song.andaclud E/FFmpeg_log:   Duration: 
07-14 18:24:08.058 30085-30734/com.jonsontu.song.andaclud E/FFmpeg_log: 00:04:26.24
07-14 18:24:08.058 30085-30734/com.jonsontu.song.andaclud E/FFmpeg_log: , start: 
07-14 18:24:08.058 30085-30734/com.jonsontu.song.andaclud E/FFmpeg_log: 0.050113
07-14 18:24:08.058 30085-30734/com.jonsontu.song.andaclud E/FFmpeg_log: , bitrate: 
07-14 18:24:08.058 30085-30734/com.jonsontu.song.andaclud E/FFmpeg_log: 32 kb/s
07-14 18:24:08.059 30085-30734/com.jonsontu.song.andaclud E/FFmpeg_log:     Stream #0:0
07-14 18:24:08.060 30085-30734/com.jonsontu.song.andaclud E/FFmpeg_log: : Audio: mp3, 22050 Hz, mono, fltp, 32 kb/s
07-14 18:24:08.060 30085-30734/com.jonsontu.song.andaclud E/FFmpeg_log: Unable to find a suitable output format for '/data/user/0/com.jonsontu.song.andaclud/cache/RecordingTemp/CUT-1563099848009.mp3'
07-14 18:24:08.060 30085-30734/com.jonsontu.song.andaclud E/FFmpeg_log: /data/user/0/com.jonsontu.song.andaclud/cache/RecordingTemp/CUT-1563099848009.mp3: Invalid argument
07-14 18:24:08.063 30085-30734/com.jonsontu.song.andaclud I/FFMPEG: DetachCurrentThread close=0  tid=-1643902672
07-14 18:24:08.063 30085-30734/com.jonsontu.song.andaclud I/FFMPEG: exit_program   pthread_exit=1
07-14 18:24:08.063 30085-30085/com.jonsontu.song.andaclud I/FFMPEG: 线程任务异常中断并退出
07-14 18:24:08.068 30085-30085/com.jonsontu.song.andaclud I/FFMPEG: 任务结束总耗时:0秒  code=1

求大佬指导

mengzhidaren commented 5 years ago

第1 要有SD卡权限 第2 名字不要有特殊符号 第3 多百度下在问

L-X-J commented 5 years ago

名字是/cache/RecordingTemp/CUT-1563099848009.mp3 且在沙盒目录且有读写权限 且命令正确,在Linux环境下测试命令可以用执行成功, Linux FFmpeg版本信息

ffmpeg version 3.2.12-1~deb9u1 Copyright (c) 2000-2018 the FFmpeg developers
  built with gcc 6.3.0 (Debian 6.3.0-18+deb9u1) 20170516
  configuration: --prefix=/usr --extra-version='1~deb9u1' --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libebur128 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
  libavutil      55. 34.101 / 55. 34.101
  libavcodec     57. 64.101 / 57. 64.101
  libavformat    57. 56.101 / 57. 56.101
  libavdevice    57.  1.100 / 57.  1.100
  libavfilter     6. 65.100 /  6. 65.100
  libavresample   3.  1.  0 /  3.  1.  0
  libswscale      4.  2.100 /  4.  2.100
  libswresample   2.  3.100 /  2.  3.100
  libpostproc    54.  1.100 / 54.  1.100
mengzhidaren commented 5 years ago

-acodec, copy去掉 换默认编码器能成功吗发下日志 还有你设备是32位还是64位的