diff --git a/.config/bash/module/ffmpeg.sh b/.config/bash/module/ffmpeg.sh index ee6bba0..cc4b1f7 100644 --- a/.config/bash/module/ffmpeg.sh +++ b/.config/bash/module/ffmpeg.sh @@ -77,7 +77,7 @@ function ffmpeg_music_meta() { # Get video FPS. function _ffprobe_fps() { local fps=$(ffprobe -v 0 -of csv=p=0 -select_streams v:0 -show_entries stream=r_frame_rate "${1}") - fps="${fps%%/*}" + [[ "${fps}" = "" ]] && fps=24 || fps=$((fps)) echo "${fps}" }