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 @@ GETAUDCL[i]="$($FFPROBE -i "$input" -v quiet -select_streams a:${aindex[i]} -show_streams -of default=noprint_wrappers=1 | grep '^channel_layout' | awk -F= '{print $2}')" if [ ! -z "${GETAUDCDC[i]}" ]; then + get_audio_profile_func() { + GETAUDPROF[i]="$($FFPROBE -i "$input" -v quiet -select_streams a:${aindex[i]} -show_streams -of default=noprint_wrappers=1 | grep '^profile' | awk -F= '{print $2}')" + } case "${GETAUDCDC[i]}" in ac3) GETAUDCDC[i]="AC-3" ;; eac3) GETAUDCDC[i]="E-AC-3" ;; truehd) GETAUDCDC[i]="TrueHD" ;; dts) - # DTS-HD MA and DTS detection - GETAUDPROF[i]="$($FFPROBE -i "$input" -v quiet -select_streams a:${aindex[i]} -show_streams -of default=noprint_wrappers=1 | grep '^profile' | awk -F= '{print $2}')" + get_audio_profile_func case "${GETAUDPROF[i]}" in "DTS-HD MA") GETAUDCDC[i]="DTS-HD MA" ;; *) GETAUDCDC[i]="DTS" ;; esac ;; vorbis) GETAUDCDC[i]="Vorbis" ;; - aac) GETAUDCDC[i]="AAC" ;; + aac) + get_audio_profile_func + case "${GETAUDPROF[i]}" in + LC) GETAUDCDC[i]="LC-AAC" ;; + HE-AAC) GETAUDCDC[i]="HE-AAC" ;; + HE-AACv2) GETAUDCDC[i]="HE-AACv2" ;; + LD-AAC|LD) GETAUDCDC[i]="LD-AAC" ;; + *) GETAUDCDC[i]="$(echo "${GETAUDCDC[i]}" | tr '[a-z]' '[A-Z]')" ;; + esac + ;; mp3) GETAUDCDC[i]="MP3" ;; mp2) GETAUDCDC[i]="MP2" ;; wma*) GETAUDCDC[i]="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
.