ffmpeg: 一款跨平台开源媒体格式转换器
生活随笔
收集整理的這篇文章主要介紹了
ffmpeg: 一款跨平台开源媒体格式转换器
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
ffmpeg: 一款跨平臺開源媒體格式轉換器
ffmpeg是非常干練簡潔的媒體格式轉換器,支持的格式非常廣泛,幾乎所有媒體格式之間的剪裁、提取、合并、轉化都可以使用這一個工具來完成。
支持的媒體格式
ffmpeg -formats
ffmpeg version N-81989-g7845c13 Copyright (c) 2000-2016 the FFmpeg developersbuilt 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-zliblibavutil 55. 32.100 / 55. 32.100libavcodec 57. 61.103 / 57. 61.103libavformat 57. 52.100 / 57. 52.100libavdevice 57. 0.102 / 57. 0.102libavfilter 6. 64.100 / 6. 64.100libswscale 4. 1.100 / 4. 1.100libswresample 2. 2.100 / 2. 2.100libpostproc 54. 0.100 / 54. 0.100 File formats:D. = Demuxing supported.E = Muxing supported--D 3dostr 3DO STRE 3g2 3GP2 (3GPP2 file format)E 3gp 3GP (3GPP file format)D 4xm 4X TechnologiesE a64 a64 - video for Commodore 64D aa Audible AA format filesD aac raw ADTS AAC (Advanced Audio Coding)DE ac3 raw AC-3D acm Interplay ACMD act ACT Voice file formatD adf Artworx Data FormatD adp ADPD ads Sony PS2 ADSE adts ADTS AAC (Advanced Audio Coding)DE adx CRI ADXD aea MD STUDIO audioD afc AFCDE aiff Audio IFFD aix CRI AIXDE alaw PCM A-lawD alias_pix Alias/Wavefront PIX imageDE amr 3GPP AMRD anm Deluxe Paint AnimationD apc CRYO APCD ape Monkey's AudioDE apng Animated Portable Network GraphicsD aqtitle AQTitle subtitlesDE 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) subtitleDE ast AST (Audio Stream)DE au Sun AUDE avi AVI (Audio Video Interleaved)D avisynth AviSynth scriptE avm2 SWF (ShockWave Flash) (AVM2)D avr AVR (Audio Visual Research)D avs AVSD bethsoftvid Bethesda Softworks VIDD bfi Brute Force & IgnoranceD bfstm BFSTM (Binary Cafe Stream)D bin Binary textD bink BinkDE bit G.729 BIT file formatD bmp_pipe piped bmp sequenceD bmv Discworld II BMVD boa Black Ops AudioD brender_pix BRender PIX imageD brstm BRSTM (Binary Revolution Stream)D c93 Interplay C93E caca caca (color ASCII art) output deviceDE caf Apple CAF (Core Audio Format)DE cavsvideo raw Chinese AVS (Audio Video Standard) videoD cdg CD GraphicsD cdxl Commodore CDXL videoD cine Phantom CineD concat Virtual concatenation scriptE crc CRC testingE dash DASH MuxerDE data raw dataDE daud D-Cinema audioD dcstr Sega DC STRD dds_pipe piped dds sequenceDE decklink Blackmagic DeckLink outputD dfa Chronomaster DFADE dirac raw DiracDE dnxhd raw DNxHD (SMPTE VC-3)D dpx_pipe piped dpx sequenceD dsf DSD Stream File (DSF)D dshow DirectShow captureD dsicin Delphine Software International CIND dss Digital Speech Standard (DSS)DE dts raw DTSD dtshd raw DTS-HDDE dv DV (Digital Video)D dvbsub raw dvbsubD dvbtxt dvbtxtE dvd MPEG-2 PS (DVD VOB)D dxa DXAD ea Electronic Arts MultimediaD ea_cdata Electronic Arts cdataDE eac3 raw E-AC-3D epaf Ensoniq Paris Audio FileD exr_pipe piped exr sequenceDE f32be PCM 32-bit floating-point big-endianDE f32le PCM 32-bit floating-point little-endianE f4v F4V Adobe Flash VideoDE f64be PCM 64-bit floating-point big-endianDE f64le PCM 64-bit floating-point little-endianDE ffm FFM (FFserver live feed)DE ffmetadata FFmpeg metadata in textE fifo FIFO queue pseudo-muxerD film_cpk Sega FILM / CPKDE filmstrip Adobe FilmstripDE flac raw FLACD flic FLI/FLC/FLX animationDE flv FLV (Flash Video)E framecrc framecrc testingE framehash Per-frame hash testingE framemd5 Per-frame MD5 testingD frm Megalux FrameD fsb FMOD Sample BankDE g722 raw G.722DE g723_1 raw G.723.1D g729 G.729 raw format demuxerD gdigrab GDI API Windows frame grabberD genh GENeric HeaderDE gif GIF AnimationDE gsm raw GSMDE gxf GXF (General eXchange Format)DE h261 raw H.261DE h263 raw H.263DE h264 raw H.264 videoE hash Hash testingE hds HDS MuxerDE hevc raw HEVC videoE hls Apple HTTP Live StreamingD hls,applehttp Apple HTTP Live StreamingD hnm Cryo HNM v4DE ico Microsoft Windows ICOD idcin id CinematicD idf iCE Draw FileD iff IFF (Interchange File Format)DE ilbc iLBC storageDE image2 image2 sequenceDE image2pipe piped image2 sequenceD ingenient raw Ingenient MJPEGD ipmovie Interplay MVEE ipod iPod H.264 MP4 (MPEG-4 Part 14)DE ircam Berkeley/IRCAM/CARL Sound FormatE ismv ISMV/ISMA (Smooth Streaming)D iss Funcom ISSD iv8 IndigoVision 8000 videoDE ivf On2 IVFD ivr IVR (Internet Video Recording)D j2k_pipe piped j2k sequenceDE jacosub JACOsub subtitle formatD jpeg_pipe piped jpeg sequenceD jpegls_pipe piped jpegls sequenceD jv Bitmap Brothers JVE latm LOAS/LATMD lavfi Libavfilter virtual input deviceD libgme Game Music Emu demuxerD libmodplug ModPlug demuxerD live_flv live RTMP FLV (Flash Video)D lmlm4 raw lmlm4D loas LOAS AudioSyncStreamDE lrc LRC lyricsD lvf LVFD lxf VR native stream (LXF)DE m4v raw MPEG-4 videoE matroska MatroskaD matroska,webm Matroska / WebME md5 MD5 testingD mgsts Metal Gear Solid: The Twin SnakesDE microdvd MicroDVD subtitle formatDE mjpeg raw MJPEG videoE mkvtimestamp_v2 extract pts as timecode v2 format, as defined by mkvtoolnixDE mlp raw MLPD mlv Magic Lantern Video (MLV)D mm American Laser Games MMDE mmf Yamaha SMAFE mov QuickTime / MOVD mov,mp4,m4a,3gp,3g2,mj2 QuickTime / MOVE mp2 MP2 (MPEG audio layer 2)DE mp3 MP3 (MPEG audio layer 3)E mp4 MP4 (MPEG-4 Part 14)D mpc MusepackD mpc8 Musepack SV8DE mpeg MPEG-1 Systems / MPEG program streamE mpeg1video raw MPEG-1 videoE mpeg2video raw MPEG-2 videoDE mpegts MPEG-TS (MPEG-2 Transport Stream)D mpegtsraw raw MPEG-TS (MPEG-2 Transport Stream)D mpegvideo raw MPEG videoDE mpjpeg MIME multipart JPEGD mpl2 MPL2 subtitlesD mpsub MPlayer subtitlesD msf Sony PS3 MSFD msnwctcp MSN TCP Webcam streamD mtaf Konami PS2 MTAFD mtv MTVDE mulaw PCM mu-lawD musx Eurocom MUSXD mv Silicon Graphics MovieD mvi Motion Pixels MVIDE mxf MXF (Material eXchange Format)E mxf_d10 MXF (Material eXchange Format) D-10 MappingE mxf_opatom MXF (Material eXchange Format) Operational Pattern AtomD mxg MxPEG clipD nc NC camera feedD nistsphere NIST SPeech HEader REsourcesD nsv Nullsoft Streaming VideoE null raw null videoDE nut NUTD nuv NuppelVideoE oga Ogg AudioDE ogg OggE ogv Ogg VideoDE oma Sony OpenMG audioE opus Ogg OpusD paf Amazing Studio Packed Animation FileD pam_pipe piped pam sequenceD pbm_pipe piped pbm sequenceD pcx_pipe piped pcx sequenceD pgm_pipe piped pgm sequenceD pgmyuv_pipe piped pgmyuv sequenceD pictor_pipe piped pictor sequenceD pjs PJS (Phoenix Japanimation Society) subtitlesD pmp Playstation Portable PMPD png_pipe piped png sequenceD ppm_pipe piped ppm sequenceE psp PSP MP4 (MPEG-4 Part 14)D psxstr Sony Playstation STRD pva TechnoTrend PVAD pvf PVF (Portable Voice Format)D qcp QCPD qdraw_pipe piped qdraw sequenceD r3d REDCODE R3DDE rawvideo raw videoD realtext RealText subtitle formatD redspark RedSparkD rl2 RL2DE rm RealMediaDE roq raw id RoQD rpl RPL / ARMovieD rsd GameCube RSDDE rso Lego Mindstorms RSODE rtp RTP outputE rtp_mpegts RTP/mpegts output formatDE rtsp RTSP outputDE s16be PCM signed 16-bit big-endianDE s16le PCM signed 16-bit little-endianDE s24be PCM signed 24-bit big-endianDE s24le PCM signed 24-bit little-endianDE s32be PCM signed 32-bit big-endianDE s32le PCM signed 32-bit little-endianDE s8 PCM signed 8-bitD sami SAMI subtitle formatDE sap SAP outputD sbg SBaGen binaural beats scriptE sdl,sdl2 SDL2 output deviceD sdp SDPD sdr2 SDR2E segment segmentD sgi_pipe piped sgi sequenceD shn raw ShortenD siff Beam Software SIFFE singlejpeg JPEG single imageD sln Asterisk raw pcmDE smjpeg Loki SDL MJPEGD smk SmackerE smoothstreaming Smooth Streaming MuxerD smush LucasArts SmushD sol Sierra SOLDE sox SoX nativeDE spdif IEC 61937 (used on S/PDIF - IEC958)E spx Ogg SpeexDE srt SubRip subtitleD stl Spruce subtitle formatE stream_segment,ssegment streaming segment muxerD subviewer SubViewer subtitle formatD subviewer1 SubViewer v1 subtitle formatD sunrast_pipe piped sunrast sequenceD sup raw HDMV Presentation Graphic Stream subtitlesD svag Konami PS2 SVAGE svcd MPEG-2 PS (SVCD)DE swf SWF (ShockWave Flash)D tak raw TAKD tedcaptions TED Talks captionsE tee Multiple muxer teeD thp THPD tiertexseq Tiertex Limited SEQD tiff_pipe piped tiff sequenceD tmv 8088flex TMVDE truehd raw TrueHDDE tta TTA (True Audio)D tty Tele-typewriterD txd Renderware TeXture DictionaryDE u16be PCM unsigned 16-bit big-endianDE u16le PCM unsigned 16-bit little-endianDE u24be PCM unsigned 24-bit big-endianDE u24le PCM unsigned 24-bit little-endianDE u32be PCM unsigned 32-bit big-endianDE u32le PCM unsigned 32-bit little-endianDE u8 PCM unsigned 8-bitE uncodedframecrc uncoded framecrc testingD v210 Uncompressed 4:2:2 10-bitD v210x Uncompressed 4:2:2 10-bitD vag Sony PS2 VAGDE vc1 raw VC-1 videoDE vc1test VC-1 test bitstreamE vcd MPEG-1 Systems / MPEG program stream (VCD)D vfwcap VfW video captureD vivo VivoD vmd Sierra VMDE vob MPEG-2 PS (VOB)D vobsub VobSub subtitle formatDE voc Creative VoiceD vpk Sony PS2 VPKD vplayer VPlayer subtitlesD vqf Nippon Telegraph and Telephone Corporation (NTT) TwinVQDE w64 Sony Wave64DE wav WAV / WAVE (Waveform Audio)D wc3movie Wing Commander III movieE webm WebME webm_chunk WebM Chunk MuxerDE webm_dash_manifest WebM DASH ManifestE webp WebPD webp_pipe piped webp sequenceDE webvtt WebVTT subtitleD wsaud Westwood Studios audioD wsd Wideband Single-bit Data (WSD)D wsvqa Westwood Studios VQADE wtv Windows Television (WTV)DE wv raw WavPackD wve Psion 3 audioD xa Maxis XAD xbin eXtended BINary text (XBIN)D xmv Microsoft XMVD xvag Sony PS3 XVAGD xwma Microsoft xWMAD yop Psygnosis YOPDE yuv4mpegpipe YUV4MPEG pipe常用格式轉換
ffmpeg [input_options] -i in_file [output_options] out_file
例如:
ffmpeg -i a.flv b.mp4
輸出信息:
總結
以上是生活随笔為你收集整理的ffmpeg: 一款跨平台开源媒体格式转换器的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: VC编程心得
- 下一篇: verycd重整——CBT系列