gpt4 book ai didi

android - 剪切视频时找不到合适的输出格式

转载 作者:行者123 更新时间:2023-12-04 23:02:38 25 4
gpt4 key购买 nike

我正在使用以下命令剪切视频-

String complexCommand = new String[]{"-y", "-i", yourRealPath, "-ss", "" + startMs / 1000, "-t", "" + (endMs - startMs) / 1000, "-c", "copy", filePath};

我得到以下错误 -

"ffmpeg version n3.0.1 Copyright (c) 2000-2016 the FFmpeg developers\n built with gcc 4.8 (GCC)\n configuration: --target-os=linux --cross-prefix=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/bin/arm-linux-androideabi- --arch=arm --cpu=cortex-a8 --enable-runtime-cpudetect --sysroot=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/sysroot --enable-pic --enable-libx264 --enable-libass --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-fontconfig --enable-pthreads --disable-debug --disable-ffserver --enable-version3 --enable-hardcoded-tables --disable-ffplay --disable-ffprobe --enable-gpl --enable-yasm --disable-doc --disable-shared --enable-static --pkg-config=/home/vagrant/SourceCode/ffmpeg-android/ffmpeg-pkg-config --prefix=/home/vagrant/SourceCode/ffmpeg-android/build/armeabi-v7a --extra-cflags='-I/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/include -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all' --extra-ldflags='-L/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/lib -Wl,-z,relro -Wl,-z,now -pie' --extra-libs='-lpng -lexpat -lm' --extra-cxxflags=\n libavutil 55. 17.103 / 55. 17.103\n libavcodec 57. 24.102 / 57. 24.102\n libavformat 57. 25.100 / 57. 25.100\n libavdevice 57. 0.101 / 57. 0.101\n libavfilter 6. 31.100 / 6. 31.100\n libswscale 4. 0.100 / 4. 0.100\n libswresample 2. 0.101 / 2. 0.101\n libpostproc 54. 0.100 / 54. 0.100\nInput #0, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/emulated/0/Download/file3gpp.3gpp':\n Metadata:\n
major_brand : 3gp4\n minor_version : 0\n
compatible_brands: isom3gp4\n creation_time : 2018-04-09 12:04:29\n com.android.version: 7.1.1\n Duration: 00:00:04.88, start: 0.000000, bitrate: 1425 kb/s\n Stream #0:0(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 96 kb/s (default)\n
Metadata:\n creation_time : 2018-04-09 12:04:29\n
handler_name : SoundHandle\n[NULL @ 0xf622a600] Unable to find a suitable output format for '/storage/emulated/0/Movies/cut_video.3gpp'\n/storage/emulated/0/Movies/cut_video.3gpp: Invalid argument\n"



为什么我会收到此错误,我该如何解决?

最佳答案

已识别的扩展名是 .3gp .对于自定义扩展,添加 "-f", "3gp",之前 filePath .

关于android - 剪切视频时找不到合适的输出格式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51464400/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com