-
Notifications
You must be signed in to change notification settings - Fork 12
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
build fails on osx. #16
Comments
Did you get FFMPEG installed? There is also a flag to compile without it. I think AVCodecContext is FFMPEG. |
@robclemamzn, note that @robdt has updated the build instructions on the README , and if you follow the new instructions carefully, it will install the FFmpeg 4.0.2 headers, even on Apple Silicon. Having trusted the new instructions, I now have Caption Inspector back and running - even on M1. Thanks for the update @robdt. brew install nasm yasm
cd $HOME
curl -s http://ffmpeg.org/releases/ffmpeg-4.0.2.tar.gz | tar zxvf - -C .
cd ffmpeg-4.0.2/
./configure --enable-version3 --enable-hardcoded-tables --enable-shared --enable-static --enable-small --enable-libass --enable-postproc --enable-avresample --enable-libfreetype --disable-lzma --enable-opencl --enable-pthreads
make
make install # note may require sudo depending on your system permissions
make distclean cd $HOME
git clone https://github.com/Comcast/caption-inspector.git
cd caption-inspector
make caption-inspector Then, copy the Tested on both M1 and x86 running Monterey - and the FFmpeg 4.0.2 does not fight with my brew installed FFmpeg 5.x. Good times. |
cd src ; make ../caption-inspector
clang -c -Wpedantic -Wno-deprecated-declarations -I ../include source/mcc_file.c -o ../obj/mcc_file.o
In file included from source/mcc_file.c:29:
In file included from ../include/captions_file.h:23:
In file included from ../include/pipeline_utils.h:23:
../include/context.h:117:5: error: unknown type name 'AVCodecContext'
AVCodecContext* decoderContext;
any ideas??
The text was updated successfully, but these errors were encountered: