Skip to content

Commit

Permalink
Try to build with qsv
Browse files Browse the repository at this point in the history
  • Loading branch information
hmaarrfk committed Jan 15, 2025
1 parent 465cf98 commit c0787fc
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 5 deletions.
3 changes: 2 additions & 1 deletion recipe/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ elif [[ "${target_platform}" == linux-* ]]; then
extra_args="${extra_args} --enable-libass"
extra_args="${extra_args} --enable-pthreads"
if [[ "${target_platform}" == "linux-64" ]]; then
extra_args="${extra_args} --enable-libvpl"
extra_args="${extra_args} --enable-vaapi"
fi
elif [[ "${target_platform}" == osx-* ]]; then
Expand Down Expand Up @@ -153,7 +154,7 @@ fi
--enable-version3 \
--enable-zlib \
--enable-libopus \
--enable-librsvg \
--enable-librsvg \
--pkg-config=${PKG_CONFIG} \
|| { if [[ ${CI} != "" ]]; then cat ffbuild/config.log; fi; exit 1; }

Expand Down
2 changes: 2 additions & 0 deletions recipe/conda_build_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ license_family:
# I think they could technically be out of sync
# To find the compatibility version of ffnvcodec_headers, you can look at the
# https://github.com/FFmpeg/nv-codec-headers/tree/n12.0.16.1
# See minver variable in for mor info
# https://github.com/FFmpeg/FFmpeg/blob/release/7.1/libavcodec/nvenc.c
# To find the __cuda version I:
# Uninstall all nvidia driver from ubuntu
# Installed a specific version they offered
Expand Down
21 changes: 17 additions & 4 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ source:
# Include time_internal header for windows to correctly locate localtime_r and gmtime_r
- patches/include_time_internal_header.patch

{% set build = 9 %}
{% set build = 10 %}
{% if license_family == 'gpl' %}
{% set build = build + 100 %}
{% endif %}
Expand Down Expand Up @@ -72,8 +72,9 @@ requirements:
- bzip2
- freetype
- expat
- libass # [unix]
- libass # [unix]
- harfbuzz
- libvpl # [linux64]
# glib is only required to find harfbuzz with pkg-config at compilation time
# but it is not directly linked to the system
- glib
Expand Down Expand Up @@ -192,13 +193,25 @@ test:
{% for nvcodec in nvcodecs %}
- ffmpeg -hide_banner -codecs | {{ grep }} "{{ nvcodec }}" # [ffnvcodec_headers != "None"]
{% endfor %}
{% set qsv_codecs = [
"h264_qsv",
"hevc_qsv",
"mjpeg_qsv",
"mpeg2_qsv",
"vc1_qsv",
"vp8_qsv",
"vp9_qsv",
] %}
{% for qsv_codec in qsv_codecs %}
- ffmpeg -hide_banner -codecs | {{ grep }} "{{ qsv_codec }}" # [linux64]
{% endfor %}
# https://trac.ffmpeg.org/wiki/Null
- ffmpeg -hide_banner -f lavfi -i nullsrc=s=256x256:d=8 -vcodec libopenh264 -f null -

about:
home: https://www.ffmpeg.org/
license: GPL-2.0-or-later # [license_family=='gpl']
license: LGPL-2.1-or-later # [license_family=='lgpl']
license: GPL-2.0-or-later # [license_family=='gpl']
license: LGPL-2.1-or-later # [license_family=='lgpl']
license_file:
- COPYING.GPLv2 # [license_family=='gpl']
- COPYING.GPLv3 # [license_family=='gpl']
Expand Down

0 comments on commit c0787fc

Please sign in to comment.