From 69aaccc10cb1e5700272eed942cbe5fccef76f58 Mon Sep 17 00:00:00 2001 From: desktop Date: Wed, 13 Dec 2023 16:45:52 +0300 Subject: [PATCH] ffmpeg : fix fps. --- .config/bash/module/ffmpeg.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}" }