org.jcodec.containers.mp4.boxes
Class TrakBox
java.lang.Object
org.jcodec.containers.mp4.boxes.Box
org.jcodec.containers.mp4.boxes.NodeBox
org.jcodec.containers.mp4.boxes.TrakBox
public class TrakBox
- extends NodeBox
This class is part of JCodec ( www.jcodec.org ) This software is distributed
under FreeBSD License
Creates MP4 file out of a set of samples
- Author:
- The JCodec project
| Fields inherited from class org.jcodec.containers.mp4.boxes.Box |
header |
| Methods inherited from class org.jcodec.containers.mp4.boxes.NodeBox |
add, addFirst, doWrite, dump, dumpBoxes, getBoxes, newBox, parse, parseBox, parseChildBox, removeChildren, replace |
TrakBox
public TrakBox(Header atom)
TrakBox
public TrakBox()
fourcc
public static String fourcc()
setDataRef
public void setDataRef(String url)
getMdia
public MediaBox getMdia()
getTrackHeader
public TrackHeaderBox getTrackHeader()
getEdits
public List<Edit> getEdits()
setEdits
public void setEdits(List<Edit> edits)
isVideo
public boolean isVideo()
isTimecode
public boolean isTimecode()
getHandlerType
public String getHandlerType()
isAudio
public boolean isAudio()
getTimescale
public int getTimescale()
rescale
public long rescale(long tv,
long ts)
setDuration
public void setDuration(long duration)
getDuration
public long getDuration()
getMediaDuration
public long getMediaDuration()
isPureRef
public boolean isPureRef()
hasDataRef
public boolean hasDataRef()
getPAR
public Rational getPAR()
setPAR
public void setPAR(Rational par)
getSampleEntries
public SampleEntry[] getSampleEntries()
setClipRect
public void setClipRect(short x,
short y,
short width,
short height)
getSampleCount
public long getSampleCount()
setAperture
public void setAperture(Size sar,
Size dar)
setDimensions
public void setDimensions(Size dd)
getFrameCount
public int getFrameCount()
getName
public String getName()
fixMediaTimescale
public void fixMediaTimescale(int ts)
setName
public void setName(String string)
getCodedSize
public Size getCodedSize()
- Retrieves coded size of this video track.
Note: May be different from video display dimension.
- Returns:
Copyright © 2013. All Rights Reserved.