Examples of AVOutputFormat


Examples of net.sf.ffmpeg_java.AVFormatLibrary.AVOutputFormat

  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;
View Full Code Here

Examples of net.sf.ffmpeg_java.AVFormatLibrary.AVOutputFormat

    AVInputFormat avInputFormat = AVFORMAT.av_find_input_format(FIRST_FFMPEG_DEMUX_NAME);
    //AVInputFormat avInputFormat = new AVInputFormat((Pointer)AVFormatLibrary.first_iformat.getValue());
    while (avInputFormat != null) {
      String mimeType = null;
      // we look for an encoder with same name and add mime_type of this
      AVOutputFormat avOutputFormat = AVFORMAT.guess_format(avInputFormat.name, null,null);
      if (avOutputFormat != null && avOutputFormat.mime_type != null && avOutputFormat.mime_type.length() > 0) {
        mimeType = avOutputFormat.mime_type;
        mimeTypes.put(mimeType, new ContentDescriptor(ContentDescriptor.mimeTypeToPackageName(mimeType)));
        logger.log(Level.FINEST, i + ". " + avInputFormat.long_name + " : " + mimeType);
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.