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 create an encoding with a DolbyVision InputStream #5

Open
robertoamici opened this issue May 10, 2022 · 0 comments
Open

How to create an encoding with a DolbyVision InputStream #5

robertoamici opened this issue May 10, 2022 · 0 comments

Comments

@robertoamici
Copy link

Hi there

not sure if I am doing things right, but there are no examples so I shall ask the question.

I want to create a dolby vision encoding job, so I create a model.DolbyVisionInputStream since it seems to be the way to do it according to this

	stream, err := bitmovinAPI.Encoding.Encodings.InputStreams.DolbyVision.Create(*encoding.Id, model.DolbyVisionInputStream{
		InputId:           input.Id,
		VideoInputPath:    *videoPath,
		MetadataInputPath: *metadataPath,
	})

so now the stream variable is of type model.DolbyVisionInputStream, which is great. However, the Create Streams operation requires a slice of model.InputStream, which is a struct and not an interface so I can't pass a model.DolbyVisionInputStream into it

https://github.com/bitmovin/bitmovin-api-sdk-go/blob/main/api/encoding_encodings_streams_api.go#L69
https://github.com/bitmovin/bitmovin-api-sdk-go/blob/main/model/stream.go#L24-L25

how to do this?

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