Skip to content

Commit f5cc5ee

Browse files
committed
initial v3 setup
1 parent b092615 commit f5cc5ee

File tree

100 files changed

+997
-35165
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+997
-35165
lines changed

.github/workflows/ci.yml

+17-9
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,34 @@ on:
55
branches:
66
- master
77
jobs:
8-
test:
9-
name: Run tests
8+
build:
9+
name: Build fluent-ffmpeg
1010
runs-on: ubuntu-latest
11-
strategy:
12-
matrix:
13-
node: [18, 20, 21]
1411
steps:
1512
- name: Checkout
1613
uses: actions/checkout@v4
17-
- name: Install flvtool2
18-
run: sudo gem install flvtool2
19-
- name: Install ffmpeg
20-
run: sudo apt install -y ffmpeg
2114
- name: Setup node
2215
uses: actions/setup-node@v3
2316
with:
2417
node-version: ${{ matrix.node }}
2518
cache: yarn
2619
- name: Install dependencies
2720
run: yarn
21+
- name: Build
22+
run: yarn build
23+
24+
test:
25+
name: Run tests
26+
needs: build
27+
runs-on: ubuntu-latest
28+
strategy:
29+
matrix:
30+
node: [18, 20, 21]
31+
steps:
32+
- name: Install flvtool2
33+
run: sudo gem install flvtool2
34+
- name: Install ffmpeg
35+
run: sudo apt install -y ffmpeg
2836
- name: Run tests
2937
run: yarn test
3038
- name: Generate coverage report

.gitignore

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
*.project
1+
coverage
2+
lib
23
node_modules
34
.nyc_output
4-
*.swp
5-
.idea
6-
*.iml
7-
coverage
5+
types

.npmignore

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
*.md
21
.git*
32
test/
4-
examples/
3+
src/

Makefile

-20
This file was deleted.

README.md

-4
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,8 @@ fluent-ffmpeg requires ffmpeg >= 0.9 to work. It may work with previous version
3939

4040
If the `FFMPEG_PATH` environment variable is set, fluent-ffmpeg will use it as the full path to the `ffmpeg` executable. Otherwise, it will attempt to call `ffmpeg` directly (so it should be in your `PATH`). You must also have ffprobe installed (it comes with ffmpeg in most distributions). Similarly, fluent-ffmpeg will use the `FFPROBE_PATH` environment variable if it is set, otherwise it will attempt to call it in the `PATH`.
4141

42-
Most features should work when using avconv and avprobe instead of ffmpeg and ffprobe, but they are not officially supported at the moment.
43-
4442
**Windows users**: most probably ffmpeg and ffprobe will _not_ be in your `%PATH`, so you _must_ set `%FFMPEG_PATH` and `%FFPROBE_PATH`.
4543

46-
**Debian/Ubuntu users**: the official repositories have the ffmpeg/ffprobe executable in the `libav-tools` package, and they are actually rebranded avconv/avprobe executables (avconv is a fork of ffmpeg). They should be mostly compatible, but should you encounter any issue, you may want to use the real ffmpeg instead. You can either compile it from source or find a pre-built .deb package at https://ffmpeg.org/download.html (For Ubuntu, the `ppa:mc3man/trusty-media` PPA provides recent builds).
47-
4844
#### flvtool2 or flvmeta
4945

5046
If you intend to encode FLV videos, you must have either flvtool2 or flvmeta installed and in your `PATH` or fluent-ffmpeg won't be able to produce streamable output files. If you set either the `FLVTOOL2_PATH` or `FLVMETA_PATH`, fluent-ffmpeg will try to use it instead of searching in the `PATH`.

0 commit comments

Comments
 (0)