Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to find a suitable output format for '/storage/emulated/0/vff/out/20190702085518.mkv' #7

Open
fuchangle opened this issue Jul 12, 2019 · 3 comments

Comments

@fuchangle
Copy link

fuchangle commented Jul 12, 2019

为什么在win上使用FFmpeg环境,直接使用命令对视频文件进行转码,可以成功,但是在这个sdk中使用相同的命令却不成功呢? 例如
ffmpeg -i /storage/emulated/0/DCIM/Camera/20190702085518.mp4 -c:a copy /storage/emulated/0/vff/out/20190702085518.mkv

将MP4文件转码成MKV文件,错误log
ffmpeg -i /storage/emulated/0/DCIM/Camera/20190702085518.mp4 -c:a copy /storage/emulated/0/vff/out/20190702085518.mkv
07-12 15:38:50.725 4962-5110/com.fcbb.vff.android D/vff-->:: ffmpeg version 4.1.3
07-12 15:38:50.725 4962-5110/com.fcbb.vff.android D/vff-->:: Copyright (c) 2000-2019 the FFmpeg developers
07-12 15:38:50.725 4962-5110/com.fcbb.vff.android D/vff-->:: built with gcc 4.9.x (GCC) 20150123 (prerelease)
07-12 15:38:50.725 4962-5110/com.fcbb.vff.android D/vff-->:: 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-12 15:38:50.725 4962-5110/com.fcbb.vff.android D/vff-->:: build date 2019.7.5 more info please see my github
07-12 15:38:50.725 4962-5110/com.fcbb.vff.android D/vff-->:: https://github.com/mengzhidaren
07-12 15:38:50.730 4962-5110/com.fcbb.vff.android D/vff-->:: 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-12 15:38:50.730 4962-5110/com.fcbb.vff.android D/vff-->:: 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-12 15:38:50.730 4962-5110/com.fcbb.vff.android D/vff-->:: 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-12 15:38:50.730 4962-5110/com.fcbb.vff.android D/vff-->:: 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-12 15:38:50.730 4962-5110/com.fcbb.vff.android D/vff-->:: 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-12 15:38:50.730 4962-5110/com.fcbb.vff.android D/vff-->:: 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-12 15:38:50.730 4962-5110/com.fcbb.vff.android D/vff-->:: 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-12 15:38:50.730 4962-5110/com.fcbb.vff.android D/vff-->:: 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-12 15:38:50.730 4962-5110/com.fcbb.vff.android D/vff-->:: libavutil 56. 22.100 / 56. 22.100
07-12 15:38:50.730 4962-5110/com.fcbb.vff.android D/vff-->:: libavcodec 58. 35.100 / 58. 35.100
07-12 15:38:50.730 4962-5110/com.fcbb.vff.android D/vff-->:: libavformat 58. 20.100 / 58. 20.100
07-12 15:38:50.730 4962-5110/com.fcbb.vff.android D/vff-->:: libavdevice 58. 5.100 / 58. 5.100
07-12 15:38:50.730 4962-5110/com.fcbb.vff.android D/vff-->:: libavfilter 7. 40.101 / 7. 40.101
07-12 15:38:50.730 4962-5110/com.fcbb.vff.android D/vff-->:: libswscale 5. 3.100 / 5. 3.100
07-12 15:38:50.730 4962-5110/com.fcbb.vff.android D/vff-->:: libswresample 3. 3.100 / 3. 3.100
07-12 15:38:50.730 4962-5110/com.fcbb.vff.android D/vff-->:: libpostproc 55. 3.100 / 55. 3.100
07-12 15:38:50.750 4962-5110/com.fcbb.vff.android D/vff-->:: Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/emulated/0/DCIM/Camera/20190702085518.mp4':
07-12 15:38:50.755 4962-5110/com.fcbb.vff.android D/vff-->:: Metadata:
07-12 15:38:50.755 4962-5110/com.fcbb.vff.android D/vff-->:: major_brand :
07-12 15:38:50.755 4962-5110/com.fcbb.vff.android D/vff-->:: isom
07-12 15:38:50.755 4962-5110/com.fcbb.vff.android D/vff-->:: minor_version :
07-12 15:38:50.755 4962-5110/com.fcbb.vff.android D/vff-->:: 512
07-12 15:38:50.755 4962-5110/com.fcbb.vff.android D/vff-->:: compatible_brands:
07-12 15:38:50.755 4962-5110/com.fcbb.vff.android D/vff-->:: isomiso2mp41
07-12 15:38:50.755 4962-5110/com.fcbb.vff.android D/vff-->:: encoder :
07-12 15:38:50.755 4962-5110/com.fcbb.vff.android D/vff-->:: Lavf57.25.100
07-12 15:38:50.755 4962-5110/com.fcbb.vff.android D/vff-->:: Duration:
07-12 15:38:50.755 4962-5110/com.fcbb.vff.android D/vff-->:: 00:01:00.20
07-12 15:38:50.755 4962-5110/com.fcbb.vff.android D/vff-->:: , start:
07-12 15:38:50.755 4962-5110/com.fcbb.vff.android D/vff-->:: 0.000000
07-12 15:38:50.755 4962-5110/com.fcbb.vff.android D/vff-->:: , bitrate:
07-12 15:38:50.755 4962-5110/com.fcbb.vff.android D/vff-->:: 522 kb/s
07-12 15:38:50.755 4962-5110/com.fcbb.vff.android D/vff-->:: Stream #0:0
07-12 15:38:50.755 4962-5110/com.fcbb.vff.android D/vff-->:: (chi)
07-12 15:38:50.755 4962-5110/com.fcbb.vff.android D/vff-->:: : Video: mpeg4 (mp4v / 0x7634706D), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 441 kb/s
07-12 15:38:50.755 4962-5110/com.fcbb.vff.android D/vff-->:: ,
07-12 15:38:50.755 4962-5110/com.fcbb.vff.android D/vff-->:: 25 fps,
07-12 15:38:50.755 4962-5110/com.fcbb.vff.android D/vff-->:: 25 tbr,
07-12 15:38:50.755 4962-5110/com.fcbb.vff.android D/vff-->:: 12800 tbn,
07-12 15:38:50.755 4962-5110/com.fcbb.vff.android D/vff-->:: 25 tbc
07-12 15:38:50.755 4962-5110/com.fcbb.vff.android D/vff-->:: (default)
07-12 15:38:50.755 4962-5110/com.fcbb.vff.android D/vff-->:: Metadata:
07-12 15:38:50.755 4962-5110/com.fcbb.vff.android D/vff-->:: handler_name :
07-12 15:38:50.755 4962-5110/com.fcbb.vff.android D/vff-->:: VideoHandler
07-12 15:38:50.755 4962-5110/com.fcbb.vff.android D/vff-->:: Stream #0:1
07-12 15:38:50.755 4962-5110/com.fcbb.vff.android D/vff-->:: (chi)
07-12 15:38:50.755 4962-5110/com.fcbb.vff.android D/vff-->:: : Audio: aac (mp4a / 0x6134706D), 16000 Hz, mono, fltp, 78 kb/s
07-12 15:38:50.755 4962-5110/com.fcbb.vff.android D/vff-->:: (default)
07-12 15:38:50.755 4962-5110/com.fcbb.vff.android D/vff-->:: Metadata:
07-12 15:38:50.755 4962-5110/com.fcbb.vff.android D/vff-->:: handler_name :
07-12 15:38:50.755 4962-5110/com.fcbb.vff.android D/vff-->:: SoundHandler
07-12 15:38:50.755 4962-5110/com.fcbb.vff.android D/vff-->:: Unable to find a suitable output format for '/storage/emulated/0/vff/out/20190702085518.mkv'
07-12 15:38:50.755 4962-5110/com.fcbb.vff.android D/vff-->:: /storage/emulated/0/vff/out/20190702085518.mkv: Invalid argument
07-12 15:38:50.755 4962-5109/com.fcbb.vff.android D/vff-->:: result:1

@fuchangle fuchangle changed the title Invalid argument Unable to find a suitable output format for '/storage/emulated/0/vff/out/20190702085518.mkv' Jul 12, 2019
@mengzhidaren
Copy link
Owner

第一 确认SD卡有读写权限
第二 看我编译环境--disable-encoders --enable-encoder=aac --enable-encoder=libx264
解码全支持,但是编码库只打开了aac和libx264 确认下你的mp4是格式是h264的

@L-X-J
Copy link

L-X-J commented Jul 15, 2019

老哥你的问题解决了么,我这边对wav转mp3,和对mp3进行剪切也出现这种问题
Unable to find a suitable output format for '*.mp3'
有读写权限,命令是对的在电脑上试过

@fuchangle
Copy link
Author

没有解决呢,我正在研究这个

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants