[已解决]ffmpeg 要如何分割 mp4 视频文件

各位大大好

因为我有过大的视频文件想要用 ffmpeg 分割,但是一直出现问题,请各位指点。

这个视频文件的分析结果是:

Guessed Channel Layout for  Input Stream #0.1 : stereo
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Fast.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 1
    compatible_brands: isom
    creation_time   : 2015-05-12 15:19:02
  Duration: 02:17:13.17, start: 0.000000, bitrate: 1331 kb/s
    Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv), 1024x576, 1199 kb/s, 29.97 fps, 29.97 tbr, 9860 tbn, 59.94 tbc (default)
    Metadata:
      creation_time   : 2015-05-12 15:08:21
      handler_name    : L-SMASH Video Media Handler
      encoder         : AVC Coding
    Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 48000 Hz, 2 channels, 128 kb/s (default)
    Metadata:
      creation_time   : 2015-05-12 15:08:42
      handler_name    : Sound Media Handler
At least one output file must be specified

分割时我使用的命令是:

ffmpeg -ss 00:00:00 -i Fast.mp4 -vcodec copy -acodec copy -t 00:10:00 test_fast.mp4

但是得到反馈:

[NULL @ 0xdf7940] Unable to find a suitable output format for 'test_fast.mp4'
test_fast.mp4: Invalid argument

因为根据结果,mp4 文件分析以及 ffmpeg -codecs 来看,我一直以为是因为缺乏和原始文件一样的 h264 编码支持,所以无法顺利使用复制分割。可是也有人说,因为不需重新编码,所以即使没有 h264 的编码器,也是无所谓的。那到底要怎样才能使用 ffmpeg 来分割视频呢?

我的环境是 openSUSE 13.2.
使用的 ffmpeg 是 3.0.3 ,ffmpeg -version 信息如下:

ffmpeg version 3.0.3 Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 4.8 (SUSE Linux)
configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --incdir=/usr/include/ffmpeg --extra-cflags='-fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g' --optflags='-fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g' --disable-htmlpages --enable-pic --disable-stripping --enable-shared --disable-static --enable-runtime-cpudetect --enable-gpl --disable-openssl --enable-avresample --enable-libcdio --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libcelt --enable-libcdio --enable-libdc1394 --enable-libfreetype --enable-libgsm --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libwebp --enable-pic --enable-pthreads --enable-vaapi --enable-vdpau --enable-libmp3lame --enable-libtwolame --enable-libx264 --enable-libx265 --enable-libxvid --enable-x11grab
libavutil      55. 17.103 / 55. 17.103
libavcodec     57. 24.102 / 57. 24.102
libavformat    57. 25.100 / 57. 25.100
libavdevice    57.  0.101 / 57.  0.101
libavfilter     6. 31.100 /  6. 31.100
libavresample   3.  0.  0 /  3.  0.  0
libswscale      4.  0.100 /  4.  0.100
libswresample   2.  0.101 /  2.  0.101
libpostproc    54.  0.100 / 54.  0.100

我的 ffmpeg -formats 是:

File formats:
 D. = Demuxing supported
 .E = Muxing supported
 --
 DE alsa            ALSA audio output
 D  asf             ASF (Advanced / Active Streaming Format)
 D  dv              DV (Digital Video)
 D  dv1394          DV1394 A/V grab
 DE fbdev           Linux framebuffer
  E ffm             FFM (FFserver live feed)
 DE flac            raw FLAC
 DE gif             GIF Animation
 DE image2          image2 sequence
 DE image2pipe      piped image2 sequence
 D  jack            JACK Audio Connection Kit
 D  lavfi           Libavfilter virtual input device
 D  libcdio          
 D  libdc1394       dc1394 v.2 A/V grab
  E matroska        Matroska
 D  matroska,webm   Matroska / WebM
 D  mov,mp4,m4a,3gp,3g2,mj2 QuickTime / MOV
 D  mpegts          MPEG-TS (MPEG-2 Transport Stream)
  E null            raw null video
 DE oss             OSS (Open Sound System) playback
 DE pulse           Pulse audio output
 D  rm              RealMedia
 D  rtsp            RTSP input
  E sdl             SDL output device
  E v4l2            Video4Linux2 output device
 D  video4linux2,v4l2 Video4Linux2 device grab
  E webm            WebM
 D  x11grab         X11 screen capture, using XCB

我的 ffmpeg -codec 是:

