Add Travis CI testing enviroment #56
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
cuda-ubuntu.dockerfile
)--enable-*
) to be added in each build section (CONFIGURE_OPTIONS
).About CUDA
Since the version of CUDA published by nvidia/cuda is 11.1 in ubuntu 20.04, and the target architecture is very old (SM30) in ffmpeg's default nvccflags and completely removed in CUDA11, the target architecture is SM52 added a flag to change to. (ref: https://arnon.dk/matching-sm-architectures-arch-and-gencode-for-various-nvidia-cards/)
--nvccflags=-gencode arch=compute_52,code=sm_52
Backwards compatibility exists (just not optimal), so you only need to change this flag when using older graphics cards or if you want to optimize for a particular graphics card.
Removed some config options
--enable-runtime-cpudetect
: Enabled by default. (https://github.com/FFmpeg/FFmpeg/blob/6b6b9e593dd4d3aaf75f48d40a13ef03bdef9fdb/configure#L108)--enable-avfilter
: Enabled by default. (https://github.com/FFmpeg/FFmpeg/blob/6b6b9e593dd4d3aaf75f48d40a13ef03bdef9fdb/configure#L134)--enable-filters
: Enabled by default.(https://github.com/FFmpeg/FFmpeg/blob/6b6b9e593dd4d3aaf75f48d40a13ef03bdef9fdb/configure#L186)
Add config options
--enable-libxvid
: Adding this option resulted in dynamic linking, so the code to remove the dynamic library was added.Sincerely,