Commit graph

2236 commits

Author SHA1 Message Date
DataHoarder a5f6939824
Abort initial run of one-shot 2022-07-02 20:58:31 +02:00
DataHoarder ddc941f245
Fix initial resume 2022-07-02 17:59:09 +02:00
DataHoarder 33062e1f9a
Fix chunk slicing 2022-07-02 17:49:16 +02:00
DataHoarder 25151d85f0
Added resume workers information 2022-07-02 17:13:36 +02:00
DataHoarder a33040fd85
Added --one-shot-resume for distributed Av1an usage 2022-07-02 00:05:42 +02:00
redzic d9a7418ccd
Temporarily disable docker caching via cargo-chef (#643) 2022-06-30 19:19:26 +00:00
FreezyLemon 8f617ec68f
Create workflow for Windows builds (#638)
Co-authored-by: FreezyLemon <freezylemon@protonmail.com>
2022-06-26 09:27:13 +00:00
Zen 7af57610c8
vmaf_percentile to 1, default vmaf rate to 1 (#641)
* vmaf_percentile to 1, default vmaf rate to 1

* fix default

Co-authored-by: Redzic <yusufredzic@gmail.com>
2022-06-25 19:44:15 +00:00
redzic 1a1c679c73
Change progress bar characters (#640) 2022-06-22 21:45:10 +00:00
redzic dfdc2c6703
Fix clippy warnings (#639) 2022-06-20 19:53:07 +00:00
Y0ba 22281844bb
Fix x265 2-pass params (#636)
* Fix x265 2-pass params

* Add --level-idc in x265 default params
2022-06-05 21:42:36 +00:00
redzic edc6acd657
Do not call parse_encoded_frames in first pass (#637)
* Do not call parse_encoded_frames in first pass

* Remove now redundant checks in aom/vpx parsing

* Fix/add notes in tests
2022-06-05 20:17:57 +00:00
Y0ba 77549d7bbc
Catch panics in child threads (#635) 2022-06-05 19:42:15 +00:00
Y0ba b8272ae22d
Don't panic if ffmpeg fails to count frames (#634)
* Don't panic if ffmpeg fails to count frames

* Fix formatting
2022-06-05 18:59:50 +00:00
Josh Holmer fe585ac24c
Use std::available_parallelism instead of num_cpus (#633)
* Explicitly set minimum rust version

* Use std::available_parallelism instead of num_cpus
2022-05-21 08:55:43 +00:00
Josh Holmer 460fa3c105
Improve selection of HDR content (#632)
Currently this only applies to grain synth generation,
but the prior implementation of HDR detection only looked at the props
on the input video. Those may not necessarily be set correctly even if
the user is encoding to HDR, so we want to prioritize looking at the
encoder params, then fallback to checking the input if the user has not
set a transfer characteristic on the encoder.
2022-05-16 18:26:14 +00:00
Josh Holmer fa738555c8
Log video info at the start of encode (#629) 2022-05-11 17:52:24 +00:00
Josh Holmer 7610b5c7a6
Print a proper error message if the input file does not exist (#626) 2022-05-04 06:18:13 +00:00
Josh Holmer 3003f646c9
Zones fixes (#624)
* Fix formatting of zones help text

* Fix issue where wrong number of frames are read in scenechange with zones active

* Fix scenechange progress bar when zones active
2022-05-01 03:35:59 +00:00
Josh Holmer ec9331283c
Improvements to grain synth gamma handling (#622)
- Fixes BT.1886 to use the more correct formula and gamma
- Simplify the `mid_tone` function
- Add quickcheck tests around `to_linear`/`from_linear`
2022-04-26 01:23:37 +00:00
redzic 270b3ba3cb
Consolidate import style in rustfmt.toml (#619) 2022-04-20 20:24:55 +00:00
Josh Holmer fc4bf94278
Warn if scene change frame count does not match (#618) 2022-04-20 16:57:48 +00:00
Joel Hansen c8d031c1b8
docs: First pass for SVT-AV1 documentation (#614) 2022-04-18 05:52:33 +00:00
GaveUp f0d3f0ece9
Remove data streams when encoding audio (#616) 2022-04-17 05:40:01 +00:00
redzic 3675f057f2
Add compilation instructions for Windows (#617) 2022-04-17 04:01:50 +00:00
Josh Holmer 55df40362b
Error and retry chunk if frame count mismatches (#612)
I can't think of a situation where someone would want this issue to be
ignored, so we should treat it as any other encoder error and perform 3
retries, then exit if it continues to fail. This probably indicates some
kind of issue with decoding or applying filters to that chunk.
2022-04-17 03:51:23 +00:00
FazlyMR 221c56f5c1
Updated README.md (#608)
Co-authored-by: redzic <48274562+redzic@users.noreply.github.com>

Co-authored-by: Josh Holmer <jholmer.in@gmail.com>

Co-authored-by: Josh Holmer <jholmer.in@gmail.com>
2022-04-16 21:00:33 +00:00
Josh Holmer 11d2b91215
Upgrade to edition 2021 (#610) 2022-04-10 16:46:49 +00:00
Josh Holmer 02ffc86601
Use published ffmpeg-next (#609) 2022-04-10 16:32:03 +00:00
redzic bd9a1fa9c2
Fix extra splits and zones handling with split method none (#607)
* Fix extra splits and zones handling with split method none

* Fix clippy warning
2022-04-03 20:23:47 +00:00
redzic e5dd06c6dd
Include whether lsmash and ffms2 were found in version info (#606) 2022-04-03 18:37:34 +00:00
redzic 154a9141f5
Fix ffmpeg filter escaping (#602) 2022-03-29 13:04:41 +00:00
Josh Holmer 84d46bb40c
Add zones support (#598)
* Add zones support

Currently implemented:
- Overriding the selected encoder & number of passes
- Overriding or adding video params
- Overriding photon noise setting
- Overriding min/max scene length

Closes #267

* Error if zoned encoder does not support output pixel format

* Fix crash if zones change number of passes

* Set passes to 1 for zones with rt mode
2022-03-28 15:23:08 +00:00
redzic d9d15a90d0
Use git version of console-rs to avoid regex (#600) 2022-03-25 21:34:07 +00:00
Josh Holmer cfad841648
Disable grain table generation if --photon-noise 0 is set (#599) 2022-03-25 21:04:09 +00:00
Josh Holmer e9ad35b1ca
Silence remaining clippy lints (#595)
We intentionally transmute here for performance reasons.
2022-03-18 01:39:24 +00:00
Luigi311 507a6e306f
Use github cache action instead of using gha. Dedupe Dockerfile (#594)
* Action: Use local cache to speed up docker-publish

* Cleanup Dockerfile

* Dockerfile: Reduce duplication
2022-03-16 01:52:27 +00:00
Josh Holmer d480428fc6
Fix a memory leak in standard scene check method (#593) 2022-03-15 12:38:53 +00:00
Luigi311 fe137408c9
Speed up CI, Reduce container image size (#591)
* Action: Add rust caching to test

* Actions: Use github action to cache docker

* Optimize Dockerfile to allow for caching

* Docker: Use cargo chef for caching

Co-authored-by: Luigi311 <luigi311.lg@gmail.com>
2022-03-14 14:54:45 +00:00
redzic b0bb4687ee
Update dependencies (#589) 2022-03-12 13:37:29 +00:00
redzic 9242b036d0
Remove writes to memory in sse4.1 parsing code, fix edge case (#588) 2022-03-11 19:21:12 +00:00
redzic 2efb7daa73
Set required for input (#585) 2022-03-08 01:40:33 +00:00
Zen 09e552b413
Multiple input files (#582)
* Multiple input files

* clippy fix

* reset logger for each input file

* remove comment
2022-03-07 14:22:24 +00:00
Zen f66a805256
Adaptive extra splits (#584)
* Adds adaptive extra splits

* docs

* correction

* squize

* more squize
2022-03-05 12:43:10 +00:00
Zen ed289eca66
fix indicatif (#583) 2022-03-04 08:34:35 +00:00
Jeremy Lee Shields f5ec4891be
Lastrosade sc only (#574)
* Add command line arg for sc-only

* added arg to settings.rs

* Add check and kill after split_routine()

Deletes the temporary directory, it would be better if it was never created in the first place.

* Initialize sc_only in EncodeArgs

* cargo fmt

* Integration test

* Make -s a requirement

* cargo fmt

* Add -s as requirement to sc-only via clap

* revert f7688ca

* Fix me not reading errors

* revert db4fb3b

* Cargo fmt

* Added --scenes as a requirement for --sc-only with clap

* Update wording

* Trying to fix the weird integration bug

* Revert 393b380

* Condition on test failure

* Github actions again

* Filename in actions
2022-03-02 05:33:31 +00:00
Zen da8ccf11d4
remove old appveyour.yml (#576) 2022-02-22 23:06:18 +00:00
redzic 6634bc77f8
Update to ffmpeg 5.0 (#575)
* Update to ffmpeg 5.0
2022-02-22 22:17:37 +02:00
redzic 6c70e2c0cc
Update dependencies (#571) 2022-02-11 23:03:37 +00:00
redzic 997c75be4b
Compile rav1e from git in Dockerfile (#569) 2022-02-08 22:26:39 +00:00