Class Mp4Watermarker
java.lang.Object
org.nuxeo.importer.stream.consumer.watermarker.AbstractWatermarker
org.nuxeo.importer.stream.consumer.watermarker.Mp4Watermarker
- All Implemented Interfaces:
Watermarker
Adds watermark to mp4 file by modifying its title. This is for testing purpose only.
- Since:
- 10.2
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static class
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddWatermark
(Path inputFile, Path outputDir, String watermark) Creates a new file based on the input file by adding a watermarkprotected 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) Methods inherited from class org.nuxeo.importer.stream.consumer.watermarker.AbstractWatermarker
getOutputPath
-
Field Details
-
BOX_MOOV
- See Also:
-
BOX_MDAT
- See Also:
-
PATH_UDTA
- See Also:
-
PATH_META
- See Also:
-
PATH_ILST
- See Also:
-
PATH_NAM
- See Also:
-
PATH_MVEX
- See Also:
-
PATH_CHUNKS
- See Also:
-
PATH_CHUNKS_BIS
- See Also:
-
-
Constructor Details
-
Mp4Watermarker
public Mp4Watermarker()
-
-
Method Details
-
addWatermark
Description copied from interface:Watermarker
Creates a new file based on the input file by adding a watermark- Parameters:
inputFile
- the source fileoutputDir
- the directory to write the output filewatermark
- the watermark string to use- Returns:
- the path of the watermarked file
-
needsOffsetCorrection
protected boolean needsOffsetCorrection(org.mp4parser.IsoFile isoFile) -
correctChunkOffsets
protected void correctChunkOffsets(org.mp4parser.boxes.iso14496.part12.MovieBox movieBox, long correction) -
findFreeBox
protected org.mp4parser.boxes.iso14496.part12.FreeBox findFreeBox(org.mp4parser.Container c)
-