Closed martinlindhe closed 7 years ago
Yep sorry, not yet supported due to breaking changes in ffmpeg API. Currently, only 3.0.x is supported but I'm planning on upgrading. This is being used internally in my company and I'm not sure if we can have 3.3 support that also works with 3.2 and 3.1 without having to develop 3 different branches. I cannot give you a specific timeline for this, but if you feel like it I welcome you to work on it if you really need it asap. I will leave this open for now until I have more updates.
There is additional warnings about deprecated functions, but I managed to use some parts of this lib with ffmpeg 3.3 to extract media info (#40). I will continue to push some changes for ffmpeg 3.3 to my branch for now. I hope we can avoid having multiple branches of this too.
I've been looking into this more.
I am currently trying to resolve api change issues using build tags.
This way we can use a avcodec_30.go
naming and // +build ffmpeg30
tag in the source, to build certain parts for ffmpeg 3.0, and others for ffmpeg 3.3.
API's that has been removed in ffmpeg 3.3 will simply not be accessible using build tag "ffmpeg33".
How does this sound?
how do you go get
this ? and how would importing from a non master branch work if i want to try this out ?
@NikkyAI how you go get
go-libav? as you normally would.
go get github.com/imkira/go-libav
to try out the PR, just add my repo as a remote and check it out, something like this: (you would find my branch name in the PR)
cd go/src/github.com/imkira/go-libav
git remote add martins https://github.com/martinlindhe/go-libav
git fetch martins
git checkout martins/ffmpeg33
@NikkyAI You would do it as you would normally do, the problem is when go getting, go will also try to build it. Try like this
go get -u -tags=ffmpeg33 github.com/imkira/go-libav
Got the following errors
It seems in ffmpeg 3.3, status got repurposed as "ready" in https://github.com/FFmpeg/FFmpeg/commit/02aa0701ae0dc2def8db640c9e3c06dc1b5de70c#diff-922654fd0bdecbcd8ccee2c39549c46f
and frame_count turned into frame_count_in and frame_count_out in commit https://github.com/FFmpeg/FFmpeg/commit/183ce55b0de0a597b838d08bbac67f54c27ed42f#diff-922654fd0bdecbcd8ccee2c39549c46f
One way to resolve would be to remove these functions:
any idea?