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:
Claude
2026-04-19 00:26:40 +00:00
parent d20a0d94ae
commit 3addb06ce8
2 changed files with 2 additions and 3 deletions
+1 -2
View File
@@ -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}")
+1 -1
View 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..."