gmf icon indicating copy to clipboard operation
gmf copied to clipboard

Getting "CloseInputAndRelease undefined, packet.Frames undefined" error when trying to run Transcode example

Open cyantarek opened this issue 4 years ago • 4 comments

HI,

I'm trying to run transcode.go example by following the installation guide. But I'm getting this error:

# audio-extract-resample
./main.go:95:16: inputCtx.CloseInputAndRelease undefined (type *gmf.FmtCtx has no field or method CloseInputAndRelease)
./main.go:98:17: outputCtx.CloseOutputAndRelease undefined (type *gmf.FmtCtx has no field or method CloseOutputAndRelease)
./main.go:131:23: packet.Frames undefined (type *gmf.Packet has no field or method Frames)
./main.go:137:15: cannot use packet (type *gmf.Packet) as type gmf.CgoMemoryManager in argument to gmf.Release:
	*gmf.Packet does not implement gmf.CgoMemoryManager (missing Release method)

cyantarek avatar Apr 09 '20 14:04 cyantarek

Hi. Yeah, unfortunately this is right — current version of transcode.go is obsolete. I'll write a new one soon. Thanks.

3d0c avatar Apr 09 '20 15:04 3d0c

Hi @3d0c, I'm waiting :)

cyantarek avatar Apr 10 '20 04:04 cyantarek

Running into the same issue. an update would help a lot here :-)

Xantios avatar Jan 12 '21 20:01 Xantios

Had the same problem, eventually got something working:

https://github.com/a1comms/go-mp3-transcode-api

Stripped all the video stuff out though, as we only wanted audio transcoding.

iamacarpet avatar Jun 09 '23 08:06 iamacarpet