将选项pix_fmt设置为值-1时出错:请考虑增加“分析持续时间”和“探测大小”选项的值

时间:2019-03-04 09:45:36

标签: android video ffmpeg android-ffmpeg

使用FFMpeg时,某些视频出现错误。

  

ffmpeg版本n3.0.1版权所有(c)2000-2016 FFmpeg开发人员\ n   使用gcc 4.8(GCC)\ n配置构建:--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,现在-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 \ n [mov,mp4,m4a,3gp,3g2,mj2 @ 0xf41a4000]找不到流0的编解码器参数(视频:h264(avc1 / 0x31637661),无,   1280x720,1080 kb / s):未指定像素格式\ n 考虑增加   “ analyzeduration”和“ probesize”选项的值 \ n输入#0,   mov,mp4,m4a,3gp,3g2,mj2,来自   '/storage/emulated/0/Movies/cut_video1.mp4':\n元数据:\ n
  major_brand:isom \ n minor_version:512 \ n
  compatible_brands:isomiso2avc1mp41 \ n编码器:   Lavf57.25.100 \ n时长:00:04:25.01,开始:0.000000,比特率:1193   kb / s \ n流#0:0(und):视频:h264(avc1 / 0x31637661),无,   1280x720、1080 kb / s,25 fps,25 tbr,12800 tbn,25600 tbc(默认)\ n   元数据:\ n handler_name:VideoHandler \ n流#0:1(eng):   音频:AAC(LC)(mp4a / 0x6134706D),44100 Hz,立体声,fltp,127 kb / s   (默认)\ n元数据:\ n handler_name:   SoundHandler \ n [缓冲区@ 0xf3fe1060]无法解析选项值   \“-1 \”为像素格式\ n上一条消息重复1次\ n [缓冲区@   0xf3fe1060] 错误将选项pix_fmt设置为值-1 。\ n [图0输入   来自流0:0 @ 0xf41ae3d0]将选项应用于   过滤器。\ n打开过滤器时出错!\ n

示例命令

"-y", "-ss", "" + startMs / 1000, "-t", "" + (endMs - startMs) / 1000, "-i", yourRealPath, "-an", "-filter:v", "setpts=2.0*PTS", filePath

上述错误是什么意思?我该如何解决?

0 个答案:

没有答案