ffplay 一些好玩的filter

添加字幕:
ffplay -vf drawtext="fontfile=arial.ttf: text='Test Text': x=100: y=300: 
 fontsize=48: fontcolor=red: box=1: boxcolor=white" /d/ts/music.ts
把x=100 改成 x=50*t 可以使文本向右滚动。

黑白漫画风格显示:
ffplay -vf edgedetect=low=0.1:high=0.4 /d/ts/music.ts

对比正常视频和deshake 过的视频:
-vf 'split[a][b]; [a]pad=iw*2:ih[src]; [b]deshake[filt]; [src][filt]overlay=w'

堆叠视频/马赛克:
ffplay /d/ts/music.ts -vf 'scale=128:72,tile=4x4'
ffplay /d/ts/mis.ts -vf select='gt(scene\,0.4)',scale=160:120,tile

快进:
ffplay /d/ts/mis.ts -vf setpts=0.5*PTS

Audio Source:
 生成440Hz正弦信号,设置采样率为8000Hz:
 ffplay -nostats -f lavfi aevalsrc="sin(440*2*PI*t)::s=8000" 

Video Source:
 元包自动机:
 ffplay -nostats -f lavfi cellauto
 类似地,还有分形图案mandelbrot, 模拟life, 测试testsrc

todo:
how to use "nullsrc" <--the input content is to be ignored. for analysis/debugging?
synthesize a voice utterance using libflite

原文地址:https://www.cnblogs.com/youngt/p/3768316.html