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

error: "Given string is too short for a pipeline" when trying gstreamer basic example 1 #45

Open
db-tech opened this issue Jul 8, 2022 · 1 comment

Comments

@db-tech
Copy link

db-tech commented Jul 8, 2022

When I tried to get the Basic tutorial 1: Hello World example to run, I get the following error message:

Given string is too short for a pipeline: playbin uri=https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm

The example can be found here:
https://gstreamer.freedesktop.org/documentation/tutorials/basic/hello-world.html?gi-language=c

I guess the reason is that the string is always expected to include an exclamation mark ?

	if len(strings.Split(launchv, "!")) < 2 {
		return nil, fmt.Errorf("Given string is too short for a pipeline: %s", launchv)
	}

The string given to the launch command is: "playbin uri=https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm"

@brucekim
Copy link
Collaborator

I agree with you that the line of code you mentioned is unnecessary part.

I think gst_parse_launch() has no restriction on its parameter, pipeline_description so it would be enough let go-gst do samething.
If you raise PR then I can review/merge it.

https://gstreamer.freedesktop.org/documentation/gstreamer/gstparse.html?gi-language=c#gst_parse_launch

nielsavonds pushed a commit to nielsavonds/go-gst that referenced this issue Aug 14, 2024
…urce_mem_leak

fix memory leak in interpolation control source
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

2 participants