Projects
Multimedia
ffx264
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 96
View file
ffx264-3.7.8.tar.gz/ffx264
Changed
@@ -3007,20 +3007,31 @@ GETAUDCLi="$($FFPROBE -i "$input" -v quiet -select_streams a:${aindexi} -show_streams -of default=noprint_wrappers=1 | grep '^channel_layout' | awk -F= '{print $2}')" if ! -z "${GETAUDCDCi}" ; then + get_audio_profile_func() { + GETAUDPROFi="$($FFPROBE -i "$input" -v quiet -select_streams a:${aindexi} -show_streams -of default=noprint_wrappers=1 | grep '^profile' | awk -F= '{print $2}')" + } case "${GETAUDCDCi}" in ac3) GETAUDCDCi="AC-3" ;; eac3) GETAUDCDCi="E-AC-3" ;; truehd) GETAUDCDCi="TrueHD" ;; dts) - # DTS-HD MA and DTS detection - GETAUDPROFi="$($FFPROBE -i "$input" -v quiet -select_streams a:${aindexi} -show_streams -of default=noprint_wrappers=1 | grep '^profile' | awk -F= '{print $2}')" + get_audio_profile_func case "${GETAUDPROFi}" in "DTS-HD MA") GETAUDCDCi="DTS-HD MA" ;; *) GETAUDCDCi="DTS" ;; esac ;; vorbis) GETAUDCDCi="Vorbis" ;; - aac) GETAUDCDCi="AAC" ;; + aac) + get_audio_profile_func + case "${GETAUDPROFi}" in + LC) GETAUDCDCi="LC-AAC" ;; + HE-AAC) GETAUDCDCi="HE-AAC" ;; + HE-AACv2) GETAUDCDCi="HE-AACv2" ;; + LD-AAC|LD) GETAUDCDCi="LD-AAC" ;; + *) GETAUDCDCi="$(echo "${GETAUDCDCi}" | tr 'a-z' 'A-Z')" ;; + esac + ;; mp3) GETAUDCDCi="MP3" ;; mp2) GETAUDCDCi="MP2" ;; wma*) GETAUDCDCi="WMA" ;;
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
.