net.sourceforge.openutils.mgnlmedia.media.utils
Class VideoMedataUtils
java.lang.Object
net.sourceforge.openutils.mgnlmedia.media.utils.VideoMedataUtils
public final class VideoMedataUtils
- extends Object
Parses Video metadata in order to extract size and duration.
Code based on FLVMetaData class by SANTHOSH REDDY MANDADI
http://java-servlet-jsp-web.blogspot.com/2009/06/java-program-to-fetch-flv-metadata.html
- Version:
- $Id: VideoMedataUtils.java 3692 2011-11-06 18:15:15Z fgiust $
- Author:
- fgiust
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VideoMedataUtils
public VideoMedataUtils()
parsefromStream
public static VideoMedataUtils.VideoMetaData parsefromStream(String extension,
InputStream stream)
throws IOException
- Throws:
IOException
parseFLVfromStream
public static VideoMedataUtils.VideoMetaData parseFLVfromStream(InputStream stream)
throws IOException
- Throws:
IOException
parseMP4fromStream
public static VideoMedataUtils.VideoMetaData parseMP4fromStream(InputStream stream)
throws IOException
- Throws:
IOException
parseFLVfromUrl
public static VideoMedataUtils.VideoMetaData parseFLVfromUrl(URL url)
throws IOException
- Throws:
IOException
getMetaData
protected static VideoMedataUtils.VideoMetaData getMetaData(byte[] bytes)
- Parameters:
meta - bytes -
Copyright © 2008-2011 Openmind. All Rights Reserved.