static List listMuxes(){
List contentDescriptors = new ArrayList();
int i = 1;
AVOutputFormat avOutputFormat = AVFORMAT.guess_format(FIRST_FFMPEG_MUX_NAME, null,null);
// AVOutputFormat avOutputFormat = new AVOutputFormat((Pointer)AVFormatLibrary.first_oformat.getValue());
while (avOutputFormat != null){
String mimeType = null;
if (avOutputFormat.mime_type != null && avOutputFormat.mime_type.length() > 0) {
mimeType = avOutputFormat.mime_type;
}else{
mimeType = "ffmpeg/"+avOutputFormat.name;
}
logger.log(Level.FINEST, i++ + ". " + avOutputFormat.name + " - " + avOutputFormat.long_name + " : " + mimeType);
contentDescriptors.add(ContentDescriptor.mimeTypeToPackageName(mimeType));
if (avOutputFormat.next != null /*&& avOutputFormat.next.isValid()*/) {
avOutputFormat = new AVOutputFormat(avOutputFormat.next);
}else{
avOutputFormat = null;
}
}
return contentDescriptors;