Codecs:
 D..... = Decoding supported
 .E.... = Encoding supported
 ..V... = Video codec
 ..A... = Audio codec
 ..S... = Subtitle codec
 ...I.. = Intra frame-only codec
 ....L. = Lossy compression
 .....S = Lossless compression
 -------
 ..VI.. 012v                 Uncompressed 4:2:2 10-bit
 ..V.L. 4xm                  4X Movie
 ..VI.S 8bps                 QuickTime 8BPS video
 ..VIL. a64_multi            Multicolor charset for Commodore 64
 ..VIL. a64_multi5           Multicolor charset for Commodore 64, extended with 5th color (colram)
 ..V..S aasc                 Autodesk RLE
 ..VIL. aic                  Apple Intermediate Codec
 ..VI.S alias_pix            Alias/Wavefront PIX image
 ..VIL. amv                  AMV Video
 ..V.L. anm                  Deluxe Paint Animation
 D.V.L. ansi                 ASCII/ANSI art
 DEV..S apng                 APNG (Animated Portable Network Graphics) image
 ..VIL. asv1                 ASUS V1
 ..VIL. asv2                 ASUS V2
 ..VIL. aura                 Auravision AURA
 ..VIL. aura2                Auravision Aura 2
 ..V... avrn                 Avid AVI Codec
 ..VI.. avrp                 Avid 1:1 10-bit RGB Packer
 ..V.L. avs                  AVS (Audio Video Standard) video
 ..VI.. avui                 Avid Meridien Uncompressed
 ..VI.. ayuv                 Uncompressed packed MS 4:4:4:4
 ..V.L. bethsoftvid          Bethesda VID video
 ..V.L. bfi                  Brute Force & Ignorance
 ..V.L. binkvideo            Bink video
 ..VI.. bintext              Binary text
 DEVI.S bmp                  BMP (Windows and OS/2 bitmap)
 ..V..S bmv_video            Discworld II BMV video
 ..VI.S brender_pix          BRender PIX image
 ..V.L. c93                  Interplay C93
 ..V.L. cavs                 Chinese AVS (Audio Video Standard) (AVS1-P2, JiZhun profile)
 ..V.L. cdgraphics           CD Graphics video
 ..VIL. cdxl                 Commodore CDXL video
 ..V.L. cfhd                 Cineform HD
 ..V.L. cinepak              Cinepak
 ..VIL. cljr                 Cirrus Logic AccuPak
 ..VI.S cllc                 Canopus Lossless Codec
 ..V.L. cmv                  Electronic Arts CMV video
 ..V... cpia                 CPiA video format
 ..V..S cscd                 CamStudio
 ..VIL. cyuv                 Creative YUV (CYUV)
 ..V.LS daala                Daala
 ..VILS dds                  DirectDraw Surface image decoder
 ..V.L. dfa                  Chronomaster DFA
 ..V.LS dirac                Dirac
 ..VIL. dnxhd                VC3/DNxHD
 ..VI.S dpx                  DPX (Digital Picture Exchange) image
 ..V.L. dsicinvideo          Delphine Software International CIN video
 ..VIL. dvvideo              DV (Digital Video)
 ..V..S dxa                  Feeble Files/ScummVM DXA
 ..VI.S dxtory               Dxtory
 ..VIL. dxv                  Resolume DXV
 ..V.L. escape124            Escape 124
 ..V.L. escape130            Escape 130
 D.VILS exr                  OpenEXR image
 DEV..S ffv1                 FFmpeg video codec #1
 DEVI.S ffvhuff              Huffyuv FFmpeg variant
 ..V.L. fic                  Mirillis FIC
 ..V..S flashsv              Flash Screen Video v1
 ..V.L. flashsv2             Flash Screen Video v2
 ..V..S flic                 Autodesk Animator Flic video
 ..V.L. flv1                 FLV / Sorenson Spark / Sorenson H.263 (Flash Video)
 ..V..S fraps                Fraps
 ..VI.S frwu                 Forward Uncompressed
 ..V.L. g2m                  Go2Meeting
 DEV..S gif                  GIF (Graphics Interchange Format)
 ..V.L. h261                 H.261
 D.V.L. h263                 H.263 / H.263-1996, H.263+ / H.263-1998 / H.263 version 2
 ..V.L. h263i                Intel H.263
 ..V.L. h263p                H.263+ / H.263-1998 / H.263 version 2
 D.V.LS h264                 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
 ..VIL. hap                  Vidvox Hap decoder
 ..V.L. hevc                 H.265 / HEVC (High Efficiency Video Coding)
 ..V.L. hnm4video            HNM 4 video
 ..VIL. hq_hqa               Canopus HQ/HQA
 ..VIL. hqx                  Canopus HQX
 DEVI.S huffyuv              HuffYUV
 ..V.L. idcin                id Quake II CIN video
 ..VI.. idf                  iCEDraw text
 ..V.L. iff_ilbm             IFF ILBM
 ..V.L. indeo2               Intel Indeo 2
 ..V.L. indeo3               Intel Indeo 3
 ..V.L. indeo4               Intel Indeo Video Interactive 4
 ..V.L. indeo5               Intel Indeo Video Interactive 5
 ..V.L. interplayvideo       Interplay MVE video
 DEVILS jpeg2000             JPEG 2000 (decoders: libopenjpeg ) (encoders: libopenjpeg )
 DEVILS jpegls               JPEG-LS
 ..VIL. jv                   Bitmap Brothers JV video
 ..V.L. kgv1                 Kega Game Video
 ..V.L. kmvc                 Karl Morton's video codec
 ..VI.S lagarith             Lagarith lossless
 ..VI.S ljpeg                Lossless JPEG
 ..VI.S loco                 LOCO
 ..V.L. mad                  Electronic Arts Madcow Video
 ..VIL. mdec                 Sony PlayStation MDEC (Motion DECoder)
 ..V.L. mimic                Mimic
 D.VIL. mjpeg                Motion JPEG
 ..VIL. mjpegb               Apple MJPEG-B
 ..V.L. mmvideo              American Laser Games MM Video
 ..V.L. motionpixels         Motion Pixels video
 D.V.L. mpeg1video           MPEG-1 video
 D.V.L. mpeg2video           MPEG-2 video
 D.V.L. mpeg4                MPEG-4 part 2
 ..V.L. mpegvideo_xvmc       MPEG-1/2 video XvMC (X-Video Motion Compensation)
 ..V.L. msa1                 MS ATC Screen
 ..V.L. msmpeg4v1            MPEG-4 part 2 Microsoft variant version 1
 ..V.L. msmpeg4v2            MPEG-4 part 2 Microsoft variant version 2
 ..V.L. msmpeg4v3            MPEG-4 part 2 Microsoft variant version 3
 ..V..S msrle                Microsoft RLE
 ..V.L. mss1                 MS Screen 1
 ..VIL. mss2                 MS Windows Media Video V9 Screen
 ..V.L. msvideo1             Microsoft Video 1
 ..VI.S mszh                 LCL (LossLess Codec Library) MSZH
 ..V.L. mts2                 MS Expression Encoder Screen
 ..VIL. mvc1                 Silicon Graphics Motion Video Compressor 1
 ..VIL. mvc2                 Silicon Graphics Motion Video Compressor 2
 ..V.L. mxpeg                Mobotix MxPEG video
 ..V.L. nuv                  NuppelVideo/RTJPEG
 ..V.L. paf_video            Amazing Studio Packed Animation File Video
 DEVI.S pam                  PAM (Portable AnyMap) image
 DEVI.S pbm                  PBM (Portable BitMap) image
 DEVI.S pcx                  PC Paintbrush PCX image
 DEVI.S pgm                  PGM (Portable GrayMap) image
 DEVI.S pgmyuv               PGMYUV (Portable GrayMap YUV) image
 ..VIL. pictor               Pictor/PC Paint
 DEV..S png                  PNG (Portable Network Graphics) image
 DEVI.S ppm                  PPM (Portable PixelMap) image
 ..VIL. prores               Apple ProRes (iCodec Pro)
 ..VIL. ptx                  V.Flash PTX image
 ..VI.S qdraw                Apple QuickDraw
 ..V.L. qpeg                 Q-team QPEG
 ..V..S qtrle                QuickTime Animation (RLE) video
 ..VI.S r10k                 AJA Kona 10-bit RGB Codec
 ..VI.S r210                 Uncompressed RGB 10-bit
 ..VI.S rawvideo             raw video
 ..VIL. rl2                  RL2 video
 ..V.L. roq                  id RoQ video
 ..V.L. rpza                 QuickTime video (RPZA)
 ..V..S rscc                 innoHeim/Rsupport Screen Capture Codec
 ..V.L. rv10                 RealVideo 1.0
 ..V.L. rv20                 RealVideo 2.0
 ..V.L. rv30                 RealVideo 3.0
 ..V.L. rv40                 RealVideo 4.0
 ..V.L. sanm                 LucasArts SANM/SMUSH video
 ..V..S screenpresso         Screenpresso
 DEVI.S sgi                  SGI image
 ..VI.S sgirle               SGI RLE 8-bit
 ..V.L. smackvideo           Smacker video
 ..V.L. smc                  QuickTime Graphics (SMC)
 ..V... smvjpeg              Sigmatel Motion Video
 ..V.LS snow                 Snow
 ..VIL. sp5x                 Sunplus JPEG (SP5X)
 DEVI.S sunrast              Sun Rasterfile image
 ..V.L. svq1                 Sorenson Vector Quantizer 1 / Sorenson Video 1 / SVQ1
 ..V.L. svq3                 Sorenson Vector Quantizer 3 / Sorenson Video 3 / SVQ3
 DEVI.S targa                Truevision Targa image
 ..VI.. targa_y216           Pinnacle TARGA CineWave YUV16
 ..V.L. tdsc                 TDSC
 ..V.L. tgq                  Electronic Arts TGQ video
 ..V.L. tgv                  Electronic Arts TGV video
 .EV.L. theora               Theora (encoders: libtheora )
 ..VIL. thp                  Nintendo Gamecube THP video
 ..V.L. tiertexseqvideo      Tiertex Limited SEQ video
 DEVI.S tiff                 TIFF image
 ..VIL. tmv                  8088flex TMV
 ..V.L. tqi                  Electronic Arts TQI video
 ..V.L. truemotion1          Duck TrueMotion 1.0
 ..V.L. truemotion2          Duck TrueMotion 2.0
 ..V..S tscc                 TechSmith Screen Capture Codec
 ..V.L. tscc2                TechSmith Screen Codec 2
 ..VIL. txd                  Renderware TXD (TeXture Dictionary) image
 ..V.L. ulti                 IBM UltiMotion
 ..VI.S utvideo              Ut Video
 DEVI.S v210                 Uncompressed 4:2:2 10-bit
 D.VI.S v210x                Uncompressed 4:2:2 10-bit
 DEVI.. v308                 Uncompressed packed 4:4:4
 DEVI.. v408                 Uncompressed packed QT 4:4:4:4
 DEVI.S v410                 Uncompressed 4:4:4 10-bit
 ..V.L. vb                   Beam Software VB
 ..VI.S vble                 VBLE Lossless Codec
 D.V.L. vc1                  SMPTE VC-1
 ..V.L. vc1image             Windows Media Video 9 Image v2
 ..VIL. vcr1                 ATI VCR1
 ..VIL. vixl                 Miro VideoXL
 ..V.L. vmdvideo             Sierra VMD video
 ..V..S vmnc                 VMware Screen Codec / VMware Video
 D.V.L. vp3                  On2 VP3
 D.V.L. vp5                  On2 VP5
 D.V.L. vp6                  On2 VP6
 D.V.L. vp6a                 On2 VP6 (Flash version, with alpha channel)
 D.V.L. vp6f                 On2 VP6 (Flash version)
 ..V.L. vp7                  On2 VP7
 D.V.L. vp8                  On2 VP8
 D.V.L. vp9                  Google VP9
 D.VILS webp                 WebP
 ..V.L. wmv1                 Windows Media Video 7
 ..V.L. wmv2                 Windows Media Video 8
 ..V.L. wmv3                 Windows Media Video 9
 ..V.L. wmv3image            Windows Media Video 9 Image
 ..VIL. wnv1                 Winnov WNV1
 ..V..S wrapped_avframe      AVFrame to AVPacket passthrough
 ..V.L. ws_vqa               Westwood Studios VQA (Vector Quantized Animation) video
 ..V.L. xan_wc3              Wing Commander III / Xan
 ..V.L. xan_wc4              Wing Commander IV / Xxan
 ..VI.. xbin                 eXtended BINary text
 DEVI.S xbm                  XBM (X BitMap) image
 ..VIL. xface                X-face image
 DEVI.S xwd                  XWD (X Window Dump) image
 DEVI.. y41p                 Uncompressed YUV 4:1:1 12-bit
 ..V.L. yop                  Psygnosis YOP Video
 DEVI.. yuv4                 Uncompressed packed 4:2:0
 ..V..S zerocodec            ZeroCodec Lossless Video
 ..VI.S zlib                 LCL (LossLess Codec Library) ZLIB
 ..V..S zmbv                 Zip Motion Blocks Video
 ..A.L. 4gv                  4GV (Fourth Generation Vocoder)
 ..A.L. 8svx_exp             8SVX exponential
 ..A.L. 8svx_fib             8SVX fibonacci
 ..A.L. aac                  AAC (Advanced Audio Coding)
 ..A.L. aac_latm             AAC LATM (Advanced Audio Coding LATM syntax)
 ..A.L. ac3                  ATSC A/52A (AC-3)
 ..A.L. adpcm_4xm            ADPCM 4X Movie
 ..A.L. adpcm_adx            SEGA CRI ADX ADPCM
 ..A.L. adpcm_afc            ADPCM Nintendo Gamecube AFC
 ..A.L. adpcm_aica           ADPCM Yamaha AICA
 ..A.L. adpcm_ct             ADPCM Creative Technology
 ..A.L. adpcm_dtk            ADPCM Nintendo Gamecube DTK
 ..A.L. adpcm_ea             ADPCM Electronic Arts
 ..A.L. adpcm_ea_maxis_xa    ADPCM Electronic Arts Maxis CDROM XA
 ..A.L. adpcm_ea_r1          ADPCM Electronic Arts R1
 ..A.L. adpcm_ea_r2          ADPCM Electronic Arts R2
 ..A.L. adpcm_ea_r3          ADPCM Electronic Arts R3
 ..A.L. adpcm_ea_xas         ADPCM Electronic Arts XAS
 ..A.L. adpcm_g722           G.722 ADPCM
 ..A.L. adpcm_g726           G.726 ADPCM
 ..A.L. adpcm_g726le         G.726 ADPCM little-endian
 ..A.L. adpcm_ima_amv        ADPCM IMA AMV
 ..A.L. adpcm_ima_apc        ADPCM IMA CRYO APC
 ..A.L. adpcm_ima_dk3        ADPCM IMA Duck DK3
 ..A.L. adpcm_ima_dk4        ADPCM IMA Duck DK4
 ..A.L. adpcm_ima_ea_eacs    ADPCM IMA Electronic Arts EACS
 ..A.L. adpcm_ima_ea_sead    ADPCM IMA Electronic Arts SEAD
 ..A.L. adpcm_ima_iss        ADPCM IMA Funcom ISS
 ..A.L. adpcm_ima_oki        ADPCM IMA Dialogic OKI
 ..A.L. adpcm_ima_qt         ADPCM IMA QuickTime
 ..A.L. adpcm_ima_rad        ADPCM IMA Radical
 ..A.L. adpcm_ima_smjpeg     ADPCM IMA Loki SDL MJPEG
 ..A.L. adpcm_ima_wav        ADPCM IMA WAV
 ..A.L. adpcm_ima_ws         ADPCM IMA Westwood
 ..A.L. adpcm_ms             ADPCM Microsoft
 ..A.L. adpcm_psx            ADPCM Playstation
 ..A.L. adpcm_sbpro_2        ADPCM Sound Blaster Pro 2-bit
 ..A.L. adpcm_sbpro_3        ADPCM Sound Blaster Pro 2.6-bit
 ..A.L. adpcm_sbpro_4        ADPCM Sound Blaster Pro 4-bit
 ..A.L. adpcm_swf            ADPCM Shockwave Flash
 ..A.L. adpcm_thp            ADPCM Nintendo THP
 ..A.L. adpcm_thp_le         ADPCM Nintendo THP (Little-Endian)
 ..A.L. adpcm_vima           LucasArts VIMA audio
 ..A.L. adpcm_xa             ADPCM CDROM XA
 ..A.L. adpcm_yamaha         ADPCM Yamaha
 ..A..S alac                 ALAC (Apple Lossless Audio Codec)
 ..A.L. amr_nb               AMR-NB (Adaptive Multi-Rate NarrowBand)
 ..A.L. amr_wb               AMR-WB (Adaptive Multi-Rate WideBand)
 ..A..S ape                  Monkey's Audio
 ..A.L. atrac1               ATRAC1 (Adaptive TRansform Acoustic Coding)
 ..A.L. atrac3               ATRAC3 (Adaptive TRansform Acoustic Coding 3)
 ..A.L. atrac3p              ATRAC3+ (Adaptive TRansform Acoustic Coding 3+)
 ..A.L. avc                  On2 Audio for Video Codec
 ..A.L. binkaudio_dct        Bink Audio (DCT)
 ..A.L. binkaudio_rdft       Bink Audio (RDFT)
 ..A.L. bmv_audio            Discworld II BMV audio
 ..A.L. celt                 Constrained Energy Lapped Transform (CELT)
 ..A.L. comfortnoise         RFC 3389 Comfort Noise
 ..A.L. cook                 Cook / Cooker / Gecko (RealAudio G2)
 ..A.L. dsd_lsbf             DSD (Direct Stream Digital), least significant bit first
 ..A.L. dsd_lsbf_planar      DSD (Direct Stream Digital), least significant bit first, planar
 ..A.L. dsd_msbf             DSD (Direct Stream Digital), most significant bit first
 ..A.L. dsd_msbf_planar      DSD (Direct Stream Digital), most significant bit first, planar
 ..A.L. dsicinaudio          Delphine Software International CIN audio
 ..A.L. dss_sp               Digital Speech Standard - Standard Play mode (DSS SP)
 ..A.LS dts                  DCA (DTS Coherent Acoustics)
 ..A.L. dvaudio              DV audio
 ..A.L. eac3                 ATSC A/52B (AC-3, E-AC-3)
 ..A.L. evrc                 EVRC (Enhanced Variable Rate Codec)
 DEA..S flac                 FLAC (Free Lossless Audio Codec)
 ..A.L. g723_1               G.723.1
 ..A.L. g729                 G.729
 ..A.L. gsm                  GSM
 ..A.L. gsm_ms               GSM Microsoft variant
 ..A.L. iac                  IAC (Indeo Audio Coder)
 ..A.L. ilbc                 iLBC (Internet Low Bitrate Codec)
 ..A.L. imc                  IMC (Intel Music Coder)
 ..A.L. interplay_dpcm       DPCM Interplay
 ..A.L. interplayacm         Interplay ACM
 ..A.L. mace3                MACE (Macintosh Audio Compression/Expansion) 3:1
 ..A.L. mace6                MACE (Macintosh Audio Compression/Expansion) 6:1
 ..A.L. metasound            Voxware MetaSound
 ..A..S mlp                  MLP (Meridian Lossless Packing)
 ..A.L. mp1                  MP1 (MPEG audio layer 1)
 ..A.L. mp2                  MP2 (MPEG audio layer 2)
 ..A.L. mp3                  MP3 (MPEG audio layer 3)
 ..A.L. mp3adu               ADU (Application Data Unit) MP3 (MPEG audio layer 3)
 ..A.L. mp3on4               MP3onMP4
 ..A..S mp4als               MPEG-4 Audio Lossless Coding (ALS)
 ..A.L. musepack7            Musepack SV7
 ..A.L. musepack8            Musepack SV8
 ..A.L. nellymoser           Nellymoser Asao
 D.A.L. opus                 Opus (Opus Interactive Audio Codec)
 ..A.L. paf_audio            Amazing Studio Packed Animation File Audio
 DEA.L. pcm_alaw             PCM A-law / G.711 A-law
 D.A..S pcm_bluray           PCM signed 16|20|24-bit big-endian for Blu-ray media
 D.A..S pcm_dvd              PCM signed 20|24-bit big-endian
 DEA..S pcm_f32be            PCM 32-bit floating point big-endian
 DEA..S pcm_f32le            PCM 32-bit floating point little-endian
 DEA..S pcm_f64be            PCM 64-bit floating point big-endian
 DEA..S pcm_f64le            PCM 64-bit floating point little-endian
 ..A..S pcm_lxf              PCM signed 20-bit little-endian planar
 DEA.L. pcm_mulaw            PCM mu-law / G.711 mu-law
 DEA..S pcm_s16be            PCM signed 16-bit big-endian
 ..A..S pcm_s16be_planar     PCM signed 16-bit big-endian planar
 DEA..S pcm_s16le            PCM signed 16-bit little-endian
 DEA..S pcm_s16le_planar     PCM signed 16-bit little-endian planar
 DEA..S pcm_s24be            PCM signed 24-bit big-endian
 ..A..S pcm_s24daud          PCM D-Cinema audio signed 24-bit
 DEA..S pcm_s24le            PCM signed 24-bit little-endian
 DEA..S pcm_s24le_planar     PCM signed 24-bit little-endian planar
 DEA..S pcm_s32be            PCM signed 32-bit big-endian
 DEA..S pcm_s32le            PCM signed 32-bit little-endian
 DEA..S pcm_s32le_planar     PCM signed 32-bit little-endian planar
 DEA..S pcm_s8               PCM signed 8-bit
 DEA..S pcm_s8_planar        PCM signed 8-bit planar
 DEA..S pcm_u16be            PCM unsigned 16-bit big-endian
 DEA..S pcm_u16le            PCM unsigned 16-bit little-endian
 DEA..S pcm_u24be            PCM unsigned 24-bit big-endian
 DEA..S pcm_u24le            PCM unsigned 24-bit little-endian
 DEA..S pcm_u32be            PCM unsigned 32-bit big-endian
 DEA..S pcm_u32le            PCM unsigned 32-bit little-endian
 DEA..S pcm_u8               PCM unsigned 8-bit
 ..A.L. pcm_zork             PCM Zork
 ..A.L. qcelp                QCELP / PureVoice
 ..A.L. qdm2                 QDesign Music Codec 2
 ..A.L. qdmc                 QDesign Music
 ..A.L. ra_144               RealAudio 1.0 (14.4K)
 ..A.L. ra_288               RealAudio 2.0 (28.8K)
 ..A..S ralf                 RealAudio Lossless
 ..A.L. roq_dpcm             DPCM id RoQ
 ..A..S s302m                SMPTE 302M
 ..A.L. sdx2_dpcm            DPCM Squareroot-Delta-Exact
 ..A..S shorten              Shorten
 ..A.L. sipr                 RealAudio SIPR / ACELP.NET
 ..A.L. smackaudio           Smacker audio
 ..A.L. smv                  SMV (Selectable Mode Vocoder)
 ..A.L. sol_dpcm             DPCM Sol
 ..A... sonic                Sonic
 ..A... sonicls              Sonic lossless
 ..A.L. speex                Speex
 ..A..S tak                  TAK (Tom's lossless Audio Kompressor)
 ..A..S truehd               TrueHD
 ..A.L. truespeech           DSP Group TrueSpeech
 ..A..S tta                  TTA (True Audio)
 ..A.L. twinvq               VQF TwinVQ
 ..A.L. vmdaudio             Sierra VMD audio
 DEA.L. vorbis               Vorbis (encoders: libvorbis )
 ..A.L. voxware              Voxware RT29 Metasound
 ..A... wavesynth            Wave synthesis pseudo-codec
 ..A.LS wavpack              WavPack
 ..A.L. westwood_snd1        Westwood Audio (SND1)
 ..A..S wmalossless          Windows Media Audio Lossless
 ..A.L. wmapro               Windows Media Audio 9 Professional
 ..A.L. wmav1                Windows Media Audio 1
 ..A.L. wmav2                Windows Media Audio 2
 ..A.L. wmavoice             Windows Media Audio Voice
 ..A.L. xan_dpcm             DPCM Xan
 ..A.L. xma1                 Xbox Media Audio 1
 ..A.L. xma2                 Xbox Media Audio 2
 ..D... bin_data             binary data
 ..D... dvd_nav_packet       DVD Nav packet
 ..D... klv                  SMPTE 336M Key-Length-Value (KLV) metadata
 ..D... otf                  OpenType font
 ..D... timed_id3            timed ID3 metadata
 ..D... ttf                  TrueType font
 D.S... ass                  ASS (Advanced SSA) subtitle
 ..S... dvb_subtitle         DVB subtitles
 ..S... dvb_teletext         DVB teletext
 ..S... dvd_subtitle         DVD subtitles
 ..S... eia_608              EIA-608 closed captions
 ..S... hdmv_pgs_subtitle    HDMV Presentation Graphic Stream subtitles
 ..S... hdmv_text_subtitle   HDMV Text subtitle
 ..S... jacosub              JACOsub subtitle
 ..S... microdvd             MicroDVD subtitle
 ..S... mov_text             MOV text
 ..S... mpl2                 MPL2 subtitle
 ..S... pjs                  PJS (Phoenix Japanimation Society) subtitle
 ..S... realtext             RealText subtitle
 ..S... sami                 SAMI subtitle
 ..S... srt                  SubRip subtitle with embedded timing
 D.S... ssa                  SSA (SubStation Alpha) subtitle
 ..S... stl                  Spruce subtitle format
 D.S... subrip               SubRip subtitle (decoders: srt )
 ..S... subviewer            SubViewer subtitle
 ..S... subviewer1           SubViewer v1 subtitle
 D.S... text                 raw UTF-8 text
 ..S... vplayer              VPlayer subtitle
 ..S... webvtt               WebVTT subtitle
 ..S... xsub                 XSUB

建议使用 mkvtoolnix-gui
ffmpeg 切割文件一般会要求你重新编码,不能 copy。因为你指定分割的时间一般都不会在可以直接截断的帧之间。
而 mkvtoolnix-gui 可以自动适应,即推迟一点点时间。如果不喜,可以去掉 copy 参数,重新压制一遍。 :dagger:
mkvtoolnix-gui 产生的 mkv 文件,
如果一定要 mp4, 可以直接用 ffmpg copy 换容器, 看你的命令,想必不用我教了。

谢谢大大,确实用 mkvtoolnix 之后很方便,很且很多 preset 的设计,操作上很快速。
不过如果分割成几个 .mkv 之后,如果要用 ffmpeg 换容器成 .mp4 的话,应该要下什么样的命令?还请指导下~~

fucking , 感情你的命令都是抄的。
注意有的 mkv 不能这么转,比如音轨是 flac 的,等等。mp4 容器比 mkv 容器弱很多,支持的流格式少不少。
ffmpeg -i fuck.mkv -c:v copy -c:a copy fuck.mp4 -y

大大,您好
说是抄的也对,不过我也有去了解参数的意义和用法,不过你看,我按照你的方式下的命令,还是得出以下结果,所以我才怀疑我的 ffmpeg 根本无法 encode h264 或者他无法 mux 成 mp4…

Input #0, matroska,webm, from 'Now.You.See.Me.2.2016.2016.BD1080P.X264.AAC.English.CHS-ENG.Mp4Ba-001.mkv':
  Metadata:
    encoder         : libebml v1.3.3 + libmatroska v1.4.4
    creation_time   : 2016-09-17 06:38:32
  Duration: 00:44:59.93, start: 0.000000, bitrate: 915 kb/s
    Stream #0:0: Video: h264 (High), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 24 fps, 24 tbr, 1k tbn, 48 tbc (default)
    Stream #0:1: Audio: aac, 48000 Hz, 2 channels (default)
[NULL @ 0x155ed40] Unable to find a suitable output format for 'Now_you_see_me.mp4'
Now_you_see_me.mp4: Invalid argument

上面说了,有些 mkv 不能 copy 到 mp4 的,,你非要研究的话,把文件剪一节发上来看看。
不能 copy 的那就只有重编码呗。

看起来你是没有 mp4 这容器的支持?

这个是扯蛋。你用 ffmpeg 没啊。
输入上 mp4 的话,如果你指定的切割帧不是关键帧会自动从后面最近的关键帧开始的,开始的位置可能会出现几秒的重复画面而已。
avi 之类的貌似没有这个问题。

如果不是批量或者写脚本,只是想切割而不重新编码的话可以用 avidemux ,有图形界面,输出格式什么也可选,很好用。

另外,ffmpeg 最好装 packman 里的吧。有些版本会出现一些莫名其妙的问题。

另外 -ss -t 后面试一下使用秒做单位,即直接换成一个数字的形式。

h264+aac 这个用 mp4 封装没有任何问题。。。
他这个应该就是 ffmpeg 的问题。

我重新试了试,发现没问题,可能是我很小白时选的 mkvcopy 到 mp4 的视频音频流格式不对吧,然后我就几乎不用它剪文件了。
谢谢提醒。另外,你提到的那个 avidemux 网站速度简直了。。

packman 的源里有啊。界面有 gtk,qt 两种。

bugs10 得下 exe.。

我居然看懂你的意思了。。。 :nauseated_face:

谢谢前辈,但我的 ffmpeg 就是从 packman 里面安装的…

@kivallee 问题可能出在 L-SMASH Video Media Handler 和 yup420p 上面

我终于下载到了一个编码的 mp4:

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Coldplay ft. Beyoncé - Hymn For The Weekend.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: mp42mp41isomavc1
    creation_time   : 2016-01-29T01:36:05.000000Z
  Duration: 00:04:22.06, start: 0.000000, bitrate: 4757 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1920x800 [SAR 1:1 DAR 12:5], 4498 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 47.95 tbc (default)
    Metadata:
      creation_time   : 2016-01-29T01:36:05.000000Z
      handler_name    : L-SMASH Video Handler
      encoder         : AVC Coding
    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 256 kb/s (default)
    Metadata:
      creation_time   : 2016-01-29T01:36:05.000000Z
      handler_name    : L-SMASH Audio Handler

通过这段:

Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1920x800 [SAR 1:1 DAR 12:5], 4498 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 47.95 tbc (default)

得知你确实是用的 packman 源里面的 ffmpeg(不然 yuv420p 哪里显示的是 none)。

我的转换结果是这样的:

ffmpeg -ss 00:00:00 -i Coldplay\ ft.\ Beyoncé\ -\ Hymn\ For\ The\ Weekend.mp4 -vcodec copy -acodec copy -t 00:01:00 1.mp4
ffmpeg version 3.2.2 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 6 (SUSE Linux)
  configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --incdir=/usr/include/ffmpeg --extra-cflags='-fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -g' --optflags='-fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -g' --disable-htmlpages --enable-pic --disable-stripping --enable-shared --disable-static --enable-gpl --disable-openssl --enable-avresample --enable-libcdio --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libcelt --enable-libcdio --enable-libdc1394 --enable-libfreetype --enable-libgsm --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libwebp --enable-netcdf --enable-vaapi --enable-vdpau --enable-libfdk_aac --enable-nonfree --enable-libmp3lame --enable-libtwolame --enable-libx264 --enable-libx265 --enable-libxvid --enable-x11grab
  libavutil      55. 34.100 / 55. 34.100
  libavcodec     57. 64.101 / 57. 64.101
  libavformat    57. 56.100 / 57. 56.100
  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.1000Output #0, mp4, to '1.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: mp42mp41isomavc1
    encoder         : Lavf57.56.100
    Stream #0:0(und): Video: h264 (High) ([33][0][0][0] / 0x0021), yuv420p(tv, bt709), 1920x800 [SAR 1:1 DAR 12:5], q=2-31, 4498 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 24k tbc (default)
    Metadata:
      creation_time   : 2016-01-29T01:36:05.000000Z
      handler_name    : L-SMASH Video Handler
      encoder         : AVC Coding
    Stream #0:1(und): Audio: aac (LC) ([64][0][0][0] / 0x0040), 48000 Hz, stereo, 256 kb/s (default)
    Metadata:
      creation_time   : 2016-01-29T01:36:05.000000Z
      handler_name    : L-SMASH Audio Handler
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, ?] for help
frame= 1441 fps=0.0 q=-1.0 Lsize=   30335kB time=00:00:59.98 bitrate=4142.5kbits/s speed=1.51e+03x    
video:28418kB audio:1876kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.137289%

