Projects
Multimedia
ffx264
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 89
View file
ffx264.changes
Changed
@@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Wed Aug 21 14:32:00 UTC 2019 - neutrino8@opensuse.org + +- Update to version 3.7.4 + * Add audio sample rate to the audio metadata + +------------------------------------------------------------------- Thu Aug 01 17:22:00 UTC 2019 - neutrino8@opensuse.org - Update to version 3.7.3
View file
ffx264.spec
Changed
@@ -17,7 +17,7 @@ Name: ffx264 -Version: 3.7.3 +Version: 3.7.4 Release: 0 Summary: A small shell script for encoding to H.264 with ffmpeg License: GPL-2.0+
View file
ffx264-3.7.3.tar.gz/ChangeLog -> ffx264-3.7.4.tar.gz/ChangeLog
Changed
@@ -1,3 +1,6 @@ +2019-08-21 - ffx264 3.7.4 + * Add audio sample rate to the audio metadata + 2019-08-01 - ffx264 3.7.3 * Switch to using -x264-params instead of -x264opts. The latter will be eventually removed from FFmpeg
View file
ffx264-3.7.3.tar.gz/ffx264 -> ffx264-3.7.4.tar.gz/ffx264
Changed
@@ -2,8 +2,8 @@ # # Small script to encode to H.264/AVC video using FFmpeg and libx264. # Author: Grozdan "microchip" Nikolov <neutrino8@opensuse.org> -# Version: 3.7.3 -# Date: 2019-08-01 +# Version: 3.7.4 +# Date: 2019-08-21 # # ffx264 is free software ; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -24,7 +24,7 @@ brown() { echo -e "\e0;33m$1\e0;39;49m"; } error() { echo -e "\e1;31m$1\e0;39;49m"; } -version="3.7.3" +version="3.7.4" CFG="$HOME/.ffx264" cfgversion="35" @@ -2759,9 +2759,6 @@ ;; esac - audmetai="-metadata:s:a:${audindexi} title=\"${ametai} ${achmetai} ${abtrmetai}\"" - audchani="-ac:a:${audindexi} ${achi} -channel_layout:a:${audindexi} \"${achlayouti}\"" - if "$AUD_NORMALIZE" = "y" ; then printf "Track $i: Normalize the Audio Volume? y/N: " read anormi @@ -2982,9 +2979,20 @@ ;; esac aresamplei="aresample=${audhzi}," + abtrmetai="${abtrmetai} (${audhzi} Hz)" fi fi + GETAUDSRi="$($FFPROBE -i "$input" -v quiet -select_streams a:${audindexi} -show_streams -of default=noprint_wrappers=1 | grep '^sample_rate' | awk -F= '{print $2}')" + if ! -z "${GETAUDSRi}" -a -z "${audhzi}" ; then + case "${GETAUDSRi}" in + 1-9*) abtrmetai="${abtrmetai} (${GETAUDSRi} Hz)" ;; + esac + fi + + audmetai="-metadata:s:a:${audindexi} title=\"${ametai} ${achmetai} ${abtrmetai}\"" + audchani="-ac:a:${audindexi} ${achi} -channel_layout:a:${audindexi} \"${achlayouti}\"" + afiltersi="$(echo "${aresamplei}${anormalizei}${avolumei}$atempo" | sed 's|,$||')" test ! -z "${afiltersi}" && audfiltersi="-filter:a:${audindexi} ${afiltersi}" @@ -2995,12 +3003,16 @@ GETAUDCDCi="$($FFPROBE -i "$input" -v quiet -select_streams a:${aindexi} -show_streams -of default=noprint_wrappers=1 | grep '^codec_name' | awk -F= '{print $2}' | tr 'a-z' 'A-Z')" GETAUDBTRi="$($FFPROBE -i "$input" -v quiet -select_streams a:${aindexi} -show_streams -of default=noprint_wrappers=1 | grep '^bit_rate' | awk -F= '{print $2}')" + GETAUDSRi="$($FFPROBE -i "$input" -v quiet -select_streams a:${aindexi} -show_streams -of default=noprint_wrappers=1 | grep '^sample_rate' | awk -F= '{print $2}')" if ! -z "${GETAUDCDCi}" ; then case "${GETAUDBTRi}" in 1-9*) audbtrmetai=" @ $(($(echo "${GETAUDBTRi}")/1000)) kbps" ;; esac - audmetai="-metadata:s:a:${audindexi} title=\"${GETAUDCDCi}${audbtrmetai}\"" + case "${GETAUDSRi}" in + 1-9*) audsrmetai=" (${GETAUDSRi} Hz)" ;; + esac + audmetai="-metadata:s:a:${audindexi} title=\"${GETAUDCDCi}${audbtrmetai}${audsrmetai}\"" fi fi fi
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.