FFMPEG - 无法找到适合“ffmpeg”的输出格式ffmpeg:参数无效

FFMPEG - 无法找到适合“ffmpeg”的输出格式ffmpeg:参数无效

很多人问这个问题,但每个问题的意思都不一样,我什么都不明白。

我正在尝试剪切视频并将更改保存到另一个文件:

ffmpeg -i C:\Users\danie\Videos\video4.mp4 -ss 1:00 -t 3:00 -vcodec copy -acodec copy video5.mp4

当我在 cmd 中输入此命令时,我得到以下行:

[NULL @ 000000000318f4c0] Unable to find a suitable output format for 'ffmpeg'
ffmpeg: Invalid argument

我不明白哪里出了问题。有人能帮我解决吗?

编辑:这是日志输出:

ffmpeg started on 2016-10-11 at 14:14:13
Report written to "ffmpeg-20161011-141413.log"
ffmpeg version N-81960-g1bda0ee Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 5.4.0 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-libebur128 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
  libavutil      55. 32.100 / 55. 32.100
  libavcodec     57. 61.100 / 57. 61.100
  libavformat    57. 51.103 / 57. 51.103
  libavdevice    57.  0.102 / 57.  0.102
  libavfilter     6. 63.100 /  6. 63.100
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  2.100 /  2.  2.100
  libpostproc    54.  0.100 / 54.  0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\Users\danie\Videos\video4.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: mp41isom
    creation_time   : 2016-10-10T11:32:52.000000Z
    date            : 2016
  Duration: 00:06:29.00, start: 0.000000, bitrate: 44036 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, smpte170m/smpte170m/bt470m), 1920x1080 [SAR 1:1 DAR 16:9], 43828 kb/s, 59.70 fps, 59.94 tbr, 60k tbn, 120 tbc (default)
    Metadata:
      creation_time   : 2016-10-10T11:32:52.000000Z
      handler_name    : VideoHandler
      encoder         : AVC Coding
    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 196 kb/s (default)
    Metadata:
      creation_time   : 2016-10-10T11:32:52.000000Z
      handler_name    : SoundHandler
[NULL @ 0000000003089540] Unable to find a suitable output format for 'ffmpeg'
ffmpeg: Invalid argument

答案1

这个错误经常发生,因为命令错误。

似乎您的命令中还有一个ffmpegffmpeg,如下所示:

C:\ffmpeg-20160428-git-78baa45-win64-static\bin\ffmpeg.exe ffmpeg -i ...

尝试删除它: C:\ffmpeg-20160428-git-78baa45-win64-static\bin\ffmpeg.exe -i ...。或者简单地ffmpeg -i ...

相关内容