Model/FFprobeService.php
private function audioCanBeEncoded($resolution, $metainfo) {
         return
             // sample rate of file is better or as good as defined in resolution
             $resolution['audio_sample_rate'] >= $metainfo['sample_rate'] &&
             // bitrate of file is better or as good as defined in resolution
             $resolution['audio_bitrate'] <= $metainfo['max_bit_rate'] ||
             // or we allow worse quality to be used for encoding
             filter_var(
                 $resolution['allow_lower_audio_bitrate'],
                 FILTER_VALIDATE_BOOLEAN
             )
         ;
     }
private function audioCanBeEncoded($resolution, $metainfo) {
         return
             // sample rate of file is better or as good as defined in resolution
             $resolution['audio_sample_rate'] >= $metainfo['sample_rate'] &&
             // bitrate of file is better or as good as defined in resolution
             $resolution['audio_bitrate'] <= $metainfo['max_bit_rate'] ||
             // or we allow worse quality to be used for encoding
             filter_var(
                 $resolution['allow_lower_audio_bitrate'],
                 FILTER_VALIDATE_BOOLEAN
             )
         ;
     }
private function audioCanBeEncoded ( $ resolution , $ metainfo ) { return // sample rate of file is better or as good as defined in resolution $ resolution [ 'audio_sample_rate' ] >= $ metainfo [ 'sample_rate' ] && // bitrate of file is better or as good as defined in resolution $ resolution [ 'audio_bitrate' ] <= $ metainfo [ 'max_bit_rate' ] || // or we allow worse quality to be used for encoding filter_var ( $ resolution [ 'allow_lower_audio_bitrate' ] , FILTER_VALIDATE_BOOLEAN ) ; }
determines if the the audiotrack meets minimum standards to be encoded
determines if the the audiotrack meets minimum standards to be encoded