ffmpeg : fix fps.

This commit is contained in:
Dmitry Voronin 2023-12-13 16:45:52 +03:00
parent ef5ac27022
commit 69aaccc10c

View file

@ -77,7 +77,7 @@ function ffmpeg_music_meta() {
# Get video FPS. # Get video FPS.
function _ffprobe_fps() { function _ffprobe_fps() {
local fps=$(ffprobe -v 0 -of csv=p=0 -select_streams v:0 -show_entries stream=r_frame_rate "${1}") 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}" echo "${fps}"
} }