ffmpeg命令行

ffmpeg 参数详解

ffmpeg命令格式:

ffmpeg \
    [global_options] \
    [input_file_options] -i input_url \
    [actions] \
    [output_file_options] output_url
-y/-n

-y表示直接覆盖已经存在的输出文件, -n表示若某个输出文件已经存在则退出

-codec(-c)

指定输入输出的解码编码器

fmpeg -y -i test.mp4 -c:v libx264 -c:a copy test.mov

使用-c:STREAM_INDEX方式可以指定某一个流的解码器,STREAM_INDEX为stream对象的index属性。

-c:v-vcodec可以为所有视频流指定编码器,-c:v:1为第2个视频流指定编解码器。

-c:a-acodec可以为所有音频流指定编码器,-c:a:12为第13个视频流指定编解码器。

-ss

选项用于设置流的开始时间,可以设置输入输出或者滤镜。在开始时间之前的帧将被跳过不被处理

-t

-t选项用于用于设置输入输出,-t-i前可以限制输入时长,-t在输出文件前可以限制输出时长

-to

-to选项类似于-t选项,不同的是-to指定结束时刻,-t指定持续时间

-f

强制设置输入输出的文件格式,默认情况下ffmpeg会根据文件后缀名判断文件格式

-vframes

设置输出文件中包含的总帧数

-vn

不将视频流写到输出文件中

-an

不将音频流写到输出文件中

-r

设置某个流的帧率

-s

设置帧的大小:

实例

推文件到rtsp
ffmpeg -re -stream_loop -1 -i 51.mp4 -framerate 25 -r 25 -vcodec copy -acodec copy -preset ultrafast -f rtsp -rtsp_transport tcp rtsp://172.16.163.198:8554/live/999
视频转码
ffmpeg -y \
    -i test.mp4 \
    -vcodec copy \
    -acodec copy \
    out.mkv

这条指令将容器格式由MP4转换到MKV,使用ffprobe检查输出文件可以发现,视频流没有发生变化,但是封装格式改变为mkv格式。

-vcodec是一个简单过滤器用于处理视频编码,copy表示将视频流复制到输出文件中。-acodec是处理音频编码的过滤器。

提取视频流
ffmpeg -y \
    -i test.mp4 \
    -vcodec copy \
    -an \
    out.mp4

-an表示不保留音频流。

提取音频
ffmpeg -y \
    -i test.mp4 \
    -ar 44100 -ac 2 -ab 192 \
    -f mp3 \
    output.mp3
  • -ar: 指定输出音频采样率
  • -ac: 指定输出音频通道(channel)数, 这里设置为双声道
  • -ab: 指定输出音频比特率,单位kb/s
截取图片
ffmpeg -i [视频路径] -r 1 -q:v 2 -f image2 image-%d.jpeg

 视频路径:如 "myvideo.mp4"(这时这个视频也在bin文件目录下才可以直接这么写),或者完整路径的
-r:每秒提取的帧数,如上面为每秒1帧,即一张图像
-q:v :图片质量
-f:图片格式,上述为image2
image-%d.jpeg:生成图像的文件名,可以加上完整路径,%d会使文件名按整数编号,如上述生成图像为image-1.jpeg, image-2.jpeg, ...
还有其他参数:
-t:持续时间,如-t 4表示持续4s
-ss:起始时间,如-ss 01:30:14,从01:30:14开始
-vframes:指定抽取的帧数,如-vframes 120,指定抽取120张
-s:格式大小,如-s 640x360
-y:覆盖,直接使用
ffmpeg -i rtsp://admin:1234qwer@192.168.16.202?timeout=10 -vframes 1 -y 1.jpg
按帧截取图像

截取第2s开始的10帧图像, 伸缩为352x240:

ffmpeg -y \
    -ss 2 -i test.mp4 \
    -vframes 10 \
    -f image2 \
    -s 352x240 \
    img%03d.png
按时间截取图像

从第2s到第12s内,每秒截取1帧图像:

ffmpeg -y \
    -ss 2 -i test.mp4 \
    -r 1 -t 10 \
    -f image2 \
    -s 352x240 \
    img%03d.png
截取视频区域
ffmpeg -y \
    -ss 2 -i test.mp4 \
    -r 1   \
    -t 10 \
    -filter_complex "[0:v]crop=w=100:h=100:x=12:y=34,scale='400:400'[v]" \
    -map "[v]" \
    img%03d.png

