quickfix: MPEG reported rates are truncated
This commit is contained in:
parent
555b8f24e4
commit
142215af0a
@ -45,6 +45,14 @@ getInfos::ffmpeg() {
|
|||||||
infos="$fmt_infos"
|
infos="$fmt_infos"
|
||||||
channels=$(gettag channels)
|
channels=$(gettag channels)
|
||||||
rate=$(gettag 'sample_rate')
|
rate=$(gettag 'sample_rate')
|
||||||
|
case $rate in
|
||||||
|
96) rate=96000;;
|
||||||
|
48) rate=48000;;
|
||||||
|
441) rate=44100;;
|
||||||
|
32) rate=32000;;
|
||||||
|
24) rate=24000;;
|
||||||
|
225) rate=22500;;
|
||||||
|
esac
|
||||||
bitrate=$(gettag 'bit_rate')
|
bitrate=$(gettag 'bit_rate')
|
||||||
bitdepth=$(gettag 'sample_fmt')
|
bitdepth=$(gettag 'sample_fmt')
|
||||||
bitdepth=${bitdepth//[A-z]/}
|
bitdepth=${bitdepth//[A-z]/}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user