mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-22 07:56:18 -05:00
Video transcodes run at the least CPU priority (#824)
Some checks failed
Backend Tests / api-tests (core) (push) Has been cancelled
Backend Tests / api-tests (files) (push) Has been cancelled
Backend Tests / api-tests (media) (push) Has been cancelled
Backend Tests / api-tests (rest) (push) Has been cancelled
Backend Tests / api-contract-tests (push) Has been cancelled
Backend Tests / api-migrations-and-start (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
Controller Tests / controller-tests (push) Has been cancelled
Cypress Tests / cypress-component-tests (push) Has been cancelled
Cypress Tests / cypress-e2e-tests (push) Has been cancelled
Jest Tests / jest-tests (push) Has been cancelled
Some checks failed
Backend Tests / api-tests (core) (push) Has been cancelled
Backend Tests / api-tests (files) (push) Has been cancelled
Backend Tests / api-tests (media) (push) Has been cancelled
Backend Tests / api-tests (rest) (push) Has been cancelled
Backend Tests / api-contract-tests (push) Has been cancelled
Backend Tests / api-migrations-and-start (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
Controller Tests / controller-tests (push) Has been cancelled
Cypress Tests / cypress-component-tests (push) Has been cancelled
Cypress Tests / cypress-e2e-tests (push) Has been cancelled
Jest Tests / jest-tests (push) Has been cancelled
ffmpeg is wrapped in `nice -n19` so a multi-hour transcode never competes with the API, downloads, or other background work. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
4e53e02519
commit
ce923cbff0
2 changed files with 5 additions and 1 deletions
|
|
@ -392,7 +392,8 @@ async def _transcode_video_file(video_path: pathlib.Path, target_vcodec: Optiona
|
|||
|
||||
final_path = video_path.with_suffix(f'.{container}')
|
||||
tmp_path = transcode_tmp_path(video_path, container)
|
||||
cmd = (FFMPEG_BIN, '-y',
|
||||
cmd = ('/usr/bin/nice', '-n19', # Least priority, a transcode can take hours.
|
||||
FFMPEG_BIN, '-y',
|
||||
'-i', video_path,
|
||||
*map_args,
|
||||
*video_args,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue