如何获得矿山输入视频的灰度输出? [英] how to get output as a grayscale for mine input video?

查看:104
本文介绍了如何获得矿山输入视频的灰度输出?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

private void Filter_Invert(object sender, System.EventArgs e)
		{
			if(BitmapFilter.Invert(m_Bitmap))
				this.Invalidate();
		}

		private void Filter_GrayScale(object sender, System.EventArgs e)
		{
			if(BitmapFilter.GrayScale(m_Bitmap))
				this.Invalidate();
		}




通过使用此功能,我们可以将图像文件转换为灰度,然后像这样反转.....

但是如何将我们输入的普通视频文件转换为灰度视频....?




By using this we can able to convert a image file into grayscale, invert like that.....

but how to convert our input normal video file into grayscale video....?

推荐答案

您需要将视频转换为灰度视频.

ffmpeg -i VTS_05_1.VOB -pix_fmt灰色-vcodec rawvideo -f rawvideo-| ffmpeg -y
-pix_fmt灰色-s 720x576 -f rawvideo -i--pix_fmt yuv420p -vcodec rawvideo -f
rawvideo-| x264 -o out.avi-720x576

在这里会有所帮助

有关更多详细信息,请参见
http://ffmpeg.org/libavfilter.html#color [
you need to convert the video to grayscale.

ffmpeg -i VTS_05_1.VOB -pix_fmt gray -vcodec rawvideo -f rawvideo - | ffmpeg -y
-pix_fmt gray -s 720x576 -f rawvideo -i - -pix_fmt yuv420p -vcodec rawvideo -f
rawvideo - | x264 -o out.avi - 720x576

here it will help

For more details
http://ffmpeg.org/libavfilter.html#color[^]

read from above link.

Hope this helps.


这篇关于如何获得矿山输入视频的灰度输出?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