Ready for same framerate

This commit is contained in:
Hannes committed 2026-03-14 18:06:41 +01:00
1 parent cb56886a4b
commit bd91d34d8a
2 files changed
+80 -31

No files matched your search

+15 -14
View File
@@ -52,19 +52,20 @@ def find_offset(video_a, video_b):
return best_lag
# Usage
for i in range(1, 12):
# print(f"{i:02}")
video_a = f"/home/honney/projects/mkv/AnoHana The Flower We Saw That Day (2011-2011) [imdbid-tt1913273]/Season 01/AnoHana The Flower We Saw That Day S01E0{i:02}.mkv"
video_b = f"/home/honney/projects/mkv/Anohana - The Flower We Saw That Day/S01/AnoHana The Flower We Saw That Day S01E0{i:02}.mkv"
def multiple():
# Usage
for i in range(1, 12):
# print(f"{i:02}")
video_a = f"/home/honney/projects/mkv/AnoHana The Flower We Saw That Day (2011-2011) [imdbid-tt1913273]/Season 01/AnoHana The Flower We Saw That Day S01E0{i:02}.mkv"
video_b = f"/home/honney/projects/mkv/Anohana - The Flower We Saw That Day/S01/AnoHana The Flower We Saw That Day S01E0{i:02}.mkv"
offset_frames = find_offset(video_a, video_b)
print(f"{i}: Video B is offset by {offset_frames} frames relative to Video A.")
sys.exit()
def single():
video_a = f"/home/honney/mount/Media/torent/[Anime Time] One Piece (0001-1071+Movies+Specials) [BD+CR] [Dual Audio] [1080p][HEVC 10bit x265][AAC][Multi Sub]/Season 01 - East Blue/[Anime Time] One Piece - 0001 - I'm Luffy! The Man Who's Gonna Be King of the Pirates!.mkv"
video_b = f"/home/honney/mount/Media/tmp/serien/complicated/One Piece (1999-2025) [imdbid-tt0388629]/Season 01/One Piece S01E001.mkv"
offset_frames = find_offset(video_a, video_b)
print(f"{i}: Video B is offset by {offset_frames} frames relative to Video A.")
# sys.exit()
# video_a = f"/home/honney/projects/mkv/output_dir/AnoHana The Flower We Saw That Day S01E001_ger.mkv"
# video_b = f"/home/honney/projects/mkv/Anohana - The Flower We Saw That Day/S01/AnoHana The Flower We Saw That Day S01E001.mkv"
# offset_frames = find_offset(video_a, video_b)
# print(f"Video B is offset by {offset_frames} frames relative to Video A.")
# sys.exit()
print(f"Video B is offset by {offset_frames} frames relative to Video A.")