Skip to content

Commit

Permalink
ayo
Browse files Browse the repository at this point in the history
  • Loading branch information
fearocanity authored Feb 10, 2024
1 parent d7ff30a commit 2bdb8bb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frameposter.sh
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ nth(){
# Ex: (1532 - 1) * 7.98475609756 / 23.93 = 511.49
# Note: this code below is tweaked, inshort its adjusted to become synced to frames
sec="$(bc -l <<< "scale=2; ${t:-1} * 6.8571428571428571429 / ${vid_fps}")"
[[ "${2}" = "timestamp" ]] && sec="$(bc -l <<< "scale=2; ${t:-1} * 7 / ${vid_fps}")"
[[ "${2}" = "timestamp" ]] && sec="$(bc -l <<< "scale=2; ${t:-1} * 6.8571428571428571429 / ${vid_fps}")"
[[ "${bonus}" = "1" ]] && sec="$(bc -l <<< "scale=2; ${sec} + 0.29")"
secfloat="${sec#*.}" sec="${sec%.*}" sec="${sec:-0}"

# This code below is standard, without tweaks. uncomment if the subtitles we're synced.
Expand Down

0 comments on commit 2bdb8bb

Please sign in to comment.