I'm a JavaScript fanatic but I've always been fascinated with media manipulation. Maybe it's because I've secretly always wanted to be a designer, but I'm fine with being able to manipulate art with software instead of create the art myself. One type of art I've always enjoyed was black and white (/grayscale) video.
我是JavaScript的狂热者,但我一直着迷于媒体操作。 也许是因为我一直秘密地想成为一名设计师,但是我能够用软件来操纵艺术品而不是自己创作艺术品就可以了。 我一直喜欢的一种艺术是黑白(/灰度)视频。
To convert a video to black and white, you can utilize ffmpeg with a few simple arguments:
要将视频转换为黑白图像,可以使用带有几个简单参数的ffmpeg:
ffmpeg -i input.mp4 -vf hue=s=0 output.mp4
The preceding command turns this color video:
前面的命令打开此彩色视频:
... to the following grayscale video:
...到以下灰度视频:
If you were to search on this blog, you'd find dozens of tutorials about how amazing the tool is. Play around with ffmpeg and let me know what awesomeness you come up with!
如果要在此博客上搜索 ,您会发现许多教程,介绍该工具的强大之处。 和ffmpeg一起玩,让我知道您带来了什么了不起!
翻译自: