Click here to Skip to main content
15,885,244 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C#
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....?
Posted
Updated 2-Feb-12 18:01pm
v2
Comments
Wendelius 3-Feb-12 0:01am    
Pre tags added

1 solution

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.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900