Compare commits
4
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
004556c4a7 | ||
|
|
58e66996cc | ||
|
|
ff610350fc | ||
|
|
5ac5b6615b |
No files matched your search
@@ -223,7 +223,7 @@ def process_one(German_Video: Path, Quality_Video: Path, output_dir: Path, offse
|
||||
|
||||
|
||||
def main():
|
||||
output_dir = "./output_dir"
|
||||
output_dir = "/home/honney/mount/Media/tmp/serien/ready/Classroom of the Elite/Season 01"
|
||||
if not os.path.isdir(output_dir):
|
||||
raise NotADirectoryError(f"Output directory is not a valid Directory: {output_dir}")
|
||||
start_num = 2
|
||||
@@ -236,12 +236,12 @@ def main():
|
||||
for i in tqdm(episodes, desc="Episodes"):
|
||||
# i =1
|
||||
# if i:
|
||||
german_pattern = f"./dubbed_source/Season 01/Example Series S01E{i:02}.mkv"
|
||||
german_pattern = f"/home/honney/mount/Media/tmp/serien/ger_low_quality/Classroom of the Elite (2017-2024) [imdbid-tt7263328]/Season 01/Classroom of the Elite S01E0{i:02}.mkv"
|
||||
if os.path.isfile(german_pattern):
|
||||
German_Video = [german_pattern]
|
||||
else:
|
||||
German_Video = glob.glob(german_pattern)
|
||||
quality_pattern = f"./high_quality/S01/E{i:02}*"
|
||||
quality_pattern = f"/home/honney/mount/Media/tmp/serien/high_quality/Classroom of the Elite/S01/E{i:02}*"
|
||||
if os.path.isfile(quality_pattern):
|
||||
Quality_Video = [quality_pattern]
|
||||
else:
|
||||
|
||||
+1
-1
@@ -66,5 +66,5 @@ def get_intro_outro(file: Path, length: float = 90.0) -> List[Tuple[float, float
|
||||
### https://github.com/jonbarrow/open-anime-timestamps?utm_source=chatgpt.com
|
||||
|
||||
if __name__ == '__main__':
|
||||
file = "./output_dir/episode.mkv"
|
||||
file = "/home/honney/projects/mkv/output_dir/08.mkv"
|
||||
print(get_intro_outro(Path(file)))
|
||||
@@ -100,8 +100,8 @@ def corelate_videos(vid1: Path, vid2: Path, fps: float) -> float:
|
||||
|
||||
# --- Example Usage ---
|
||||
if __name__ == "__main__":
|
||||
video_path_1 = Path("./examples/high_quality_episode.mkv")
|
||||
video_path_2 = Path("./examples/dubbed_episode.mkv")
|
||||
video_path_1 = Path("/home/honney/projects/mkv/Maid-sama/11_org.mkv")
|
||||
video_path_2 = Path("/home/honney/projects/mkv/Maid-sama/11_ger.mkv")
|
||||
|
||||
target_fps, _, _, _ = probe_video(video_path_1)
|
||||
|
||||
|
||||
@@ -81,8 +81,8 @@ if __name__ == '__main__':
|
||||
offset_f, offset_t = find_temporal_offset(Path(sys.argv[1]), Path(sys.argv[2]))
|
||||
print(f"Offset between Videos:\n{offset_f} Frames\n{offset_t} s")
|
||||
elif len(sys.argv) == 1:
|
||||
file1 = "./examples/high_quality_episode.mkv"
|
||||
file2 = "./examples/dubbed_episode.mkv"
|
||||
file1 = "/home/honney/projects/mkv/Maid-sama/11_org.mkv"
|
||||
file2 = "/home/honney/projects/mkv/Maid-sama/11_ger.mkv"
|
||||
if not os.path.isfile(file1):
|
||||
raise ValueError(f"{file1} is not a valid file path")
|
||||
if not os.path.isfile(file2):
|
||||
|
||||
Reference in new issue
Block a user