Skip to content

Commit f30b5e9

Browse files
author
joepers
committed
enable srt
1 parent ef6da67 commit f30b5e9

File tree

3 files changed

+44
-16
lines changed

3 files changed

+44
-16
lines changed

.github/workflows/build-ffmpeg.yml

+28-15
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,21 @@ jobs:
2020
fail-fast: false
2121
matrix:
2222
include:
23-
- os: macos-14
24-
arch: arm64
25-
shell: bash
26-
- os: macos-13
27-
arch: x86_64
28-
shell: bash
29-
- os: ubuntu-latest
30-
arch: i686
31-
shell: bash
23+
# - os: macos-14
24+
# arch: arm64
25+
# shell: bash
26+
# - os: macos-13
27+
# arch: x86_64
28+
# shell: bash
29+
# - os: ubuntu-latest
30+
# arch: i686
31+
# shell: bash
3232
- os: ubuntu-latest
3333
arch: x86_64
3434
shell: bash
35-
- os: windows-latest
36-
arch: AMD64
37-
shell: 'msys2 {0}'
35+
# - os: windows-latest
36+
# arch: AMD64
37+
# shell: 'msys2 {0}'
3838
defaults:
3939
run:
4040
shell: ${{ matrix.shell }}
@@ -46,17 +46,30 @@ jobs:
4646
- name: Set deployment target
4747
if: matrix.os == 'macos-13' || matrix.os == 'macos-14'
4848
run: echo "MACOSX_DEPLOYMENT_TARGET=10.13" >> $GITHUB_ENV
49-
- name: Install packages
49+
- name: Install packages for macos
5050
if: matrix.os == 'macos-13' || matrix.os == 'macos-14'
5151
run: |
5252
brew update
53-
brew install pkg-config
53+
brew install pkg-config [email protected]
5454
brew unlink gettext libidn2 libpng libtiff libunistring libx11 libxau libxcb libxdmcp little-cms2 unbound
55+
- name: Install packages for linux
56+
if: matrix.os == 'ubuntu-latest'
57+
run: |
58+
sudo apt-get update
59+
sudo apt-get install autoconf automake build-essential cmake libtool pkg-config nasm zlib1g-dev libvorbis-dev libx264-dev 'libgnutls.*-dev' libsrt-gnutls-dev gnutls-bin srt-tools 'libsrt.*-gnutls' libssl-dev
5560
- uses: msys2/setup-msys2@v2
5661
if: matrix.os == 'windows-latest'
5762
with:
5863
install: base-devel mingw-w64-x86_64-gcc mingw-w64-x86_64-gperf mingw-w64-x86_64-nasm
5964
path-type: inherit
65+
- name: list
66+
run: |
67+
echo 111111
68+
dpkg -L libsrt1.4-gnutls
69+
echo 222222
70+
dpkg -L libsrt-gnutls-dev
71+
echo 333333
72+
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/lib/x86_64-linux-gnu/pkgconfig
6073
- name: Build FFmpeg
6174
env:
6275
CIBW_ARCHS: ${{ matrix.arch }}
@@ -76,7 +89,7 @@ jobs:
7689
with:
7790
name: output-${{ matrix.os }}-${{ matrix.arch }}
7891
path: output/
79-
92+
8093
build-qemu-stage-1:
8194
runs-on: ${{ matrix.os }}
8295
strategy:

scripts/build-ffmpeg.py

+1
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,7 @@ def main():
317317
"--enable-libopencore-amrwb",
318318
"--enable-libopus",
319319
"--enable-libspeex",
320+
"--enable-libsrt",
320321
"--enable-libtwolame",
321322
"--enable-libvorbis",
322323
"--enable-libvpx",

scripts/cibuildpkg.py

+15-1
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,24 @@ def run(cmd, env=None):
102102
try:
103103
subprocess.run(cmd, check=True, env=env, stderr=subprocess.PIPE, text=True)
104104
except subprocess.CalledProcessError as e:
105-
print(f"stderr: {e.stderr}")
105+
print(f"1111111stderr: {e.stderr}")
106+
find_file("ffbuild/config.log")
106107
raise e
107108

108109

110+
def find_file(target_path):
111+
target_dir, target_file = os.path.split(target_path)
112+
for root, dirs, files in os.walk("/"):
113+
if target_dir in dirs:
114+
potential_dir = os.path.join(root, target_dir)
115+
if target_file in os.listdir(potential_dir):
116+
full_path = os.path.join(potential_dir, target_file)
117+
print(f"2222222Found: {full_path}")
118+
with open(full_path, 'r') as log_file:
119+
print(log_file.read())
120+
121+
122+
109123
@dataclass
110124
class Package:
111125
name: str

0 commit comments

Comments
 (0)