Just use the command below:
ffmpeg -i INPUT_FILE \
-vf scale=3840x2160:flags=lanczos \
-c:v libx264 \
-crf 13 \
-c:a aac -b:a 512k \
import mmap | |
import torch | |
import json | |
import os | |
from huggingface_hub import hf_hub_download | |
def load_file(filename, device): | |
with open(filename, mode="r", encoding="utf8") as file_obj: | |
with mmap.mmap(file_obj.fileno(), length=0, access=mmap.ACCESS_READ) as m: |