Skip to content

Commit

Permalink
Added project badges. Added ffmpeg options in project conanfile to al…
Browse files Browse the repository at this point in the history
…ign with the library ffmpeg options.
  • Loading branch information
StefanoLusardi committed Aug 4, 2024
1 parent 7cc457f commit 4c8112c
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 9 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down
49 changes: 40 additions & 9 deletions conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down

0 comments on commit 4c8112c

Please sign in to comment.