Skip to content

Commit

Permalink
add color depth to spatial media command
Browse files Browse the repository at this point in the history
  • Loading branch information
cbusillo committed Jun 20, 2024
1 parent dd19c38 commit add505d
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions bd_to_avp/modules/video.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,21 +117,24 @@ def combine_to_mv_hevc(
left_video_path: Path,
right_video_path: Path,
output_path: Path,
color_depth: int,
) -> None:
output_path.unlink(missing_ok=True)
command = [
config.SPATIAL_MEDIA_PATH,
"merge",
"-l",
"--left-file",
left_video_path,
"-r",
"--right-file",
right_video_path,
"-q",
"--quality",
config.mv_hevc_quality,
"--left-is-primary",
"--horizontal-field-of-view",
config.fov,
"-o",
"--color-depth",
color_depth,
"--output-file",
output_path,
]
# TODO: figure out why spatial media is throwing a false resolution does not match.
Expand Down Expand Up @@ -252,7 +255,7 @@ def create_mv_hevc_file(
) -> Path:
mv_hevc_path = output_folder / f"{disc_info.name}_MV-HEVC.mov"
if config.start_stage.value <= Stage.COMBINE_TO_MV_HEVC.value:
combine_to_mv_hevc(left_video_path, right_video_path, mv_hevc_path)
combine_to_mv_hevc(left_video_path, right_video_path, mv_hevc_path, disc_info.color_depth)

if not config.keep_files:
left_video_path.unlink(missing_ok=True)
Expand Down

0 comments on commit add505d

Please sign in to comment.