org.jcodec.containers.mxf
Class MXFDemuxer

java.lang.Object
  extended by org.jcodec.containers.mxf.MXFDemuxer
Direct Known Subclasses:
MXFDemuxer.Fast, MXFVirtualTrack.PatchedMXFDemuxer

public class MXFDemuxer
extends Object

This class is part of JCodec ( www.jcodec.org ) This software is distributed under FreeBSD License MXF demuxer

Author:
The JCodec project

Nested Class Summary
static class MXFDemuxer.Fast
          Fast loading version of demuxer, doesn't search for metadata in ALL the partitions, only the header and footer are being inspected
 class MXFDemuxer.MXFDemuxerTrack
           
static class MXFDemuxer.MXFPacket
           
static class MXFDemuxer.OP
           
 
Field Summary
protected  SeekableByteChannel ch
           
protected  double duration
           
protected  MXFPartition header
           
protected  List<IndexSegment> indexSegments
           
protected  List<MXFMetadata> metadata
           
protected  List<MXFPartition> partitions
           
protected  TimecodeComponent timecode
           
protected  int totalFrames
           
protected  MXFDemuxer.MXFDemuxerTrack[] tracks
           
 
Constructor Summary
MXFDemuxer(SeekableByteChannel ch)
           
 
Method Summary
protected  MXFDemuxer.MXFDemuxerTrack createTrack(UL ul, TimelineTrack track, GenericDescriptor descriptor)
           
static FileDescriptor findDescriptor(List<FileDescriptor> descriptors, int trackId)
           
 MXFDemuxer.MXFDemuxerTrack[] getAudioTracks()
           
 List<MXFPartition> getEssencePartitions()
           
 List<IndexSegment> getIndexes()
           
 MXFDemuxer.OP getOp()
           
 TimecodeComponent getTimecode()
           
 MXFDemuxer.MXFDemuxerTrack[] getTracks()
           
 MXFDemuxer.MXFDemuxerTrack getVideoTrack()
           
 void parseHeader(SeekableByteChannel ff)
           
static MXFPartition readHeaderPartition(SeekableByteChannel ff)
           
static List<MXFMetadata> readPartitionMeta(SeekableByteChannel ff, MXFPartition header)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

metadata

protected List<MXFMetadata> metadata

header

protected MXFPartition header

partitions

protected List<MXFPartition> partitions

indexSegments

protected List<IndexSegment> indexSegments

ch

protected SeekableByteChannel ch

tracks

protected MXFDemuxer.MXFDemuxerTrack[] tracks

totalFrames

protected int totalFrames

duration

protected double duration

timecode

protected TimecodeComponent timecode
Constructor Detail

MXFDemuxer

public MXFDemuxer(SeekableByteChannel ch)
           throws IOException
Throws:
IOException
Method Detail

getOp

public MXFDemuxer.OP getOp()

findDescriptor

public static FileDescriptor findDescriptor(List<FileDescriptor> descriptors,
                                            int trackId)

createTrack

protected MXFDemuxer.MXFDemuxerTrack createTrack(UL ul,
                                                 TimelineTrack track,
                                                 GenericDescriptor descriptor)
                                          throws IOException
Throws:
IOException

getIndexes

public List<IndexSegment> getIndexes()

getEssencePartitions

public List<MXFPartition> getEssencePartitions()

getTimecode

public TimecodeComponent getTimecode()

parseHeader

public void parseHeader(SeekableByteChannel ff)
                 throws IOException
Throws:
IOException

readPartitionMeta

public static List<MXFMetadata> readPartitionMeta(SeekableByteChannel ff,
                                                  MXFPartition header)
                                           throws IOException
Throws:
IOException

readHeaderPartition

public static MXFPartition readHeaderPartition(SeekableByteChannel ff)
                                        throws IOException
Throws:
IOException

getTracks

public MXFDemuxer.MXFDemuxerTrack[] getTracks()

getVideoTrack

public MXFDemuxer.MXFDemuxerTrack getVideoTrack()

getAudioTracks

public MXFDemuxer.MXFDemuxerTrack[] getAudioTracks()


Copyright © 2013. All Rights Reserved.