Rename sunrise output to daily-sunrise.mp4 (duration-agnostic)
Video duration is still controlled by SUNRISE_TARGET_SECS in conf, but the filename no longer encodes it — so changing the duration doesn't break anything and the name stays stable day to day. https://claude.ai/code/session_01C4jbd3waXG3eKZYbGUjLUQ
This commit is contained in:
+1
-2
@@ -53,8 +53,7 @@ if not os.path.isdir(output_dir):
|
||||
print(f"Error: The directory {output_dir} does not exist. The video may not have been created yet.")
|
||||
exit(1)
|
||||
|
||||
target_secs = config.get('SUNRISE_TARGET_SECS', '10')
|
||||
final_video_file = os.path.join(output_dir, f"{today_date_str}-sunrise-{target_secs}s.mp4")
|
||||
final_video_file = os.path.join(output_dir, f"{today_date_str}-daily-sunrise.mp4")
|
||||
|
||||
# Debugging: print the full path of the video file to make sure it's correct
|
||||
print(f"Looking for video file: {final_video_file}")
|
||||
|
||||
@@ -116,7 +116,7 @@ speed_up_factor=$(echo "scale=3; $total_seconds / $target_duration" | bc)
|
||||
echo "Calculated speed-up factor: $speed_up_factor"
|
||||
|
||||
# Output filename for the second movie (speed-adjusted)
|
||||
final_video="$output_dir/$current_date-sunrise-${SUNRISE_TARGET_SECS}s.mp4"
|
||||
final_video="$output_dir/$current_date-daily-sunrise.mp4"
|
||||
|
||||
# Apply the speed adjustment using the setpts filter
|
||||
echo "Adjusting video speed to ${SUNRISE_TARGET_SECS}s..."
|
||||
|
||||
Reference in New Issue
Block a user