crop滤镜可以截取视频部分区域,[0:v]crop=w=100:h=100:x=12:y=34,scale='400:400'[v]截取了左上角在(12,34)处,宽为100,高为100的矩形框中的内容,并将截图放大到400x400。

拼接视频
ffmpeg -i "concat:1.mp4|2.mp4|3.mp4" -c copy output.mp4
音频音量探测

FFmpeg可以获取到音频的音量分贝、音频相关信息等,使用滤镜volumedetect获得。

ffmpeg -i rtsp://admin:1234qwer@192.168.16.51 -filter_complex volumedetect -c:v copy -f null /dev/null

ffmpeg滤镜

FFMpeg ver 20160213-git-588e2e3 滤镜中英文对照 2016.02.17 by 1CM

T.. = Timeline support
支持时间轴
.S. = Slice threading
分段线程
..C = Command support
支持命令传送
A = Audio input/output
音频 输入/输出
V = Video input/output
视频 输入/输出
N = Dynamic number and/or type of input/output
可输入动态值
| = Source or sink filter
源或场景过滤

Audio Filters
音频滤镜

... acompressor       A->A       Audio compressor.
压缩音频.
... acrossfade        AA->A      Cross fade two input audio streams.
交叉混合输入的两个音频流.
T.. adelay            A->A       Delay one or more audio channels.
延迟单个或多个音频通道.
... aecho             A->A       Add echoing to the audio.
音频上追加回波.
... aemphasis         A->A       Audio emphasis.
音频补偿.
... aeval             A->A       Filter audio signal according to a specified expression.
根据指定的表达式修改音频信号.
T.. afade             A->A       Fade in/out input audio.
淡入/淡出 输入的音频.
... afftfilt          A->A       Apply arbitrary expressions to samples in frequency domain.
将任意表达式应用到采样频域.
... aformat           A->A       Convert the input audio to one of the specified formats.
指定格式转换输入的音频.
... agate             A->A       Audio gate.
音频通道.
... ainterleave       N->A       Temporally interleave audio inputs.
时间交叠输入音频.
... alimiter          A->A       Audio lookahead limiter.
音频超前限制.
... allpass           A->A       Apply a two-pole all-pass filter.
应用到一个两极全通滤镜.
... amerge            N->A       Merge two or more audio streams into a single multi-channel stream.
两个或两个以上的音频流合并到一个多通道流.
T.. ametadata         A->A       Manipulate audio frame metadata.
操控音频帧的元数据.
... amix              N->A       Audio mixing.
多个输入音频混合到单个音频输出.
..C anequalizer       A->N       Apply high-order audio parametric multi band equalizer.
应用到每个通道高阶参数多波段均衡器.
... anull             A->A       Pass the source unchanged to the output.
不改变音频源进行输出.
T.. apad              A->A       Pad audio with silence.
无声填充模板.
... aperms            A->A       Set permissions for the output audio frame.
允许设置输出的音频帧.
... aphaser           A->A       Add a phasing effect to the audio.
给输入音频添加调相效果.
... apulsator         A->A       Audio pulsator.
音频震动器.
... arealtime         A->A       Slow down filtering to match realtime.
减慢过滤作用,近似实时匹配.
... aresample         A->A       Resample audio data.
重新采样音频数据.
... areverse          A->A       Reverse an audio clip.
反转音频素材.
... aselect           A->N       Select audio frames to pass in output.
选择音频帧赋予输出.
... asendcmd          A->A       Send commands to filters.
给滤镜发送命令,必须插入到两个音频之间,只对具有该功能的滤镜命令有效.
... asetnsamples      A->A       Set the number of samples for each output audio frames.
设置每个输出音频帧的采样数.
... asetpts           A->A       Set PTS for the output audio frame.
设置输出音频的表示时间戳(PTS).
... asetrate          A->A       Change the sample rate without altering the data.
设置采样率,但不改变PCM数据.
... asettb            A->A       Set timebase for the audio output link.
设置时间轴用于音频输出帧的时间戳.
... ashowinfo         A->A       Show textual information for each audio frame.
显示每个音频帧的文本信息.
... asplit            A->N       Pass on the audio input to N audio outputs.
输入的音频分配给N个相同的输出.
... astats            A->A       Show time domain statistics about audio frames.
显示音频帧的时域统计信息.
..C astreamselect     N->N       Select audio streams.
多个输入音频流中选择一个音频流,若干个具有相同时间长度的媒体有效.
..C atempo            A->A       Adjust audio tempo.
调整音频播放速度, 其范围是0.5-2.0.
... atrim             A->A       Pick one continuous section from the input, drop the rest.
从输入音频中挑选连续的组成部分,一直到结束.
... bandpass          A->A       Apply a two-pole Butterworth band-pass filter.
应用到一个两极巴特沃斯带通滤波器的主要频率.
... bandreject        A->A       Apply a two-pole Butterworth band-reject filter.
应用到一个两极巴特沃斯带阻滤波器的主要频率.
... bass              A->A       Boost or cut lower frequencies.
增加或减少低频.
... biquad            A->A       Apply a biquad IIR filter with the given coefficients.
应用到双二次滤镜的特定系数.
... bs2b              A->A       Bauer stereo-to-binaural filter.
鲍尔立体声双声道的转换,适合用耳机听立体声音频.
... channelmap        A->A       Remap audio channels.
将输入音频通道重新映射到新的位置.
... channelsplit      A->N       Split audio into per-channel streams.
输入音频流的每个音频通道分为不同的输出流.
... chorus            A->A       Add a chorus effect to the audio.
给音频添加合唱效果.
... compand           A->A       Compress or expand audio dynamic range.
压缩或展开音频的动态范围.
... compensationdelay A->A       Audio Compensation Delay Line.
给音频补偿延迟线.
T.. dcshift           A->A       Apply a DC shift to the audio.
应用到DC偏置(可能由硬件问题引起的录音通路)的音频.
... dynaudnorm        A->A       Dynamic Audio Normalizer.
动态音频的标准化.
... earwax            A->A       Widen the stereo image.
扩展到用耳机听到立体感.
... ebur128           A->N       EBU R128 scanner.
EBU R128 音频可视化扫描滤镜.
... equalizer         A->A       Apply two-pole peaking equalization (EQ) filter.
应用到两极峰值均衡器(EQ)滤镜.
... extrastereo       A->A       Increase difference between stereo audio channels.
给左右音频通道线性增加某种"现场"回放效果.
... flanger           A->A       Apply a flanging effect to the audio.
翻边效果应用到音频中.
... highpass          A->A       Apply a high-pass filter with 3dB point frequency.
应用到3db点频率的高通滤镜.
... join              N->A       Join multiple audio streams into multi-channel output.
多输入音频流连接到一个多通道输出流.
... lowpass           A->A       Apply a low-pass filter with 3dB point frequency.
应用到3db点频率的低通滤镜.
... pan               A->A       Remix channels with coefficients (panning).
混合特定增益电平的通道(填充).
... replaygain        A->A       ReplayGain scanner.
显示增益和峰值的扫描滤镜.
... sidechaincompress AA->A      Sidechain compressor.
侧链压缩器,需要两个输入流,返回一个输出流.
... sidechaingate     AA->A      Audio sidechain gate.
音频侧链的增益.
... silencedetect     A->A       Detect silence.
检测音频流中的无声部分.
... silenceremove     A->A       Remove silence.
删除无声部分,从开始到结束.
... stereotools       A->A       Apply various stereo tools.
应用到不同立体感的功能.
... stereowiden       A->A       Apply stereo widening effect.
应用到扩展立体效果.
... treble            A->A       Boost or cut upper frequencies.
增加或减少上频率.
... tremolo           A->A       Apply tremolo effect.
应用到震音效果,有一点回音效果.
... vibrato           A->A       Apply vibrato effect.
应用到颤音效果.
T.C volume            A->A       Change input volume.
改变输入音频的音量.
... volumedetect      A->A       Detect audio volume.
检测输入音频的音量.
... aevalsrc          |->A       Generate an audio signal generated by an expression.
根据指定的表达式生成一个音频信号.
... anoisesrc         |->A       Generate a noise audio signal.
生成一个噪声音频信号.
... anullsrc          |->A       Null audio source, return empty audio frames.
生成无声音频源,返回未处理的空音频帧.
... sine              |->A       Generate sine wave audio signal.
生成一个正弦波音频信号.
... anullsink         A->|       Do absolutely nothing with the input audio.
无声音频接收器,与输入音频无关.
... adrawgraph        A->V       Draw a graph using input audio metadata.
利用音频的元数据画曲线图.
... ahistogram        A->V       Convert input audio to histogram video output.
输入音频转换为视频输出,显示音量直方图.
... aphasemeter       A->V       Convert input audio to phase meter video output.
输入音频转换为相位表视频输出.
... avectorscope      A->V       Convert input audio to vectorscope video output.
输入音频转换为矢量色度显示视频输出.
... showcqt           A->V       Convert input audio to a CQT (Constant/Clamped Q Transform) spectrum video output.
输入音频转换为 固定/固支 Q 变换(CQT) 频谱视频输出.
... showfreqs         A->V       Convert input audio to a frequencies video output.
输入音频转换为音频功率谱视频输出.
... showspectrum      A->V       Convert input audio to a spectrum video output.
输入音频转换为音频频谱视频输出.
... showspectrumpic   A->V       Convert input audio to a spectrum video output single picture.
输入音频转换为单张音谱图片.
... showvolume        A->V       Convert input audio volume to video output.
输入音频音量转换为视频输出.
... showwaves         A->V       Convert input audio to a video output.
输入音频转换为波形视频输出.
... showwavespic      A->V       Convert input audio to a video output single picture.
输入音频转换为单张波形图片.
... spectrumsynth     VV->A      Convert input spectrum videos to audio output.
输入视频谱转换为音频输出.
... abuffer           |->A       Buffer audio frames, and make them accessible to the filterchain.
缓冲音频帧,并用于滤镜链.
... abuffersink       A->|       Buffer audio frames, and make them available to the end of the filter graph.
缓冲音频帧,并用于滤镜图的结束.
... afifo             A->A       Buffer input frames and send them when they are requested.
缓冲输入帧,若需求时.
... amovie            |->N       Read audio from a movie source.
从视频源读入音频.

