Examples of SampleDescriptionBox


Examples of com.coremedia.iso.boxes.SampleDescriptionBox

           metadata.set(Metadata.IMAGE_WIDTH,  (int)header.getWidth());
           metadata.set(Metadata.IMAGE_LENGTH, (int)header.getHeight());
          
           // Get the sample information
           SampleTableBox samples = track.getSampleTableBox();
           SampleDescriptionBox sampleDesc = samples.getSampleDescriptionBox();
           if (sampleDesc != null) {
              // Look for the first Audio Sample, if present
              AudioSampleEntry sample = getOrNull(sampleDesc, AudioSampleEntry.class);
              if (sample != null) {
                 XMPDM.ChannelTypePropertyConverter.convertAndSet(metadata, sample.getChannelCount());
View Full Code Here

Examples of com.coremedia.iso.boxes.SampleDescriptionBox

           metadata.set(Metadata.IMAGE_WIDTH,  (int)header.getWidth());
           metadata.set(Metadata.IMAGE_LENGTH, (int)header.getHeight());
          
           // Get the sample information
           SampleTableBox samples = track.getSampleTableBox();
           SampleDescriptionBox sampleDesc = samples.getSampleDescriptionBox();
           if (sampleDesc != null) {
              // Look for the first Audio Sample, if present
              AudioSampleEntry sample = getOrNull(sampleDesc, AudioSampleEntry.class);
              if (sample != null) {
                 XMPDM.ChannelTypePropertyConverter.convertAndSet(metadata, sample.getChannelCount());
View Full Code Here

Examples of com.coremedia.iso.boxes.SampleDescriptionBox

               metadata.set(Metadata.IMAGE_WIDTH,  (int)header.getWidth());
               metadata.set(Metadata.IMAGE_LENGTH, (int)header.getHeight());

               // Get the sample information
               SampleTableBox samples = track.getSampleTableBox();
               SampleDescriptionBox sampleDesc = samples.getSampleDescriptionBox();
               if (sampleDesc != null) {
                  // Look for the first Audio Sample, if present
                  AudioSampleEntry sample = getOrNull(sampleDesc, AudioSampleEntry.class);
                  if (sample != null) {
                     XMPDM.ChannelTypePropertyConverter.convertAndSet(metadata, sample.getChannelCount());
View Full Code Here

Examples of net.sourceforge.jaad.mp4.boxes.impl.SampleDescriptionBox

    smhd = (SoundMediaHeaderBox) minf.getChild(BoxTypes.SOUND_MEDIA_HEADER_BOX);

    final Box stbl = minf.getChild(BoxTypes.SAMPLE_TABLE_BOX);

    //sample descriptions: 'mp4a' and 'enca' have an ESDBox, all others have a CodecSpecificBox
    final SampleDescriptionBox stsd = (SampleDescriptionBox) stbl.getChild(BoxTypes.SAMPLE_DESCRIPTION_BOX);
    if(stsd.getChildren().get(0) instanceof AudioSampleEntry) {
      sampleEntry = (AudioSampleEntry) stsd.getChildren().get(0);
      final long type = sampleEntry.getType();
      if(sampleEntry.hasChild(BoxTypes.ESD_BOX)) findDecoderSpecificInfo((ESDBox) sampleEntry.getChild(BoxTypes.ESD_BOX));
      else decoderInfo = DecoderInfo.parse((CodecSpecificBox) sampleEntry.getChildren().get(0));

      if(type==BoxTypes.ENCRYPTED_AUDIO_SAMPLE_ENTRY||type==BoxTypes.DRMS_SAMPLE_ENTRY) {
View Full Code Here

Examples of net.sourceforge.jaad.mp4.boxes.impl.SampleDescriptionBox

    vmhd = (VideoMediaHeaderBox) minf.getChild(BoxTypes.VIDEO_MEDIA_HEADER_BOX);

    final Box stbl = minf.getChild(BoxTypes.SAMPLE_TABLE_BOX);

    //sample descriptions: 'mp4v' has an ESDBox, all others have a CodecSpecificBox
    final SampleDescriptionBox stsd = (SampleDescriptionBox) stbl.getChild(BoxTypes.SAMPLE_DESCRIPTION_BOX);
    if(stsd.getChildren().get(0) instanceof VideoSampleEntry) {
      sampleEntry = (VideoSampleEntry) stsd.getChildren().get(0);
      final long type = sampleEntry.getType();
      if(type==BoxTypes.MP4V_SAMPLE_ENTRY) findDecoderSpecificInfo((ESDBox) sampleEntry.getChild(BoxTypes.ESD_BOX));
      else if(type==BoxTypes.ENCRYPTED_VIDEO_SAMPLE_ENTRY||type==BoxTypes.DRMS_SAMPLE_ENTRY) {
        findDecoderSpecificInfo((ESDBox) sampleEntry.getChild(BoxTypes.ESD_BOX));
        protection = Protection.parse(sampleEntry.getChild(BoxTypes.PROTECTION_SCHEME_INFORMATION_BOX));
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.