AdwolfCzar commited on
Commit
9378171
·
verified ·
1 Parent(s): 5981656

Upload training/scripts/normalize_videos.py with huggingface_hub

Browse files
training/scripts/normalize_videos.py CHANGED
@@ -61,7 +61,7 @@ def process(src: Path, dst_dir: Path):
61
  r = subprocess.run(
62
  ["ffmpeg", "-y", "-v", "error", "-i", str(src),
63
  "-vf", ",".join(vf), "-c:v", "libx264", "-crf", "15",
64
- "-preset", "fast", "-pix_fmt", "yuv420p", "-an",
65
  str(dst) + ".tmp.mp4"],
66
  capture_output=True, text=True, timeout=600)
67
  if r.returncode != 0:
 
61
  r = subprocess.run(
62
  ["ffmpeg", "-y", "-v", "error", "-i", str(src),
63
  "-vf", ",".join(vf), "-c:v", "libx264", "-crf", "15",
64
+ "-preset", "fast", "-pix_fmt", "yuv420p", "-an", "-map_metadata", "-1",
65
  str(dst) + ".tmp.mp4"],
66
  capture_output=True, text=True, timeout=600)
67
  if r.returncode != 0: