ffmpeg : fix fps.
This commit is contained in:
parent
ef5ac27022
commit
69aaccc10c
|
@ -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}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue