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

how to support multi pipe input #115

Open
cherishman2005 opened this issue Mar 25, 2024 · 1 comment
Open

how to support multi pipe input #115

cherishman2005 opened this issue Mar 25, 2024 · 1 comment

Comments

@cherishman2005
Copy link

  • u2takey not support multi pipe input
ffmpeg -i pipe:0-i pipe:1-i pipe:2...

such as

	in1 := ffmpeg.Input("pipe:0", inArgs)
	overlay := ffmpeg.Input("pipe:1", inArgs).Filter("scale", ffmpeg.Args{"128:-1"}).WithInput(bytes.NewReader([]byte(testSdp)))
	e := ffmpeg.Filter(
		[]*ffmpeg.Stream{
			in1,
			overlay,
		}, "overlay", ffmpeg.Args{"10:10"}, ffmpeg.KwArgs{"enable": "gte(t,1)"}).
		WithInput(bytes.NewReader([]byte(ffmpegSdp))).
		Output(*output, outArgs).OverWriteOutput().ErrorToStdOut().Run()

image

pipe:1: Invalid data found when processing input

@cherishman2005
Copy link
Author

no way, and try to put content into http-server, and ffmpeg input with http-protocol:

	in1 := ffmpeg.Input("http://xxx", inArgs)
	overlay := ffmpeg.Input("http://yyy", inArgs).Filter("scale", ffmpeg.Args{"128:-1"})
	e := ffmpeg.Filter(
		[]*ffmpeg.Stream{
			in1,
			overlay,
		}, "overlay", ffmpeg.Args{"10:10"}, ffmpeg.KwArgs{"enable": "gte(t,1)"}).
		Output(*output, outArgs).OverWriteOutput().ErrorToStdOut().Run()
  • how to support multi pipe input with perfect way?

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