是成功的。

我的 ffmpeg -formats 是:

File formats:
 D. = Demuxing supported
 .E = Muxing supported
 --
 D  3dostr          3DO STR
  E 3g2             3GP2 (3GPP2 file format)
  E 3gp             3GP (3GPP file format)
 D  4xm             4X Technologies
  E a64             a64 - video for Commodore 64
 D  aa              Audible AA format files
 D  aac             raw ADTS AAC (Advanced Audio Coding)
 DE ac3             raw AC-3
 D  acm             Interplay ACM
 D  act             ACT Voice file format
 D  adf             Artworx Data Format
 D  adp             ADP
 D  ads             Sony PS2 ADS
  E adts            ADTS AAC (Advanced Audio Coding)
 DE adx             CRI ADX
 D  aea             MD STUDIO audio
 D  afc             AFC
 DE aiff            Audio IFF
 D  aix             CRI AIX
 DE alaw            PCM A-law
 D  alias_pix       Alias/Wavefront PIX image
 DE alsa            ALSA audio output
 DE amr             3GPP AMR
 D  anm             Deluxe Paint Animation
 D  apc             CRYO APC
 D  ape             Monkey's Audio
 DE apng            Animated Portable Network Graphics
 D  aqtitle         AQTitle subtitles
 DE asf             ASF (Advanced / Active Streaming Format)
 D  asf_o           ASF (Advanced / Active Streaming Format)
  E asf_stream      ASF (Advanced / Active Streaming Format)
 DE ass             SSA (SubStation Alpha) subtitle
 DE ast             AST (Audio Stream)
 DE au              Sun AU
 DE avi             AVI (Audio Video Interleaved)
  E avm2            SWF (ShockWave Flash) (AVM2)
 D  avr             AVR (Audio Visual Research)
 D  avs             AVS
 D  bethsoftvid     Bethesda Softworks VID
 D  bfi             Brute Force & Ignorance
 D  bfstm           BFSTM (Binary Cafe Stream)
 D  bin             Binary text
 D  bink            Bink
 DE bit             G.729 BIT file format
 D  bmp_pipe        piped bmp sequence
 D  bmv             Discworld II BMV
 D  boa             Black Ops Audio
 D  brender_pix     BRender PIX image
 D  brstm           BRSTM (Binary Revolution Stream)
 D  c93             Interplay C93
 DE caf             Apple CAF (Core Audio Format)
 DE cavsvideo       raw Chinese AVS (Audio Video Standard) video
 D  cdg             CD Graphics
 D  cdxl            Commodore CDXL video
 D  cine            Phantom Cine
 D  concat          Virtual concatenation script
  E crc             CRC testing
  E dash            DASH Muxer
 DE data            raw data
 DE daud            D-Cinema audio
 D  dcstr           Sega DC STR
 D  dds_pipe        piped dds sequence
 D  dfa             Chronomaster DFA
 DE dirac           raw Dirac
 DE dnxhd           raw DNxHD (SMPTE VC-3)
 D  dpx_pipe        piped dpx sequence
 D  dsf             DSD Stream File (DSF)
 D  dsicin          Delphine Software International CIN
 D  dss             Digital Speech Standard (DSS)
 DE dts             raw DTS
 D  dtshd           raw DTS-HD
 DE dv              DV (Digital Video)
 D  dv1394          DV1394 A/V grab
 D  dvbsub          raw dvbsub
 D  dvbtxt          dvbtxt
  E dvd             MPEG-2 PS (DVD VOB)
 D  dxa             DXA
 D  ea              Electronic Arts Multimedia
 D  ea_cdata        Electronic Arts cdata
 DE eac3            raw E-AC-3
 D  epaf            Ensoniq Paris Audio File
 D  exr_pipe        piped exr sequence
 DE f32be           PCM 32-bit floating-point big-endian
 DE f32le           PCM 32-bit floating-point little-endian
  E f4v             F4V Adobe Flash Video
 DE f64be           PCM 64-bit floating-point big-endian
 DE f64le           PCM 64-bit floating-point little-endian
 DE fbdev           Linux framebuffer
 DE ffm             FFM (FFserver live feed)
 DE ffmetadata      FFmpeg metadata in text
  E fifo            FIFO queue pseudo-muxer
 D  film_cpk        Sega FILM / CPK
 DE filmstrip       Adobe Filmstrip
 DE flac            raw FLAC
 D  flic            FLI/FLC/FLX animation
 DE flv             FLV (Flash Video)
  E framecrc        framecrc testing
  E framehash       Per-frame hash testing
  E framemd5        Per-frame MD5 testing
 D  frm             Megalux Frame
 D  fsb             FMOD Sample Bank
 DE g722            raw G.722
 DE g723_1          raw G.723.1
 D  g729            G.729 raw format demuxer
 D  genh            GENeric Header
 DE gif             GIF Animation
 DE gsm             raw GSM
 DE gxf             GXF (General eXchange Format)
 DE h261            raw H.261
 DE h263            raw H.263
 DE h264            raw H.264 video
  E hash            Hash testing
  E hds             HDS Muxer
 DE hevc            raw HEVC video
  E hls             Apple HTTP Live Streaming
 D  hls,applehttp   Apple HTTP Live Streaming
 D  hnm             Cryo HNM v4
 DE ico             Microsoft Windows ICO
 D  idcin           id Cinematic
 D  idf             iCE Draw File
 D  iff             IFF (Interchange File Format)
 DE ilbc            iLBC storage
 DE image2          image2 sequence
 DE image2pipe      piped image2 sequence
 D  ingenient       raw Ingenient MJPEG
 D  ipmovie         Interplay MVE
  E ipod            iPod H.264 MP4 (MPEG-4 Part 14)
 DE ircam           Berkeley/IRCAM/CARL Sound Format
  E ismv            ISMV/ISMA (Smooth Streaming)
 D  iss             Funcom ISS
 D  iv8             IndigoVision 8000 video
 DE ivf             On2 IVF
 D  ivr             IVR (Internet Video Recording)
 D  j2k_pipe        piped j2k sequence
 D  jack            JACK Audio Connection Kit
 DE jacosub         JACOsub subtitle format
 D  jpeg_pipe       piped jpeg sequence
 D  jpegls_pipe     piped jpegls sequence
 D  jv              Bitmap Brothers JV
  E latm            LOAS/LATM
 D  lavfi           Libavfilter virtual input device
 D  libcdio          
 D  libdc1394       dc1394 v.2 A/V grab
 D  live_flv        live RTMP FLV (Flash Video)
 D  lmlm4           raw lmlm4
 D  loas            LOAS AudioSyncStream
 DE lrc             LRC lyrics
 D  lvf             LVF
 D  lxf             VR native stream (LXF)
 DE m4v             raw MPEG-4 video
  E matroska        Matroska
 D  matroska,webm   Matroska / WebM
  E md5             MD5 testing
 D  mgsts           Metal Gear Solid: The Twin Snakes
 DE microdvd        MicroDVD subtitle format
 DE mjpeg           raw MJPEG video
  E mkvtimestamp_v2 extract pts as timecode v2 format, as defined by mkvtoolnix
 DE mlp             raw MLP
 D  mlv             Magic Lantern Video (MLV)
 D  mm              American Laser Games MM
 DE mmf             Yamaha SMAF
  E mov             QuickTime / MOV
 D  mov,mp4,m4a,3gp,3g2,mj2 QuickTime / MOV
  E mp2             MP2 (MPEG audio layer 2)
 DE mp3             MP3 (MPEG audio layer 3)
  E mp4             MP4 (MPEG-4 Part 14)
 D  mpc             Musepack
 D  mpc8            Musepack SV8
 DE mpeg            MPEG-1 Systems / MPEG program stream
  E mpeg1video      raw MPEG-1 video
  E mpeg2video      raw MPEG-2 video
 DE mpegts          MPEG-TS (MPEG-2 Transport Stream)
 D  mpegtsraw       raw MPEG-TS (MPEG-2 Transport Stream)
 D  mpegvideo       raw MPEG video
 DE mpjpeg          MIME multipart JPEG
 D  mpl2            MPL2 subtitles
 D  mpsub           MPlayer subtitles
 D  msf             Sony PS3 MSF
 D  msnwctcp        MSN TCP Webcam stream
 D  mtaf            Konami PS2 MTAF
 D  mtv             MTV
 DE mulaw           PCM mu-law
 D  musx            Eurocom MUSX
 D  mv              Silicon Graphics Movie
 D  mvi             Motion Pixels MVI
 DE mxf             MXF (Material eXchange Format)
  E mxf_d10         MXF (Material eXchange Format) D-10 Mapping
  E mxf_opatom      MXF (Material eXchange Format) Operational Pattern Atom
 D  mxg             MxPEG clip
 D  nc              NC camera feed
 D  nistsphere      NIST SPeech HEader REsources
 D  nsv             Nullsoft Streaming Video
  E null            raw null video
 DE nut             NUT
 D  nuv             NuppelVideo
  E oga             Ogg Audio
 DE ogg             Ogg
  E ogv             Ogg Video
 DE oma             Sony OpenMG audio
  E opus            Ogg Opus
 DE oss             OSS (Open Sound System) playback
 D  paf             Amazing Studio Packed Animation File
 D  pam_pipe        piped pam sequence
 D  pbm_pipe        piped pbm sequence
 D  pcx_pipe        piped pcx sequence
 D  pgm_pipe        piped pgm sequence
 D  pgmyuv_pipe     piped pgmyuv sequence
 D  pictor_pipe     piped pictor sequence
 D  pjs             PJS (Phoenix Japanimation Society) subtitles
 D  pmp             Playstation Portable PMP
 D  png_pipe        piped png sequence
 D  ppm_pipe        piped ppm sequence
  E psp             PSP MP4 (MPEG-4 Part 14)
 D  psxstr          Sony Playstation STR
 DE pulse           Pulse audio output
 D  pva             TechnoTrend PVA
 D  pvf             PVF (Portable Voice Format)
 D  qcp             QCP
 D  qdraw_pipe      piped qdraw sequence
 D  r3d             REDCODE R3D
 DE rawvideo        raw video
 D  realtext        RealText subtitle format
 D  redspark        RedSpark
 D  rl2             RL2
 DE rm              RealMedia
 DE roq             raw id RoQ
 D  rpl             RPL / ARMovie
 D  rsd             GameCube RSD
 DE rso             Lego Mindstorms RSO
 DE rtp             RTP output
  E rtp_mpegts      RTP/mpegts output format
 DE rtsp            RTSP output
 DE s16be           PCM signed 16-bit big-endian
 DE s16le           PCM signed 16-bit little-endian
 DE s24be           PCM signed 24-bit big-endian
 DE s24le           PCM signed 24-bit little-endian
 DE s32be           PCM signed 32-bit big-endian
 DE s32le           PCM signed 32-bit little-endian
 DE s8              PCM signed 8-bit
 D  sami            SAMI subtitle format
 DE sap             SAP output
 D  sbg             SBaGen binaural beats script
  E sdl,sdl2        SDL2 output device
 D  sdp             SDP
 D  sdr2            SDR2
  E segment         segment
 D  sgi_pipe        piped sgi sequence
 D  shn             raw Shorten
 D  siff            Beam Software SIFF
  E singlejpeg      JPEG single image
 D  sln             Asterisk raw pcm
 DE smjpeg          Loki SDL MJPEG
 D  smk             Smacker
  E smoothstreaming Smooth Streaming Muxer
 D  smush           LucasArts Smush
 D  sol             Sierra SOL
 DE sox             SoX native
 DE spdif           IEC 61937 (used on S/PDIF - IEC958)
  E spx             Ogg Speex
 DE srt             SubRip subtitle
 D  stl             Spruce subtitle format
  E stream_segment,ssegment streaming segment muxer
 D  subviewer       SubViewer subtitle format
 D  subviewer1      SubViewer v1 subtitle format
 D  sunrast_pipe    piped sunrast sequence
 D  sup             raw HDMV Presentation Graphic Stream subtitles
 D  svag            Konami PS2 SVAG
  E svcd            MPEG-2 PS (SVCD)
 DE swf             SWF (ShockWave Flash)
 D  tak             raw TAK
 D  tedcaptions     TED Talks captions
  E tee             Multiple muxer tee
 D  thp             THP
 D  tiertexseq      Tiertex Limited SEQ
 D  tiff_pipe       piped tiff sequence
 D  tmv             8088flex TMV
 DE truehd          raw TrueHD
 DE tta             TTA (True Audio)
 D  tty             Tele-typewriter
 D  txd             Renderware TeXture Dictionary
 DE u16be           PCM unsigned 16-bit big-endian
 DE u16le           PCM unsigned 16-bit little-endian
 DE u24be           PCM unsigned 24-bit big-endian
 DE u24le           PCM unsigned 24-bit little-endian
 DE u32be           PCM unsigned 32-bit big-endian
 DE u32le           PCM unsigned 32-bit little-endian
 DE u8              PCM unsigned 8-bit
  E uncodedframecrc uncoded framecrc testing
 D  v210            Uncompressed 4:2:2 10-bit
 D  v210x           Uncompressed 4:2:2 10-bit
  E v4l2            Video4Linux2 output device
 D  vag             Sony PS2 VAG
 DE vc1             raw VC-1 video
 DE vc1test         VC-1 test bitstream
  E vcd             MPEG-1 Systems / MPEG program stream (VCD)
 D  video4linux2,v4l2 Video4Linux2 device grab
 D  vivo            Vivo
 D  vmd             Sierra VMD
  E vob             MPEG-2 PS (VOB)
 D  vobsub          VobSub subtitle format
 DE voc             Creative Voice
 D  vpk             Sony PS2 VPK
 D  vplayer         VPlayer subtitles
 D  vqf             Nippon Telegraph and Telephone Corporation (NTT) TwinVQ
 DE w64             Sony Wave64
 DE wav             WAV / WAVE (Waveform Audio)
 D  wc3movie        Wing Commander III movie
  E webm            WebM
  E webm_chunk      WebM Chunk Muxer
 DE webm_dash_manifest WebM DASH Manifest
  E webp            WebP
 D  webp_pipe       piped webp sequence
 DE webvtt          WebVTT subtitle
 D  wsaud           Westwood Studios audio
 D  wsd             Wideband Single-bit Data (WSD)
 D  wsvqa           Westwood Studios VQA
 DE wtv             Windows Television (WTV)
 DE wv              raw WavPack
 D  wve             Psion 3 audio
 D  x11grab         X11 screen capture, using XCB
 D  xa              Maxis XA
 D  xbin            eXtended BINary text (XBIN)
 D  xmv             Microsoft XMV
 D  xvag            Sony PS3 XVAG
 D  xwma            Microsoft xWMA
 D  yop             Psygnosis YOP
 DE yuv4mpegpipe    YUV4MPEG pipe

