From 4c8112cb0e77edd9c3516bbdd2d3964b8577ae56 Mon Sep 17 00:00:00 2001 From: Stefano Lusardi Date: Sun, 4 Aug 2024 16:20:38 +0200 Subject: [PATCH] Added project badges. Added ffmpeg options in project conanfile to align with the library ffmpeg options. --- README.md | 5 +++++ conanfile.py | 49 ++++++++++++++++++++++++++++++++++++++++--------- 2 files changed, 45 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index ffc0376..81e672c 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,11 @@ Welcome to TeiaCareVideoIO! *TeiaCareVideoIO* is a C++ video encoder and decoder library. +[![Docs](https://img.shields.io/badge/Docs-TeiaCareVideoIO-white.svg)](https://teiacare.github.io/TeiaCareVideoIO/md_README.html) +[![Codacy Badge](https://app.codacy.com/project/badge/Grade/baef7f2dfab74df1985a25ee5ebcb88e)](https://app.codacy.com/gh/TeiaCare/TeiaCareVideoIO/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade) +[![Codacy Badge](https://app.codacy.com/project/badge/Coverage/baef7f2dfab74df1985a25ee5ebcb88e)](https://app.codacy.com/gh/TeiaCare/TeiaCareVideoIO/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_coverage) +[![codecov](https://codecov.io/gh/TeiaCare/TeiaCareVideoIO/branch/develop/graph/badge.svg?token=2o019cGivY)](https://codecov.io/gh/TeiaCare/TeiaCareVideoIO) + ![TeiaCareVideoIO](https://socialify.git.ci/TeiaCare/TeiaCareVideoIo/image?description=1&font=Raleway&name=1&pattern=Solid&theme=Auto) diff --git a/conanfile.py b/conanfile.py index 9dc51ba..61ddc39 100644 --- a/conanfile.py +++ b/conanfile.py @@ -49,7 +49,33 @@ def configure(self): if self.options.shared: del self.options.fPIC - # self.options["ffmpeg"].disable_everything=True + self.options["ffmpeg"].disable_all_encoders=True + self.options["ffmpeg"].enable_encoders='libx264' + + self.options["ffmpeg"].disable_all_decoders=True + self.options["ffmpeg"].enable_decoders='h264,hevc,mpegvideo,mpeg1video,mpeg2video,mpeg4,mjpeg' + + self.options["ffmpeg"].disable_all_muxers=True + self.options["ffmpeg"].enable_muxers='rtp,rtsp,mov,h264,hevc,matroska,mp4' + + self.options["ffmpeg"].disable_all_demuxers=True + self.options["ffmpeg"].enable_demuxers='rtp,rtsp,h264,hevc,mov,matroska,mjpeg,mpeg,mpegvideo' + + self.options["ffmpeg"].disable_all_protocols=True + self.options["ffmpeg"].enable_protocols='rtp,srtp,udp,tcp,file,async' + + self.options["ffmpeg"].disable_all_parsers=True + self.options["ffmpeg"].disable_all_hardware_accelerators=True + self.options["ffmpeg"].disable_all_bitstream_filters=True + self.options["ffmpeg"].disable_all_devices=True + self.options["ffmpeg"].disable_all_filters=True + + self.options["ffmpeg"].avformat=True + self.options["ffmpeg"].avcodec=True + self.options["ffmpeg"].swscale=True + self.options["ffmpeg"].avdevice=False + self.options["ffmpeg"].avfilter=False + self.options["ffmpeg"].swresample=False self.options["ffmpeg"].with_asm=True self.options["ffmpeg"].with_zlib=True @@ -69,14 +95,19 @@ def configure(self): self.options["ffmpeg"].with_libmp3lame=False self.options["ffmpeg"].with_libfdk_aac=False self.options["ffmpeg"].with_libwebp=False - self.options["ffmpeg"].with_ssl="openssl" - self.options["ffmpeg"].with_libalsa=False - self.options["ffmpeg"].with_pulse=False - self.options["ffmpeg"].with_vaapi=False - self.options["ffmpeg"].with_vdpau=False - self.options["ffmpeg"].with_vulkan=False - self.options["ffmpeg"].with_xcb=False - self.options["ffmpeg"].with_programs=False + self.options["ffmpeg"].with_ssl='openssl' + self.options["ffmpeg"].with_programs=True + self.options["ffmpeg"].with_libsvtav1=False + self.options["ffmpeg"].with_libaom=False + self.options["ffmpeg"].with_libdav1d=False + + if self.settings.os == "Linux": + self.options["ffmpeg"].with_libalsa=False + self.options["ffmpeg"].with_pulse=False + self.options["ffmpeg"].with_vaapi=False + self.options["ffmpeg"].with_vdpau=False + self.options["ffmpeg"].with_vulkan=False + self.options["ffmpeg"].with_xcb=False def generate(self): tc = CMakeToolchain(self)