Video Filters
视频滤镜

... alphaextract      V->N       Extract an alpha channel as a grayscale image component.
从灰度级测视图中提取阿尔法α通道分量.
... alphamerge        VV->V      Copy the luma value of the second input into the alpha channel of the first input.
使用第一个输入视频的阿尔法α通道分量,添加或替换的第二个输入视频亮度值.
TS. atadenoise        V->V       Apply an Adaptive Temporal Averaging Denoiser.
自适应时间平均降噪功能应用在输入的视频.
... ass               V->V       Render ASS subtitles onto input video using the libass library.
使用libass程序库给输入视频渲染ASS字幕.
T.. bbox              V->V       Compute bounding box for each frame.
视频的每一个帧上计算边界框.
... blackdetect       V->V       Detect video intervals that are (almost) black.
检测视频中完全(几乎)黑色的时间间隔.
... blackframe        V->V       Detect frames that are (almost) black.
检测完全(几乎)黑色的帧.
TS. blend             VV->V      Blend two video frames into each other.
两个视频帧混合到另一个帧上.
T.. boxblur           V->V       Blur the input.
模糊处理输入视频.
TS. chromakey         V->V       Turns a certain color into transparency. Operates on YUV colors.
在YUV颜色空间中针对一些颜色做透明处理,应用与抠图功能,比 colorkey 滤镜边界更柔和.
T.. codecview         V->V       Visualize information about some codecs.
导出一些解码器的可视化信息.
T.. colorbalance      V->V       Adjust the color balance.
修改输入帧的三原色(红、绿、蓝)信号亮度.
T.. colorchannelmixer V->V       Adjust colors by mixing color channels.
调整输入视频帧的混合颜色通道.
TS. colorkey          V->V       Turns a certain color into transparency. Operates on RGB colors.
在RGB颜色空间中针对一些颜色做透明处理,边界较为生硬.
T.. colorlevels       V->V       Adjust the color levels.
调整输入视频帧的颜色信号电平.
TS. colormatrix       V->V       Convert color matrix.
转换颜色矩阵.
T.. convolution       V->V       Apply convolution filter.
使用卷积3x3或5x5滤镜,适用于锐化,模糊,边缘增强,边缘检测和浮雕等处理.
... copy              V->V       Copy the input video unchanged to the output.
复制输入视频,原封不动输出,主要是用于测试目的.
... cover_rect        V->V       Find and cover a user specified object.
查找并覆盖用户指定的矩形对象.
..C crop              V->V       Crop the input video to given dimensions.
剪切输入视频显示区域,并给于新的尺寸.
T.. cropdetect        V->V       Auto-detect crop size.
自动检测剪切大小.
TS. curves            V->V       Adjust components curves.
利用曲线功能调整颜色分量,也可以利用图象处理软件的曲线文件来处理颜色.
TS. dctdnoiz          V->V       Denoise frames using 2D DCT.
使用二维频域过滤(2D DCT)对帧进行降噪处理.
TS. deband            V->V       Debands video, Remove banding artifacts from input video.
从输入视频中移除带状伪像.
... decimate          N->V       Decimate frames (post field matching filter).
定期删除重复的帧(后场匹配滤镜).
T.. deflate           V->V       Apply deflate effect.
适用于紧缩效果.
... dejudder          V->V       Remove judder produced by pullup.
删除动作产生的部分颤抖.
T.. delogo            V->V       Remove logo from input video.
对指定区域做模糊处理,比如能移除输入视频中的标识.
... deshake           V->V       Stabilize shaky video.
试图修改水平或垂直的移位,降低颤抖让视频更稳定,这个滤镜有助于减小手持相机抖动影响.
... detelecine        V->V       Apply an inverse telecine pattern.
适用于电视电影的精确反向操作,颜色边界有锯齿效果.
T.. dilation          V->V       Apply dilation effect.
膨胀效果应用于视频.
T.. displace          VVV->V     Displace pixels.
移走像素,需要三个视频输入流和一个视频输出流,第一个输入源,第二和第三个输入位移的映射.
T.. drawbox           V->V       Draw a colored box on the input video.
输入视频图像上绘制彩色的矩形区域.
... drawgraph         V->V       Draw a graph using input video metadata.
利用输入视频的元数据绘制图表.
T.. drawgrid          V->V       Draw a colored grid on the input video.
在输入视频上绘制彩色网格.
T.C drawtext          V->V       Draw text on top of video frames using libfreetype library.
使用 libfreetype 程序库,在顶层帧上绘制文本字符串,文本内容可从指定文件中读取.
T.. edgedetect        V->V       Detect and draw edge.
检测并绘制边缘.
... elbg              V->V       Apply posterize effect, using the ELBG algorithm.
使用增强型LBG(ELBG)算法,用于多色调分色印效果.
..C eq                V->V       Adjust brightness, contrast, gamma, and saturation.
调整亮度、对比度、灰度和饱和度.
T.. erosion           V->V       Apply erosion effect.
侵蚀效果应用于视频,类似油画处理.
... extractplanes     V->N       Extract planes as grayscale frames.
从输入视频流中提取颜色通道分量用在单独灰度视频流的帧上.
.S. fade              V->V       Fade in/out input video.
适用于输入视频的淡入/淡出效果.
... fftfilt           V->V       Apply arbitrary expressions to pixels in frequency domain.
频域内将任意表达式用于采样的像素集.
... field             V->V       Extract a field from the input video.
使用步进算法,从输入视频里的隔行图像中提取单场.
... fieldmatch        N->V       Field matching for inverse telecine.
场匹配滤镜适用于电视电影的反向操作.
T.. fieldorder        V->V       Set the field order.
改变输入视频的场顺序.
... find_rect         V->V       Find a user specified object.
寻找用户指定的矩形区域.
... format            V->V       Convert the input video to one of the specified pixel formats.
输入视频转换为指定的像素格式.
... fps               V->V       Force constant framerate.
强制设定固定帧频.
... framepack         VV->V      Generate a frame packed stereoscopic video.
生成帧叠加的立体视频.
... framerate         V->V       Upsamples or downsamples progressive source between specified frame rates.
上采样或下采样顺序渐进的视频源之间设定指定帧频.
T.. framestep         V->V       Select one frame every N frames.
每 N 个帧中选一个帧,设置帧步.
... frei0r            V->V       Apply a frei0r effect.
使用 frei0r 滤镜.
T.. fspp              V->V       Apply Fast Simple Post-processing filter.
用于快速和简单的后处理滤镜.
T.. geq               V->V       Apply generic equation to each pixel.
利用一般表达式改变每个像素点的特征.
T.. gradfun           V->V       Debands video quickly using gradients.
利用梯度快速移除带状伪像.
TS. haldclut          VV->V      Adjust colors using a Hald CLUT.
利用哈尔德查色表调整颜色.
.S. hflip             V->V       Horizontally flip the input video.
水平翻转显示输入视频.
T.. histeq            V->V       Apply global color histogram equalization.
适用于全局颜色直方图均衡化.
... histogram         V->V       Compute and draw a histogram.
计算并绘制颜色分布直方图.
T.. hqdn3d            V->V       Apply a High Quality 3D Denoiser.
使用高质量三维降噪滤镜.
.S. hqx               V->V       Scale the input by 2, 3 or 4 using the hq*x magnification algorithm.
利用高质量放大算法缩放视频显示大小,可输入2,3或4.
... hstack            N->V       Stack video inputs horizontally.
把若干个输入视频合并到一个水平显示的输出视频.
T.C hue               V->V       Adjust the hue and saturation of the input video.
调整输入视频的色相和饱和度.
... idet              V->V       Interlace detect Filter.
检测视频的交叉类型滤镜.
T.. il                V->V       Deinterleave or interleave fields.
允许处理不交叉的隔行图像场.
T.. inflate           V->V       Apply inflate effect.
膨胀效果用于视频.
... interlace         V->V       Convert progressive video into interlaced.
转化为分段视频用于隔行处理,颜色边界有锯齿效果.
... interleave        N->V       Temporally interleave video inputs.
能执行时间场交叉的各种类型.
... kerndeint         V->V       Apply kernel deinterlacing to the input.
对输入的视频进行内核反交叉处理.
.S. lenscorrection    V->V       Rectify the image by correcting for lens distortion.
矫正图像用于校正透镜畸变.
TS. lut3d             V->V       Adjust colors using a 3D LUT.
利用三维查色表调整颜色.
T.. lut               V->V       Compute and apply a lookup table to the RGB/YUV input video.
利用查表计算处理 RGB/YUV 格式输入的视频.
T.. lutrgb            V->V       Compute and apply a lookup table to the RGB input video.
利用查表计算处理 RGB 格式输入的视频.
T.. lutyuv            V->V       Compute and apply a lookup table to the YUV input video.
利用查表计算处理 YUV 格式输入的视频.
T.. maskedmerge       VVV->V     Merge first stream with second stream using third stream as mask.
合并前二个输入视频,掩模到第三个输入视频,透明合并三个视频.
... mcdeint           V->V       Apply motion compensating deinterlacing.
适用于运动补偿反交叉.
... mergeplanes       N->V       Merge planes.
合并多个视频流的颜色通道分量.
T.. metadata          V->V       Manipulate video frame metadata.
操作视频帧的元数据,用于调试.
... mpdecimate        V->V       Remove near-duplicate frames.
移除近似重复的帧.
T.. negate            V->V       Negate input video.
取消输入视频的阿尔法通道分量,滤镜效果类似底片.
T.. nnedi             V->V       Apply neural network edge directed interpolation intra-only deinterlacer.
使用神经网络边缘插值法进行反隔行处理,需要加权重的二进制文件.
... noformat          V->V       Force libavfilter not to use any of the specified pixel formats for the input to the next filter.
取消指定的像素格式,用于下一个滤镜.
TS. noise             V->V       Add noise.
视频输入帧上添加噪声.
... null              V->V       Pass the source unchanged to the output.
不改变视频源进行输出.
T.C overlay           VV->V      Overlay a video source on top of the input.
把一个视频覆盖到另一个视频上面,需要两个输入和一个输出.
T.. owdenoise         V->V       Denoise using wavelets.
利用小波降噪法进行降噪处理.
... pad               V->V       Pad the input video.
给输入视频添加填充新的显示区域.
... palettegen        V->V       Find the optimal palette for a given stream.
生成最佳调色板,用于给定的视频流.
... paletteuse        VV->V      Use a palette to downsample an input video stream.
下采样输入视频流中使用调色板,适用于生成 GIF 动态图.
... perms             V->V       Set permissions for the output video frame.
给输出视频帧设置读/写权限.
TS. perspective       V->V       Correct the perspective of video.
校正视频的透视.
T.. phase             V->V       Phase shift fields.
对隔行视频延迟单场时间,便于场序的变化.
... pixdesctest       V->V       Test pixel format definitions.
像素格式描述符测试滤镜,主要用于内部测试.
T.C pp                V->V       Filter video using libpostproc.
使用 libpostproc 后处理程序库进行过滤.
T.. pp7               V->V       Apply Postprocessing 7 filter.
使用后处理滤镜7.
... psnr              VV->V      Calculate the PSNR between two video streams.
计算两个视频流之间的峰值信噪比(PSNR).
... pullup            V->V       Pullup from field sequence to frames.
折叠场序用于输出帧,退回到电视电影效果.
T.. qp                V->V       Change video quantization parameters.
改变视频量化参数(QP).
... random            V->V       Return random frames.
从内部缓存刷新出视频帧的随机帧.
... realtime          V->V       Slow down filtering to match realtime.
减慢过滤速度,接近实时效果.
TS. removegrain       V->V       Remove grain.
移除纹理,对步进视频进行降噪处理.
T.. removelogo        V->V       Remove a TV logo based on a mask image.
利用掩模图像移除电视徽标,掩模图像的大小必须与视频相同,黑色是透明.
... repeatfields      V->V       Hard repeat fields based on MPEG repeat field flag.
根据运动图象专家组(MPEG)重复场标志,硬执行重复场.
... reverse           V->V       Reverse a clip.
倒放一段视频片段,需要把整个片段装入内存缓冲区.
TSC rotate            V->V       Rotate the input image.
任意角度旋转视频,用弧度表示的单位.
T.. sab               V->V       Apply shape adaptive blur.
形状自适应模糊滤镜.
..C scale             V->V       Scale the input video size and/or convert the image format.
缩放输入视频的尺寸并/或改变图像格式,使用libswscale库.
..C scale2ref         VV->VV     Scale the input video size and/or convert the image format to the given reference.
缩放输入视频的尺寸并/或改变图像格式用于引用视频,使用libswscale库.
... select            V->N       Select video frames to pass in output.
选择视频帧用于下一个滤镜.
TS. selectivecolor    V->V       Apply CMYK adjustments to specific color ranges.
利用青色,品红色,黄色和黑色(CMYK)调整特定范围的颜色.
... sendcmd           V->V       Send commands to filters.
给滤镜发送命令,必须插入到两个视频之间,只对具有该功能的滤镜命令有效.
... separatefields    V->V       Split input video frames into fields.
分解输入视频帧进场,产生一个新的一半高度剪辑帧.
... setdar            V->V       Set the frame display aspect ratio.
设置视频的显示纵横比.
... setfield          V->V       Force field for the output video frame.
改变输出视频帧的属性,不改变视频帧的数据.
... setpts            V->V       Set PTS for the output video frame.
设置输出视频帧的显示时间戳(PTS),可以用于快放或慢放等.
... setsar            V->V       Set the pixel sample aspect ratio.
设置像素采样纵横比.
... settb             V->V       Set timebase for the video output link.
设置时间轴用于视频输出帧的时间戳,主要用于测试时间轴配置.
... showinfo          V->V       Show textual information for each video frame.
显示每个视频帧的文本信息.
T.. showpalette       V->V       Display frame palette.
显示每一帧的 256 色调色板.
T.. shuffleframes     V->V       Shuffle video frames.
打乱视频帧,重新排序和/或重复视频帧.
... shuffleplanes     V->V       Shuffle video planes.
打乱视频映射平面,重新排序和/或重复视频映射平面.
.S. signalstats       V->V       Generate statistics from video analysis.
分析视频过程中生成统计信息.
T.. smartblur         V->V       Blur the input video without impacting the outlines.
模糊处理输入视频而不影响轮廓.
... split             V->N       Pass on the input to N video outputs.
输入的视频分配给N个相同的视频输出.
T.C spp               V->V       Apply a simple post processing filter.
简单的后处理滤镜,设置压缩品质对视频进行压缩.
... ssim              VV->V      Calculate the SSIM between two video streams.
计算两个输入视频之间的结构相似度(SSIM).
.S. stereo3d          V->V       Convert video stereoscopic 3D view.
视频转换成具有不同立体图像格式的三维视觉视频.
..C streamselect      N->N       Select video streams
多个输入视频流中选择一个视频流,若干个具有相同时间长度的媒体有效.
... subtitles         V->V       Render text subtitles onto input video using the libass library.
使用 libass 程序库输入视频上绘制字幕.
... super2xsai        V->V       Scale the input by 2x using the Super2xSaI pixel art algorithm.
利用像素艺术扩展算法把输入视频平滑放大两倍.
T.. swaprect          V->V       Swap 2 rectangular objects in video.
视频流中交换两个矩形对象.
... swapuv            V->V       Swap U and V components.
交换 U 和 V 映射平面分量.
.S. tblend            V->V       Blend successive frames.
两个视频帧混合到另一个帧上.
... telecine          V->V       Apply a telecine pattern.
使用电视电影模式,颜色边界有锯齿效果.
... thumbnail         V->V       Select the most representative frame in a given sequence of consecutive frames.
在给定的连续帧序列中选择具有代表性帧.
... tile              V->V       Tile several successive frames together.
瓦状布局若干个连续的帧,类似视频缩略图.
... tinterlace        V->V       Perform temporal field interlacing.
使用不同的隔行模式处理每一个帧.
.S. transpose         V->V       Transpose input video.
翻转输入视频,默认垂直翻转.
... trim              V->V       Pick one continuous section from the input, drop the rest.
从输入视频中挑选连续的组成部分,一直到结束.
T.. unsharp           V->V       Sharpen or blur the input video.
锐化或模糊处理输入视频.
T.. uspp              V->V       Apply Ultra Simple / Slow Post-processing filter.
超慢/简单的后处理滤镜,设置压缩品质对视频进行压缩.
... vectorscope       V->V       Video vectorscope.
显示输入视频的两个颜色分量值的二维图(矢量显示).
... vflip             V->V       Flip the input video vertically.
垂直翻转显示输入视频.
... vidstabdetect     V->V       Extract relative transformations,for stabilization.
提取视频的相对地变化,绘制矩形图矩阵内的箭头方向来显示变化趋势.
... vidstabtransform  V->V       Video stabilization/deshaking.
平滑/反锐化处理视频.
T.. vignette          V->V       Make or reverse a vignette effect.
生成或扭转镜头自然渐晕效果.
... vstack            N->V       Stack video inputs vertically.
把若干个输入视频垂直放置,所有视频的像素格式和宽度必须相同.
TS. w3fdif            V->V       Apply Martin Weston three field deinterlace.
使用马丁韦斯顿三场反隔行滤镜。
... waveform          V->V       Video waveform monitor.
视频波形监视器.
.S. xbr               V->V       Scale the input using xBR algorithm.
应用xBR算法放大输入视频,默认是放大三倍.
TS. yadif             V->V       Deinterlace the input image.
对输入图像进行反隔行处理.
T.. zoompan           V->V       Apply Zoom & Pan effect.
用于缩放和填充效果.
..C zscale            V->V       Apply resizing, colorspace and bit depth conversion.
用于重新调整大小,改变色隙和色彩深度.
... allrgb            |->V       Generate all RGB colors.
生成大小为 4096x4096 的包含所有 RGB 颜色表,需要大量内存.
... allyuv            |->V       Generate all yuv colors.
生成大小为 4096x4096 的包含所有 yuv 颜色表,需要大量内存.
... cellauto          |->V       Create pattern generated by an elementary cellular automaton.
利用初级多孔自动生成器创建一个图案,指定模式生成无数小三角形矩阵.
..C color             |->V       Provide an uniformly colored input.
提供了一个单色输入视频源.
... frei0r_src        |->V       Generate a frei0r source.
提供frei0r接口,frei0r是ffmpeg的子滤镜.
... haldclutsrc       |->V       Provide an identity Hald CLUT.
给哈尔德查色表源提供单位特征.
... life              |->V       Create life.
生成随机花纹的图案.
... mandelbrot        |->V       Render a Mandelbrot fractal.
生成一个曼德尔勃特集合分形,逐渐放大到指定点.
... mptestsrc         |->V       Generate various test pattern.
生成各种测试图案,静/动态小方块矩阵和圆形图案.
... nullsrc           |->V       Null video source, return unprocessed video frames.
生成空视频源,返回未处理的空视频帧.
... rgbtestsrc        |->V       Generate RGB test pattern.
生成 RGB 测试图案,横向红绿蓝三条图案.
... smptebars         |->V       Generate SMPTE color bars.
生成 SMPTE 颜色条图案,像电视测试信号视频.
... smptehdbars       |->V       Generate SMPTE HD color bars.
生成 SMPTE HD 颜色条图案.
... testsrc           |->V       Generate test pattern.
生成测试图案.
... testsrc2          |->V       Generate another test pattern.
生成另一个测试图案.
... nullsink          V->|       Do absolutely nothing with the input video.
生成空视频模板,与输入视频无关.
... concat            N->N       Concatenate audio and video streams.
连接音频和视频流.
... movie             |->N       Read from a movie source.
从视频源读入视频.
... buffer            |->V       Buffer video frames, and make them accessible to the filterchain.
缓冲视频帧,并用于滤镜链.
... buffersink        V->|       Buffer video frames, and make them available to the end of the filter graph.
缓冲视频帧,并用于滤镜图的结束.
... fifo              V->V       Buffer input images and send them when they are requested.
缓冲输入帧,若需要时.

评论

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×