diff --git a/lib/tags/ffmpeg b/lib/tags/ffmpeg index fbfc59d..6b836a3 100644 --- a/lib/tags/ffmpeg +++ b/lib/tags/ffmpeg @@ -1,5 +1,5 @@ #!/bin/bash -getInfosffmpeg_version='ffmpeg-3' +getInfosffmpeg_version='ffmpeg-4' tagreaders+=( "$getInfosffmpeg_version" ) getInfos::ffmpeg() { tagreader="$getInfosffmpeg_version" @@ -18,7 +18,7 @@ getInfos::ffmpeg() { echo -e "$allinfos" \ |sed -n \ '/codec_type=audio/,/\[STREAM\]/{ - /^\(sample_rate\|bit_rate\|channels\)=/{ + /^\(sample_fmt\|sample_rate\|bit_rate\|channels\)=/{ p } }' @@ -42,6 +42,8 @@ getInfos::ffmpeg() { channels=$(gettag channels) rate=$(gettag 'sample_rate') bitrate=$(gettag 'bit_rate') + bitdepth=$(gettag 'sample_fmt') + bitdepth=${bitdepth//[A-z]/} if [[ $bitrate == N/A ]] then unset bitrate diff --git a/lib/tags/getInfos::WebM b/lib/tags/getInfos::WebM index 2303f67..03a0f75 100644 --- a/lib/tags/getInfos::WebM +++ b/lib/tags/getInfos::WebM @@ -1,5 +1,5 @@ #!/bin/bash -getInfoswebm_version='webm-1' +getInfoswebm_version='webm-2' tagreaders+=( "$getInfoswebm_version" ) getInfos::WebM() { getInfos::ffmpeg_video diff --git a/lib/tags/getInfos::ffmpeg_other b/lib/tags/getInfos::ffmpeg_other index 608e733..1ac3528 100644 --- a/lib/tags/getInfos::ffmpeg_other +++ b/lib/tags/getInfos::ffmpeg_other @@ -1,5 +1,5 @@ #!/bin/bash -getInfosffmpeg_other_version='ffmpeg_other-1' +getInfosffmpeg_other_version='ffmpeg_other-2' tagreaders+=( "$getInfosffmpeg_other_version" ) getInfos::ffmpeg_other() { getInfos::ffmpeg diff --git a/lib/tags/getInfos::ffmpeg_video b/lib/tags/getInfos::ffmpeg_video index ef31d51..9004d7f 100644 --- a/lib/tags/getInfos::ffmpeg_video +++ b/lib/tags/getInfos::ffmpeg_video @@ -1,5 +1,5 @@ #!/bin/bash -getInfosffmpeg_video_version='ffmpeg_video-1' +getInfosffmpeg_video_version='ffmpeg_video-2' tagreaders+=( "$getInfosffmpeg_video_version" ) getInfos::ffmpeg_video() { getInfos::ffmpeg