Skip to content

Commit 412c4a3

Browse files
committed
Upgrade to FFmpeg5
1 parent 79d6795 commit 412c4a3

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

docs/source/installation.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Please refer to https://pytorch.org/get-started/locally/ for the details.
1616
each of which requires a corresponding PyTorch distribution.
1717

1818
.. note::
19-
This software was compiled against an unmodified copy of FFmpeg (licensed under `the LGPLv2.1 <https://github.com/FFmpeg/FFmpeg/blob/a5d2008e2a2360d351798e9abe883d603e231442/COPYING.LGPLv2.1>`_), with the specific rpath removed so as to enable the use of system libraries. The LGPL source can be downloaded `here <https://github.com/FFmpeg/FFmpeg/releases/tag/n4.1.8>`_.
19+
This software was compiled against an unmodified copy of FFmpeg (licensed under `the LGPLv2.1 <https://github.com/FFmpeg/FFmpeg/blob/0e15444aceca0e78f99f3d67758eb79d11b86599/COPYING.LGPLv2.1>`_), with the specific rpath removed so as to enable the use of system libraries. The LGPL source can be downloaded `here <https://github.com/FFmpeg/FFmpeg/releases/tag/n5.0.3>`_.
2020

2121
Dependencies
2222
------------
@@ -31,8 +31,8 @@ Optional Dependencies
3131
* `FFmpeg <https://ffmpeg.org>`_.
3232

3333
Required to use :py:mod:`torchaudio.io` module.
34-
TorchAudio official binary distributions are compatible with FFmpeg 4.1 to 4.4.
35-
If you need to use FFmpeg 5, please build TorchAudio from source.
34+
TorchAudio official binary distributions are compatible with FFmpeg 5.
35+
If you need to use FFmpeg 6, please build TorchAudio from source.
3636

3737
* `sentencepiece <https://pypi.org/project/sentencepiece/>`_
3838

packaging/ffmpeg/build.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ cd "${build_dir}"
3232
# NOTE:
3333
# When changing the version of FFmpeg, update the README so that the link to the source points
3434
# the same version.
35-
curl -LsS -o ffmpeg.tar.gz https://github.com/FFmpeg/FFmpeg/archive/refs/tags/n4.1.8.tar.gz
35+
curl -LsS -o ffmpeg.tar.gz https://github.com/FFmpeg/FFmpeg/archive/refs/tags/n5.0.3.tar.gz
3636
tar -xf ffmpeg.tar.gz --strip-components 1
3737
./configure \
3838
--prefix="${prefix}" \
@@ -72,11 +72,11 @@ ls ${prefix}/*
7272
# macOS: Fix rpath so that the libraries are searched dynamically in user environment.
7373
# In Linux, this is handled by `--enable-rpath` flag.
7474
if [[ "$(uname)" == Darwin ]]; then
75-
avcodec=libavcodec.58
76-
avdevice=libavdevice.58
77-
avfilter=libavfilter.7
78-
avformat=libavformat.58
79-
avutil=libavutil.56
75+
avcodec=libavcodec.59
76+
avdevice=libavdevice.59
77+
avfilter=libavfilter.8
78+
avformat=libavformat.59
79+
avutil=libavutil.57
8080

8181
otool="/usr/bin/otool"
8282
# NOTE: miniconda has a version of otool and install_name_tool installed and we want

0 commit comments

Comments
 (0)