Examples of KeyFrameMeta


Examples of org.red5.io.flv.IKeyFrameDataAnalyzer.KeyFrameMeta

    //File file = new File("M:/backup/media/test_clips/ANewHope.mov");
    File file = new File("M:/Movies/Hitman.m4v"); // has pasp atom

    MP4Reader reader = new MP4Reader(file);

    KeyFrameMeta meta = reader.analyzeKeyFrames();
    log.debug("Meta: {}", meta);

    ITag tag = null;
    for (int t = 0; t < 32; t++) {
      tag = reader.readTag();
View Full Code Here

Examples of org.red5.io.flv.IKeyFrameDataAnalyzer.KeyFrameMeta

  public void testFLVReaderFileWithPreProcessInfo() {
    File file = new File("target/test-classes/fixtures/131647.flv");
    //File file = new File("target/test-classes/fixtures/test.flv");
    try {
      FLVReader reader = new FLVReader(file, true);
      KeyFrameMeta meta = reader.analyzeKeyFrames();
      log.debug("Meta: {}", meta);
      ITag tag = null;
      for (int t = 0; t < 6; t++) {
        tag = reader.readTag();
        log.debug("Tag: {}", tag);
View Full Code Here

Examples of org.red5.io.flv.IKeyFrameDataAnalyzer.KeyFrameMeta

        new File("target/test-classes/fixtures/h264_speex.flv") };
    try {
      for (File file : files) {
        FLVReader reader = new FLVReader(file, true);

        KeyFrameMeta meta = reader.analyzeKeyFrames();
        log.debug("Meta: {}", meta);

        ITag tag = null;
        for (int t = 0; t < 6; t++) {
          tag = reader.readTag();
View Full Code Here

Examples of org.red5.io.flv.IKeyFrameDataAnalyzer.KeyFrameMeta

        rwLock.writeLock().lock();
        try {
          if (inMemoryMetaCache.size() >= maxCacheEntry) {
            freeCachingMetadata();
          }
          KeyFrameMeta keyFrameMeta = super.loadKeyFrameMeta(file);
          if (keyFrameMeta != null) {
            inMemoryMetaCache.put(canonicalPath, keyFrameMeta);
          } else {
            return null;
            }
View Full Code Here

Examples of org.red5.io.flv.IKeyFrameDataAnalyzer.KeyFrameMeta

        int length = keyFrames.getLength();
        if (keyFrames == null || length == 0)
          // File doesn't contain informations about keyframes
          return null;
   
        KeyFrameMeta result = new KeyFrameMeta();
        result.duration = Long.parseLong(root.getAttribute("duration"));
        result.positions = new long[length];
        result.timestamps = new int[length];
    for (int i=0; i<length; i++) {
      Node node = keyFrames.item(i);
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.