Merge pull request #59 from outis1one/clDemoe/fix-video-deletion-error-624Gp
Fix afade: bc omits leading zero for values < 1 (.850 → 0.850)
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user