Skip to content

Commit

Permalink
Higher quality 360 FUW for cropping
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsonjchen committed Jul 11, 2024
1 parent 9e19909 commit 5fe03fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ffmpeg_clip.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ def make_ffmpeg_clip(
"-ss",
str(start_seconds_relative),
"-filter_complex",
f"[2:v]scale=iw/4.5:ih/4.5,format=yuva420p,colorchannelmixer=aa=1[front];[1:v][front]overlay=(main_w-overlay_w)/2:(main_h-overlay_h)/{forward_upon_wide_h}[fuw];[0:v]pad=iw:ih+290:0:290:color=#160000,crop=iw:1208[driver];[driver][fuw]hstack=inputs=2[v];[v]v360=dfisheye:equirect:ih_fov=195:iv_fov=122[vout]",
f"[2:v]scale=iw/2.25:ih/2.25,format=yuva420p,colorchannelmixer=aa=1[front];[1:v]scale=iw*2:ih*2[wide];[wide][front]overlay=(main_w-overlay_w)/2:(main_h-overlay_h)/{forward_upon_wide_h}[fuw];[0:v]scale=iw*2:ih*2,pad=iw:ih+290:0:290:color=#160000,crop=iw:2416[driver];[driver][fuw]hstack=inputs=2[v];[v]v360=dfisheye:equirect:ih_fov=195:iv_fov=122[vout]",
"-map",
"[vout]",
]
Expand Down

0 comments on commit 5fe03fe

Please sign in to comment.