Package com.coremedia.iso.boxes

Examples of com.coremedia.iso.boxes.TrackHeaderBox


        // TODO Decide how to handle multiple tracks
        List<TrackBox> tb = moov.getBoxes(TrackBox.class);
        if (tb.size() > 0) {
           TrackBox track = tb.get(0);
          
           TrackHeaderBox header = track.getTrackHeaderBox();
           // Get the creation and modification dates
           metadata.set(
                 TikaCoreProperties.CREATED,
                 MP4TimeToDate(header.getCreationTime())
           );
           metadata.set(
                 TikaCoreProperties.MODIFIED,
                 MP4TimeToDate(header.getModificationTime())
           );
          
           // Get the video with and height
           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) {
View Full Code Here


        // TODO Decide how to handle multiple tracks
        List<TrackBox> tb = moov.getBoxes(TrackBox.class);
        if (tb.size() > 0) {
           TrackBox track = tb.get(0);
          
           TrackHeaderBox header = track.getTrackHeaderBox();
           // Get the creation and modification dates
           metadata.set(
                 Metadata.CREATION_DATE,
                 MP4TimeToDate(header.getCreationTime())
           );
           metadata.set(
                 Property.externalDate(Metadata.MODIFIED), // TODO Should be a real property
                 MP4TimeToDate(header.getModificationTime())
           );
          
           // Get the video with and height
           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) {
View Full Code Here

            // TODO Decide how to handle multiple tracks
            List<TrackBox> tb = moov.getBoxes(TrackBox.class);
            if (tb.size() > 0) {
               TrackBox track = tb.get(0);

               TrackHeaderBox header = track.getTrackHeaderBox();
               // Get the creation and modification dates
               metadata.set(TikaCoreProperties.CREATED, header.getCreationTime());
               metadata.set(TikaCoreProperties.MODIFIED, header.getModificationTime());

               // Get the video with and height
               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) {
View Full Code Here

TOP

Related Classes of com.coremedia.iso.boxes.TrackHeaderBox

Copyright © 2018 www.massapicom. 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.