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

Current version ffmpeg #53

Open
sonicWhale opened this issue Feb 14, 2019 · 0 comments
Open

Current version ffmpeg #53

sonicWhale opened this issue Feb 14, 2019 · 0 comments

Comments

@sonicWhale
Copy link

Hi all!
Tell me please which current ffmpeg docker image is right to use go-libav with it?
For example I'm trying use it with ffmpeg3.1.3 from https://hub.docker.com/r/alfpark/ffmpeg
In my case in Dockerfile has next steps:

FROM alfpark/ffmpeg:3.1.3.as ffmpeg
FROM golang:alpine
RUN apk add --update --no-cache \
        git faac\
        musl-dev coreutils build-base nasm ca-certificates curl tar \
        openssl-dev zlib-dev yasm-dev lame-dev freetype-dev opus-dev \
        rtmpdump-dev x264-dev x265-dev xvidcore-dev libass-dev libwebp-dev \
        libvorbis-dev libogg-dev libtheora-dev libvpx-dev pkgconfig

COPY --from=ffmpeg /usr/local /usr/local

//create my go repo and app
....
ENTRYPOINT /go/bin/run_my_go_app

In my app I just try register all codecs avformat.RegisterAll()
But it return's me error

# github.com/myrepo/vendor/github.com/imkira/go-libav/avcodec
/usr/lib/gcc/x86_64-alpine-linux-musl/8.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: cannot find -lfaac
collect2: error: ld returned 1 exit status

At the same time I'll add faac package at the begging
Thanks!

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