diff --git a/daily_sunrise_video.sh b/daily_sunrise_video.sh index 8e1db4d..eeaa7bd 100755 --- a/daily_sunrise_video.sh +++ b/daily_sunrise_video.sh @@ -440,8 +440,8 @@ if $TEST_MODE; then else final_video="$output_dir/$CAM_NAME-$current_date-daily-sunrise.mp4" fi -fade_dur=$(echo "scale=3; $SUNRISE_TARGET_SECS * 0.085" | bc) -fade_out=$(echo "scale=3; $SUNRISE_TARGET_SECS - $fade_dur" | bc) +fade_dur=$(echo "scale=3; $SUNRISE_TARGET_SECS * 0.085" | bc | sed 's/^\./0./') +fade_out=$(echo "scale=3; $SUNRISE_TARGET_SECS - $fade_dur" | bc | sed 's/^\./0./') # ── Step 3a: mix audio (video copied, not re-encoded) ──────────────────────── work_video="$sped_video"