我的 ffmpeg -codec 是:

Codecs:
 D..... = Decoding supported
 .E.... = Encoding supported
 ..V... = Video codec
 ..A... = Audio codec
 ..S... = Subtitle codec
 ...I.. = Intra frame-only codec
 ....L. = Lossy compression
 .....S = Lossless compression
 -------
 D.VI.. 012v                 Uncompressed 4:2:2 10-bit
 D.V.L. 4xm                  4X Movie
 D.VI.S 8bps                 QuickTime 8BPS video
 .EVIL. a64_multi            Multicolor charset for Commodore 64 (encoders: a64multi )
 .EVIL. a64_multi5           Multicolor charset for Commodore 64, extended with 5th color (colram) (encoders: a64multi5 )
 D.V..S aasc                 Autodesk RLE
 D.VIL. aic                  Apple Intermediate Codec
 DEVI.S alias_pix            Alias/Wavefront PIX image
 DEVIL. amv                  AMV Video
 D.V.L. anm                  Deluxe Paint Animation
 D.V.L. ansi                 ASCII/ANSI art
 DEV..S apng                 APNG (Animated Portable Network Graphics) image
 DEVIL. asv1                 ASUS V1
 DEVIL. asv2                 ASUS V2
 D.VIL. aura                 Auravision AURA
 D.VIL. aura2                Auravision Aura 2
 D.V... avrn                 Avid AVI Codec
 DEVI.. avrp                 Avid 1:1 10-bit RGB Packer
 D.V.L. avs                  AVS (Audio Video Standard) video
 DEVI.. avui                 Avid Meridien Uncompressed
 DEVI.. ayuv                 Uncompressed packed MS 4:4:4:4
 D.V.L. bethsoftvid          Bethesda VID video
 D.V.L. bfi                  Brute Force & Ignorance
 D.V.L. binkvideo            Bink video
 D.VI.. bintext              Binary text
 DEVI.S bmp                  BMP (Windows and OS/2 bitmap)
 D.V..S bmv_video            Discworld II BMV video
 D.VI.S brender_pix          BRender PIX image
 D.V.L. c93                  Interplay C93
 D.V.L. cavs                 Chinese AVS (Audio Video Standard) (AVS1-P2, JiZhun profile)
 D.V.L. cdgraphics           CD Graphics video
 D.VIL. cdxl                 Commodore CDXL video
 D.V.L. cfhd                 Cineform HD
 DEV.L. cinepak              Cinepak
 DEVIL. cljr                 Cirrus Logic AccuPak
 D.VI.S cllc                 Canopus Lossless Codec
 D.V.L. cmv                  Electronic Arts CMV video (decoders: eacmv )
 D.V... cpia                 CPiA video format
 D.V..S cscd                 CamStudio (decoders: camstudio )
 D.VIL. cyuv                 Creative YUV (CYUV)
 ..V.LS daala                Daala
 D.VILS dds                  DirectDraw Surface image decoder
 D.V.L. dfa                  Chronomaster DFA
 DEV.LS dirac                Dirac (decoders: dirac libschroedinger ) (encoders: vc2 libschroedinger )
 DEVIL. dnxhd                VC3/DNxHD
 DEVI.S dpx                  DPX (Digital Picture Exchange) image
 D.V.L. dsicinvideo          Delphine Software International CIN video
 DEVIL. dvvideo              DV (Digital Video)
 D.V..S dxa                  Feeble Files/ScummVM DXA
 D.VI.S dxtory               Dxtory
 D.VIL. dxv                  Resolume DXV
 D.V.L. escape124            Escape 124
 D.V.L. escape130            Escape 130
 D.VILS exr                  OpenEXR image
 DEV..S ffv1                 FFmpeg video codec #1
 DEVI.S ffvhuff              Huffyuv FFmpeg variant
 D.V.L. fic                  Mirillis FIC
 DEV..S flashsv              Flash Screen Video v1
 DEV.L. flashsv2             Flash Screen Video v2
 D.V..S flic                 Autodesk Animator Flic video
 DEV.L. flv1                 FLV / Sorenson Spark / Sorenson H.263 (Flash Video) (decoders: flv ) (encoders: flv )
 D.V..S fraps                Fraps
 D.VI.S frwu                 Forward Uncompressed
 D.V.L. g2m                  Go2Meeting
 DEV..S gif                  GIF (Graphics Interchange Format)
 DEV.L. h261                 H.261
 DEV.L. h263                 H.263 / H.263-1996, H.263+ / H.263-1998 / H.263 version 2
 D.V.L. h263i                Intel H.263
 DEV.L. h263p                H.263+ / H.263-1998 / H.263 version 2
 DEV.LS h264                 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (decoders: h264 h264_vdpau ) (encoders: libx264 libx264rgb h264_nvenc h264_vaapi nvenc nvenc_h264 )
 D.VIL. hap                  Vidvox Hap decoder
 DEV.L. hevc                 H.265 / HEVC (High Efficiency Video Coding) (encoders: libx265 nvenc_hevc hevc_nvenc hevc_vaapi )
 D.V.L. hnm4video            HNM 4 video
 D.VIL. hq_hqa               Canopus HQ/HQA
 D.VIL. hqx                  Canopus HQX
 DEVI.S huffyuv              HuffYUV
 D.V.L. idcin                id Quake II CIN video (decoders: idcinvideo )
 D.VI.. idf                  iCEDraw text
 D.V.L. iff_ilbm             IFF ACBM/ANIM/DEEP/ILBM/PBM/RGB8/RGBN (decoders: iff )
 D.V.L. indeo2               Intel Indeo 2
 D.V.L. indeo3               Intel Indeo 3
 D.V.L. indeo4               Intel Indeo Video Interactive 4
 D.V.L. indeo5               Intel Indeo Video Interactive 5
 D.V.L. interplayvideo       Interplay MVE video
 DEVILS jpeg2000             JPEG 2000 (decoders: jpeg2000 libopenjpeg ) (encoders: jpeg2000 libopenjpeg )
 DEVILS jpegls               JPEG-LS
 D.VIL. jv                   Bitmap Brothers JV video
 D.V.L. kgv1                 Kega Game Video
 D.V.L. kmvc                 Karl Morton's video codec
 D.VI.S lagarith             Lagarith lossless
 .EVI.S ljpeg                Lossless JPEG
 D.VI.S loco                 LOCO
 D.VI.S m101                 Matrox Uncompressed SD
 D.V.L. mad                  Electronic Arts Madcow Video (decoders: eamad )
 D.VI.S magicyuv             MagicYUV video
 D.VIL. mdec                 Sony PlayStation MDEC (Motion DECoder)
 D.V.L. mimic                Mimic
 DEVIL. mjpeg                Motion JPEG (encoders: mjpeg mjpeg_vaapi )
 D.VIL. mjpegb               Apple MJPEG-B
 D.V.L. mmvideo              American Laser Games MM Video
 D.V.L. motionpixels         Motion Pixels video
 DEV.L. mpeg1video           MPEG-1 video (decoders: mpeg1video mpeg1video_vdpau )
 DEV.L. mpeg2video           MPEG-2 video (decoders: mpeg2video mpegvideo mpegvideo_vdpau )
 DEV.L. mpeg4                MPEG-4 part 2 (decoders: mpeg4 mpeg4_vdpau ) (encoders: mpeg4 libxvid )
 ..V.L. mpegvideo_xvmc       MPEG-1/2 video XvMC (X-Video Motion Compensation)
 D.V.L. msa1                 MS ATC Screen
 D.V.L. msmpeg4v1            MPEG-4 part 2 Microsoft variant version 1
 DEV.L. msmpeg4v2            MPEG-4 part 2 Microsoft variant version 2
 DEV.L. msmpeg4v3            MPEG-4 part 2 Microsoft variant version 3 (decoders: msmpeg4 ) (encoders: msmpeg4 )
 D.V..S msrle                Microsoft RLE
 D.V.L. mss1                 MS Screen 1
 D.VIL. mss2                 MS Windows Media Video V9 Screen
 DEV.L. msvideo1             Microsoft Video 1
 D.VI.S mszh                 LCL (LossLess Codec Library) MSZH
 D.V.L. mts2                 MS Expression Encoder Screen
 D.VIL. mvc1                 Silicon Graphics Motion Video Compressor 1
 D.VIL. mvc2                 Silicon Graphics Motion Video Compressor 2
 D.V.L. mxpeg                Mobotix MxPEG video
 D.V.L. nuv                  NuppelVideo/RTJPEG
 D.V.L. paf_video            Amazing Studio Packed Animation File Video
 DEVI.S pam                  PAM (Portable AnyMap) image
 DEVI.S pbm                  PBM (Portable BitMap) image
 DEVI.S pcx                  PC Paintbrush PCX image
 DEVI.S pgm                  PGM (Portable GrayMap) image
 DEVI.S pgmyuv               PGMYUV (Portable GrayMap YUV) image
 D.VIL. pictor               Pictor/PC Paint
 DEV..S png                  PNG (Portable Network Graphics) image
 DEVI.S ppm                  PPM (Portable PixelMap) image
 DEVIL. prores               Apple ProRes (iCodec Pro) (decoders: prores prores_lgpl ) (encoders: prores prores_aw prores_ks )
 D.VIL. ptx                  V.Flash PTX image
 D.VI.S qdraw                Apple QuickDraw
 D.V.L. qpeg                 Q-team QPEG
 DEV..S qtrle                QuickTime Animation (RLE) video
 DEVI.S r10k                 AJA Kona 10-bit RGB Codec
 DEVI.S r210                 Uncompressed RGB 10-bit
 DEVI.S rawvideo             raw video
 D.VIL. rl2                  RL2 video
 DEV.L. roq                  id RoQ video (decoders: roqvideo ) (encoders: roqvideo )
 D.V.L. rpza                 QuickTime video (RPZA)
 D.V..S rscc                 innoHeim/Rsupport Screen Capture Codec
 DEV.L. rv10                 RealVideo 1.0
 DEV.L. rv20                 RealVideo 2.0
 D.V.L. rv30                 RealVideo 3.0
 D.V.L. rv40                 RealVideo 4.0
 D.V.L. sanm                 LucasArts SANM/SMUSH video
 D.V..S screenpresso         Screenpresso
 DEVI.S sgi                  SGI image
 D.VI.S sgirle               SGI RLE 8-bit
 D.VI.S sheervideo           BitJazz SheerVideo
 D.V.L. smackvideo           Smacker video (decoders: smackvid )
 D.V.L. smc                  QuickTime Graphics (SMC)
 D.V... smvjpeg              Sigmatel Motion Video
 DEV.LS snow                 Snow
 D.VIL. sp5x                 Sunplus JPEG (SP5X)
 DEVI.S sunrast              Sun Rasterfile image
 DEV.L. svq1                 Sorenson Vector Quantizer 1 / Sorenson Video 1 / SVQ1
 D.V.L. svq3                 Sorenson Vector Quantizer 3 / Sorenson Video 3 / SVQ3
 DEVI.S targa                Truevision Targa image
 D.VI.. targa_y216           Pinnacle TARGA CineWave YUV16
 D.V.L. tdsc                 TDSC
 D.V.L. tgq                  Electronic Arts TGQ video (decoders: eatgq )
 D.V.L. tgv                  Electronic Arts TGV video (decoders: eatgv )
 DEV.L. theora               Theora (encoders: libtheora )
 D.VIL. thp                  Nintendo Gamecube THP video
 D.V.L. tiertexseqvideo      Tiertex Limited SEQ video
 DEVI.S tiff                 TIFF image
 D.VIL. tmv                  8088flex TMV
 D.V.L. tqi                  Electronic Arts TQI video (decoders: eatqi )
 D.V.L. truemotion1          Duck TrueMotion 1.0
 D.V.L. truemotion2          Duck TrueMotion 2.0
 D.V.L. truemotion2rt        Duck TrueMotion 2.0 Real Time
 D.V..S tscc                 TechSmith Screen Capture Codec (decoders: camtasia )
 D.V.L. tscc2                TechSmith Screen Codec 2
 D.VIL. txd                  Renderware TXD (TeXture Dictionary) image
 D.V.L. ulti                 IBM UltiMotion (decoders: ultimotion )
 DEVI.S utvideo              Ut Video
 DEVI.S v210                 Uncompressed 4:2:2 10-bit
 D.VI.S v210x                Uncompressed 4:2:2 10-bit
 DEVI.. v308                 Uncompressed packed 4:4:4
 DEVI.. v408                 Uncompressed packed QT 4:4:4:4
 DEVI.S v410                 Uncompressed 4:4:4 10-bit
 D.V.L. vb                   Beam Software VB
 D.VI.S vble                 VBLE Lossless Codec
 D.V.L. vc1                  SMPTE VC-1 (decoders: vc1 vc1_vdpau )
 D.V.L. vc1image             Windows Media Video 9 Image v2
 D.VIL. vcr1                 ATI VCR1
 D.VIL. vixl                 Miro VideoXL (decoders: xl )
 D.V.L. vmdvideo             Sierra VMD video
 D.V..S vmnc                 VMware Screen Codec / VMware Video
 D.V.L. vp3                  On2 VP3
 D.V.L. vp5                  On2 VP5
 D.V.L. vp6                  On2 VP6
 D.V.L. vp6a                 On2 VP6 (Flash version, with alpha channel)
 D.V.L. vp6f                 On2 VP6 (Flash version)
 D.V.L. vp7                  On2 VP7
 DEV.L. vp8                  On2 VP8 (decoders: vp8 libvpx ) (encoders: libvpx )
 DEV.L. vp9                  Google VP9 (decoders: vp9 libvpx-vp9 ) (encoders: libvpx-vp9 )
 DEVILS webp                 WebP (encoders: libwebp_anim libwebp )
 DEV.L. wmv1                 Windows Media Video 7
 DEV.L. wmv2                 Windows Media Video 8
 D.V.L. wmv3                 Windows Media Video 9 (decoders: wmv3 wmv3_vdpau )
 D.V.L. wmv3image            Windows Media Video 9 Image
 D.VIL. wnv1                 Winnov WNV1
 .EV..S wrapped_avframe      AVFrame to AVPacket passthrough
 D.V.L. ws_vqa               Westwood Studios VQA (Vector Quantized Animation) video (decoders: vqavideo )
 D.V.L. xan_wc3              Wing Commander III / Xan
 D.V.L. xan_wc4              Wing Commander IV / Xxan
 D.VI.. xbin                 eXtended BINary text
 DEVI.S xbm                  XBM (X BitMap) image
 DEVIL. xface                X-face image
 DEVI.S xwd                  XWD (X Window Dump) image
 DEVI.. y41p                 Uncompressed YUV 4:1:1 12-bit
 D.VI.S ylc                  YUY2 Lossless Codec
 D.V.L. yop                  Psygnosis YOP Video
 DEVI.. yuv4                 Uncompressed packed 4:2:0
 D.V..S zerocodec            ZeroCodec Lossless Video
 DEVI.S zlib                 LCL (LossLess Codec Library) ZLIB
 DEV..S zmbv                 Zip Motion Blocks Video
 ..A.L. 4gv                  4GV (Fourth Generation Vocoder)
 D.A.L. 8svx_exp             8SVX exponential
 D.A.L. 8svx_fib             8SVX fibonacci
 DEA.L. aac                  AAC (Advanced Audio Coding) (decoders: aac aac_fixed libfdk_aac ) (encoders: aac libfdk_aac )
 D.A.L. aac_latm             AAC LATM (Advanced Audio Coding LATM syntax)
 DEA.L. ac3                  ATSC A/52A (AC-3) (decoders: ac3 ac3_fixed ) (encoders: ac3 ac3_fixed )
 D.A.L. adpcm_4xm            ADPCM 4X Movie
 DEA.L. adpcm_adx            SEGA CRI ADX ADPCM
 D.A.L. adpcm_afc            ADPCM Nintendo Gamecube AFC
 D.A.L. adpcm_aica           ADPCM Yamaha AICA
 D.A.L. adpcm_ct             ADPCM Creative Technology
 D.A.L. adpcm_dtk            ADPCM Nintendo Gamecube DTK
 D.A.L. adpcm_ea             ADPCM Electronic Arts
 D.A.L. adpcm_ea_maxis_xa    ADPCM Electronic Arts Maxis CDROM XA
 D.A.L. adpcm_ea_r1          ADPCM Electronic Arts R1
 D.A.L. adpcm_ea_r2          ADPCM Electronic Arts R2
 D.A.L. adpcm_ea_r3          ADPCM Electronic Arts R3
 D.A.L. adpcm_ea_xas         ADPCM Electronic Arts XAS
 DEA.L. adpcm_g722           G.722 ADPCM (decoders: g722 ) (encoders: g722 )
 DEA.L. adpcm_g726           G.726 ADPCM (decoders: g726 ) (encoders: g726 )
 D.A.L. adpcm_g726le         G.726 ADPCM little-endian (decoders: g726le )
 D.A.L. adpcm_ima_amv        ADPCM IMA AMV
 D.A.L. adpcm_ima_apc        ADPCM IMA CRYO APC
 D.A.L. adpcm_ima_dat4       ADPCM IMA Eurocom DAT4
 D.A.L. adpcm_ima_dk3        ADPCM IMA Duck DK3
 D.A.L. adpcm_ima_dk4        ADPCM IMA Duck DK4
 D.A.L. adpcm_ima_ea_eacs    ADPCM IMA Electronic Arts EACS
 D.A.L. adpcm_ima_ea_sead    ADPCM IMA Electronic Arts SEAD
 D.A.L. adpcm_ima_iss        ADPCM IMA Funcom ISS
 D.A.L. adpcm_ima_oki        ADPCM IMA Dialogic OKI
 DEA.L. adpcm_ima_qt         ADPCM IMA QuickTime
 D.A.L. adpcm_ima_rad        ADPCM IMA Radical
 D.A.L. adpcm_ima_smjpeg     ADPCM IMA Loki SDL MJPEG
 DEA.L. adpcm_ima_wav        ADPCM IMA WAV
 D.A.L. adpcm_ima_ws         ADPCM IMA Westwood
 DEA.L. adpcm_ms             ADPCM Microsoft
 D.A.L. adpcm_mtaf           ADPCM MTAF
 D.A.L. adpcm_psx            ADPCM Playstation
 D.A.L. adpcm_sbpro_2        ADPCM Sound Blaster Pro 2-bit
 D.A.L. adpcm_sbpro_3        ADPCM Sound Blaster Pro 2.6-bit
 D.A.L. adpcm_sbpro_4        ADPCM Sound Blaster Pro 4-bit
 DEA.L. adpcm_swf            ADPCM Shockwave Flash
 D.A.L. adpcm_thp            ADPCM Nintendo THP
 D.A.L. adpcm_thp_le         ADPCM Nintendo THP (Little-Endian)
 D.A.L. adpcm_vima           LucasArts VIMA audio
 D.A.L. adpcm_xa             ADPCM CDROM XA
 DEA.L. adpcm_yamaha         ADPCM Yamaha
 DEA..S alac                 ALAC (Apple Lossless Audio Codec)
 D.A.L. amr_nb               AMR-NB (Adaptive Multi-Rate NarrowBand) (decoders: amrnb )
 D.A.L. amr_wb               AMR-WB (Adaptive Multi-Rate WideBand) (decoders: amrwb )
 D.A..S ape                  Monkey's Audio
 D.A.L. atrac1               ATRAC1 (Adaptive TRansform Acoustic Coding)
 D.A.L. atrac3               ATRAC3 (Adaptive TRansform Acoustic Coding 3)
 D.A.L. atrac3p              ATRAC3+ (Adaptive TRansform Acoustic Coding 3+) (decoders: atrac3plus )
 D.A.L. avc                  On2 Audio for Video Codec (decoders: on2avc )
 D.A.L. binkaudio_dct        Bink Audio (DCT)
 D.A.L. binkaudio_rdft       Bink Audio (RDFT)
 D.A.L. bmv_audio            Discworld II BMV audio
 D.A.L. celt                 Constrained Energy Lapped Transform (CELT) (decoders: libcelt )
 DEA.L. comfortnoise         RFC 3389 Comfort Noise
 D.A.L. cook                 Cook / Cooker / Gecko (RealAudio G2)
 D.A.L. dsd_lsbf             DSD (Direct Stream Digital), least significant bit first
 D.A.L. dsd_lsbf_planar      DSD (Direct Stream Digital), least significant bit first, planar
 D.A.L. dsd_msbf             DSD (Direct Stream Digital), most significant bit first
 D.A.L. dsd_msbf_planar      DSD (Direct Stream Digital), most significant bit first, planar
 D.A.L. dsicinaudio          Delphine Software International CIN audio
 D.A.L. dss_sp               Digital Speech Standard - Standard Play mode (DSS SP)
 D.A..S dst                  DST (Direct Stream Transfer)
 DEA.LS dts                  DCA (DTS Coherent Acoustics) (decoders: dca ) (encoders: dca )
 D.A.L. dvaudio              DV audio
 DEA.L. eac3                 ATSC A/52B (AC-3, E-AC-3)
 D.A.L. evrc                 EVRC (Enhanced Variable Rate Codec)
 DEA..S flac                 FLAC (Free Lossless Audio Codec)
 DEA.L. g723_1               G.723.1
 D.A.L. g729                 G.729
 DEA.L. gsm                  GSM (decoders: gsm libgsm ) (encoders: libgsm )
 DEA.L. gsm_ms               GSM Microsoft variant (decoders: gsm_ms libgsm_ms ) (encoders: libgsm_ms )
 D.A.L. iac                  IAC (Indeo Audio Coder)
 ..A.L. ilbc                 iLBC (Internet Low Bitrate Codec)
 D.A.L. imc                  IMC (Intel Music Coder)
 D.A.L. interplay_dpcm       DPCM Interplay
 D.A.L. interplayacm         Interplay ACM
 D.A.L. mace3                MACE (Macintosh Audio Compression/Expansion) 3:1
 D.A.L. mace6                MACE (Macintosh Audio Compression/Expansion) 6:1
 D.A.L. metasound            Voxware MetaSound
 DEA..S mlp                  MLP (Meridian Lossless Packing)
 D.A.L. mp1                  MP1 (MPEG audio layer 1) (decoders: mp1 mp1float )
 DEA.L. mp2                  MP2 (MPEG audio layer 2) (decoders: mp2 mp2float ) (encoders: mp2 mp2fixed libtwolame )
 DEA.L. mp3                  MP3 (MPEG audio layer 3) (decoders: mp3 mp3float ) (encoders: libmp3lame )
 D.A.L. mp3adu               ADU (Application Data Unit) MP3 (MPEG audio layer 3) (decoders: mp3adu mp3adufloat )
 D.A.L. mp3on4               MP3onMP4 (decoders: mp3on4 mp3on4float )
 D.A..S mp4als               MPEG-4 Audio Lossless Coding (ALS) (decoders: als )
 D.A.L. musepack7            Musepack SV7 (decoders: mpc7 )
 D.A.L. musepack8            Musepack SV8 (decoders: mpc8 )
 DEA.L. nellymoser           Nellymoser Asao
 DEA.L. opus                 Opus (Opus Interactive Audio Codec) (decoders: opus libopus ) (encoders: libopus )
 D.A.L. paf_audio            Amazing Studio Packed Animation File Audio
 DEA.L. pcm_alaw             PCM A-law / G.711 A-law
 D.A..S pcm_bluray           PCM signed 16|20|24-bit big-endian for Blu-ray media
 D.A..S pcm_dvd              PCM signed 20|24-bit big-endian
 DEA..S pcm_f32be            PCM 32-bit floating point big-endian
 DEA..S pcm_f32le            PCM 32-bit floating point little-endian
 DEA..S pcm_f64be            PCM 64-bit floating point big-endian
 DEA..S pcm_f64le            PCM 64-bit floating point little-endian
 D.A..S pcm_lxf              PCM signed 20-bit little-endian planar
 DEA.L. pcm_mulaw            PCM mu-law / G.711 mu-law
 DEA..S pcm_s16be            PCM signed 16-bit big-endian
 DEA..S pcm_s16be_planar     PCM signed 16-bit big-endian planar
 DEA..S pcm_s16le            PCM signed 16-bit little-endian
 DEA..S pcm_s16le_planar     PCM signed 16-bit little-endian planar
 DEA..S pcm_s24be            PCM signed 24-bit big-endian
 DEA..S pcm_s24daud          PCM D-Cinema audio signed 24-bit
 DEA..S pcm_s24le            PCM signed 24-bit little-endian
 DEA..S pcm_s24le_planar     PCM signed 24-bit little-endian planar
 DEA..S pcm_s32be            PCM signed 32-bit big-endian
 DEA..S pcm_s32le            PCM signed 32-bit little-endian
 DEA..S pcm_s32le_planar     PCM signed 32-bit little-endian planar
 DEA..S pcm_s64be            PCM signed 64-bit big-endian
 DEA..S pcm_s64le            PCM signed 64-bit little-endian
 DEA..S pcm_s8               PCM signed 8-bit
 DEA..S pcm_s8_planar        PCM signed 8-bit planar
 DEA..S pcm_u16be            PCM unsigned 16-bit big-endian
 DEA..S pcm_u16le            PCM unsigned 16-bit little-endian
 DEA..S pcm_u24be            PCM unsigned 24-bit big-endian
 DEA..S pcm_u24le            PCM unsigned 24-bit little-endian
 DEA..S pcm_u32be            PCM unsigned 32-bit big-endian
 DEA..S pcm_u32le            PCM unsigned 32-bit little-endian
 DEA..S pcm_u8               PCM unsigned 8-bit
 D.A.L. pcm_zork             PCM Zork
 D.A.L. qcelp                QCELP / PureVoice
 D.A.L. qdm2                 QDesign Music Codec 2
 ..A.L. qdmc                 QDesign Music
 DEA.L. ra_144               RealAudio 1.0 (14.4K) (decoders: real_144 ) (encoders: real_144 )
 D.A.L. ra_288               RealAudio 2.0 (28.8K) (decoders: real_288 )
 D.A..S ralf                 RealAudio Lossless
 DEA.L. roq_dpcm             DPCM id RoQ
 DEA..S s302m                SMPTE 302M
 D.A.L. sdx2_dpcm            DPCM Squareroot-Delta-Exact
 D.A..S shorten              Shorten
 D.A.L. sipr                 RealAudio SIPR / ACELP.NET
 D.A.L. smackaudio           Smacker audio (decoders: smackaud )
 ..A.L. smv                  SMV (Selectable Mode Vocoder)
 D.A.L. sol_dpcm             DPCM Sol
 DEA... sonic                Sonic
 .EA... sonicls              Sonic lossless
 DEA.L. speex                Speex (decoders: libspeex ) (encoders: libspeex )
 D.A..S tak                  TAK (Tom's lossless Audio Kompressor)
 DEA..S truehd               TrueHD
 D.A.L. truespeech           DSP Group TrueSpeech
 DEA..S tta                  TTA (True Audio)
 D.A.L. twinvq               VQF TwinVQ
 D.A.L. vmdaudio             Sierra VMD audio
 DEA.L. vorbis               Vorbis (decoders: vorbis libvorbis ) (encoders: vorbis libvorbis )
 ..A.L. voxware              Voxware RT29 Metasound
 D.A... wavesynth            Wave synthesis pseudo-codec
 DEA.LS wavpack              WavPack
 D.A.L. westwood_snd1        Westwood Audio (SND1) (decoders: ws_snd1 )
 D.A..S wmalossless          Windows Media Audio Lossless
 D.A.L. wmapro               Windows Media Audio 9 Professional
 DEA.L. wmav1                Windows Media Audio 1
 DEA.L. wmav2                Windows Media Audio 2
 D.A.L. wmavoice             Windows Media Audio Voice
 D.A.L. xan_dpcm             DPCM Xan
 D.A.L. xma1                 Xbox Media Audio 1
 D.A.L. xma2                 Xbox Media Audio 2
 ..D... bin_data             binary data
 ..D... dvd_nav_packet       DVD Nav packet
 ..D... klv                  SMPTE 336M Key-Length-Value (KLV) metadata
 ..D... otf                  OpenType font
 ..D... scte_35              SCTE 35 Message Queue
 ..D... timed_id3            timed ID3 metadata
 ..D... ttf                  TrueType font
 DES... ass                  ASS (Advanced SSA) subtitle (decoders: ssa ass ) (encoders: ssa ass )
 DES... dvb_subtitle         DVB subtitles (decoders: dvbsub ) (encoders: dvbsub )
 ..S... dvb_teletext         DVB teletext
 DES... dvd_subtitle         DVD subtitles (decoders: dvdsub ) (encoders: dvdsub )
 D.S... eia_608              EIA-608 closed captions (decoders: cc_dec )
 D.S... hdmv_pgs_subtitle    HDMV Presentation Graphic Stream subtitles (decoders: pgssub )
 ..S... hdmv_text_subtitle   HDMV Text subtitle
 D.S... jacosub              JACOsub subtitle
 D.S... microdvd             MicroDVD subtitle
 DES... mov_text             MOV text
 D.S... mpl2                 MPL2 subtitle
 D.S... pjs                  PJS (Phoenix Japanimation Society) subtitle
 D.S... realtext             RealText subtitle
 D.S... sami                 SAMI subtitle
 ..S... srt                  SubRip subtitle with embedded timing
 ..S... ssa                  SSA (SubStation Alpha) subtitle
 D.S... stl                  Spruce subtitle format
 DES... subrip               SubRip subtitle (decoders: srt subrip ) (encoders: srt subrip )
 D.S... subviewer            SubViewer subtitle
 D.S... subviewer1           SubViewer v1 subtitle
 DES... text                 raw UTF-8 text
 D.S... vplayer              VPlayer subtitle
 DES... webvtt               WebVTT subtitle
 DES... xsub                 XSUB

不用写脚本就能对比出来你的 ffmpeg -formats 不一样,少了很多。

所以结论是,@kivallee ** 你的 libavformat57 这个包用的不是 packman 的版本,用的是 obs 的版本 ** 。切换过来就可以成功了,祝好运!

感谢苏姊,今天刚好做完电影的海选,回到家就可以来试试,大感激!!