Add RPi-specific build of FFmpeg for HEVC support

This commit is contained in:
Cameron Gutman
2021-05-01 19:54:49 +00:00
parent bda73eea6f
commit e19eed6cd4
6 changed files with 3046 additions and 3 deletions

View File

@@ -8,9 +8,11 @@ if [ "$ARCH" == "armv7l" ]; then
# Copy libraspberrypi-dev pkgconfig files into the default location
mkdir -p /usr/local/lib/pkgconfig
cp /opt/vc/lib/pkgconfig/* /usr/local/lib/pkgconfig/
# Update headers with new definitions required for RPi/V4L2-request
cp /opt/RPi/videodev2.h /usr/include/linux/videodev2.h
cp /opt/RPi/media.h /usr/include/linux/media.h
# Enable MMAL decoders
EXTRA_FFMPEG_ARGS="--enable-mmal --enable-decoder=h264_mmal"
EXTRA_FFMPEG_ARGS="--enable-mmal --enable-decoder=h264_mmal --disable-rpi --enable-sand --enable-libudev --enable-v4l2-request --enable-hwaccel=h264_v4l2request --enable-hwaccel=hevc_v4l2request"
elif [ "$ARCH" == "aarch64" ]; then
# Enable NVMPI decoders
EXTRA_FFMPEG_ARGS="--enable-nvmpi --enable-decoder=h264_nvmpi --enable-decoder=hevc_nvmpi"