Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VideoFilter 无法使用 #5

Open
assertdebug opened this issue Apr 25, 2019 · 0 comments
Open

VideoFilter 无法使用 #5

assertdebug opened this issue Apr 25, 2019 · 0 comments

Comments

@assertdebug
Copy link

static void setFilterDescr(int idx, char **filter_descr)
{
	switch (idx)
	{
	case 1:
		*filter_descr = "lutyuv='u=128:v=128'";
	case 2:
		*filter_descr = "boxblur";
	case 3:
		*filter_descr = "hflip";
	case 4:
		*filter_descr = "hue='h=60:s=-3'";
	//case 5:
	//	*filter_descr = "crop=2/3*in_w:2/3*in_h";
	case 5:
		*filter_descr = "crop=2/3*in_w:2/3*in_h"; 
	case 6:
		*filter_descr = "drawbox=x=100:y=100:w=100:h=100:[email protected]";
	case 7:
		*filter_descr = "drawtext=fontfile=arial.ttf:fontcolor=green:fontsize=30:text='FFMpeg Filter Demo'";
	}
}

应该添加break
但是输出的视频效果是不对的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant