Skip to content

Commit 1cf9204

Browse files
committed
[*] replace openh264 to x264
1 parent 602ff80 commit 1cf9204

File tree

15 files changed

+318
-1074
lines changed

15 files changed

+318
-1074
lines changed

Cargo.lock

Lines changed: 45 additions & 121 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,18 +83,17 @@ crypto-hash = "0.3"
8383
platform-dirs = "0.3"
8484

8585
mp4 = "0.14"
86+
x264 = "0.5"
8687
cpal = "0.16"
8788
hound = "3.5"
8889
which = "8.0"
8990
ctrlc = "3.5"
9091
rayon = "1.11"
9192
memmap2 = "0.9"
92-
openh264 = "0.9"
9393
pipewire = "0.9"
9494
thiserror = "2.0"
9595
crossbeam = "0.8"
9696
spin_sleep = "1.3"
97-
h264-reader = "0.8"
9897
ffmpeg-sidecar = "2.2"
9998
wayland-client = "0.31"
10099
fast_image_resize = "5.3"

flake.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
alsa-lib.dev
2929
pipewire.dev
3030
ffmpeg.dev
31+
x264.dev
3132
];
3233

3334
rustToolchain = pkgs.rust-bin.stable.latest.default.override {

lib/recorder/Cargo.toml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,29 +12,24 @@ description.workspace = true
1212

1313
[dependencies]
1414
log.workspace = true
15+
x264.workspace = true
1516
cpal.workspace = true
1617
hound.workspace = true
1718
image.workspace = true
1819
chrono.workspace = true
1920
capture.workspace = true
20-
openh264.workspace = true
2121
pipewire.workspace = true
2222
crossbeam.workspace = true
2323
once_cell.workspace = true
2424
thiserror.workspace = true
2525
spin_sleep.workspace = true
26-
h264-reader.workspace = true
2726
derive_setters.workspace = true
2827
fast_image_resize.workspace = true
29-
30-
mp4 = { workspace = true, optional = true }
31-
ffmpeg-sidecar = { workspace = true, optional = true }
28+
ffmpeg-sidecar.workspace = true
3229

3330
[dev-dependencies]
3431
ctrlc.workspace = true
3532
env_logger.workspace = true
3633

3734
[features]
38-
default = ["mp4-ffmpeg"]
39-
mp4-builtin = ["dep:mp4"]
40-
mp4-ffmpeg = ["dep:ffmpeg-sidecar"]
35+
default = []

0 commit comments

Comments
 (0)