gmf
gmf copied to clipboard
Getting "CloseInputAndRelease undefined, packet.Frames undefined" error when trying to run Transcode example
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)
Hi.
Yeah, unfortunately this is right — current version of transcode.go
is obsolete. I'll write a new one soon.
Thanks.
Hi @3d0c, I'm waiting :)
Running into the same issue. an update would help a lot here :-)
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.