switch($output) { case 'fps': $cmd .= "--enable_raw_key_encryption \ --protection_scheme cbcs \ --protection_systems FairPlay \ --hls_master_playlist_output $dst/master.m3u8 \ --keys label=DEFAULT:key_id=$iv:key=$key:iv=$iv \ --hls_key_uri skd://$vid \n"; break; case 'cenc': $cmd .= "--enable_raw_key_encryption \ --protection_scheme cenc \ --keys label=DEFAULT:key_id=$iv:key=$key:iv=$iv \ --mpd_output $dst/stream.mpd \n"; break; case 'dash': $cmd .= "--mpd_output $dst/stream.mpd \n"; break; default: // todo throw exception? break; }
... but we are producing cbcs ?