public class Mp4Watermarker extends AbstractWatermarker
Modifier and Type | Class and Description |
---|---|
protected static class |
Mp4Watermarker.BetterByteArrayOutputStream |
Modifier and Type | Field and Description |
---|---|
protected static String |
BOX_MDAT |
protected static String |
BOX_MOOV |
protected static String |
PATH_CHUNKS |
protected static String |
PATH_CHUNKS_BIS |
protected static String |
PATH_ILST |
protected static String |
PATH_META |
protected static String |
PATH_MVEX |
protected static String |
PATH_NAM |
protected static String |
PATH_UDTA |
Constructor and Description |
---|
Mp4Watermarker() |
Modifier and Type | Method and Description |
---|---|
Path |
addWatermark(Path inputFile,
Path outputDir,
String watermark)
Creates a new file based on the input file by adding a watermark
|
protected void |
correctChunkOffsets(org.mp4parser.boxes.iso14496.part12.MovieBox movieBox,
long correction) |
protected org.mp4parser.boxes.iso14496.part12.FreeBox |
findFreeBox(org.mp4parser.Container c) |
protected boolean |
needsOffsetCorrection(org.mp4parser.IsoFile isoFile) |
getOutputPath
protected static final String BOX_MOOV
protected static final String BOX_MDAT
protected static final String PATH_UDTA
protected static final String PATH_META
protected static final String PATH_ILST
protected static final String PATH_NAM
protected static final String PATH_MVEX
protected static final String PATH_CHUNKS
protected static final String PATH_CHUNKS_BIS
public Mp4Watermarker()
public Path addWatermark(Path inputFile, Path outputDir, String watermark)
Watermarker
inputFile
- the source fileoutputDir
- the directory to write the output filewatermark
- the watermark string to useprotected boolean needsOffsetCorrection(org.mp4parser.IsoFile isoFile)
protected void correctChunkOffsets(org.mp4parser.boxes.iso14496.part12.MovieBox movieBox, long correction)
protected org.mp4parser.boxes.iso14496.part12.FreeBox findFreeBox(org.mp4parser.Container c)
Copyright © 2019 Nuxeo. All rights reserved.