Update final_video.py

Fixed for apple silicon machine. Now video successfully builds.
pull/2256/head
Harmeet Singh 6 months ago committed by GitHub
parent 0f24c8b7db
commit fe7f26686c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -93,7 +93,7 @@ def prepare_background(reddit_id: str, W: int, H: int) -> str:
output_path,
an=None,
**{
"c:v": "h264_nvenc",
"c:v": "h264_nvenc" if os.uname().machine != 'arm64' else 'h264',
"b:v": "20M",
"b:a": "192k",
"threads": multiprocessing.cpu_count(),
@ -438,7 +438,7 @@ def make_final_video(
path,
f="mp4",
**{
"c:v": "h264_nvenc",
"c:v": "h264_nvenc" if os.uname().machine != 'arm64' else 'h264',
"b:v": "20M",
"b:a": "192k",
"threads": multiprocessing.cpu_count(),
@ -468,7 +468,7 @@ def make_final_video(
path,
f="mp4",
**{
"c:v": "h264_nvenc",
"c:v": "h264_nvenc" if os.uname().machine != 'arm64' else 'h264',
"b:v": "20M",
"b:a": "192k",
"threads": multiprocessing.cpu_count(),

Loading…
Cancel
Save