caption-inspector
caption-inspector copied to clipboard
build fails on osx.
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??
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 $HOME/caption-inspector/caption-inspector
executable to somewhere appropriate, for example somewhere like /opt/caption-inspector/bin/
or /usr/local/bin/
.
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.