Class Mp4Watermarker

  • All Implemented Interfaces:
    Watermarker

    public class Mp4Watermarker
    extends AbstractWatermarker
    Adds watermark to mp4 file by modifying its title. This is for testing purpose only.
    Since:
    10.2
    • Constructor Detail

      • Mp4Watermarker

        public Mp4Watermarker()
    • Method Detail

      • addWatermark

        public Path addWatermark​(Path inputFile,
                                 Path outputDir,
                                 String watermark)
        Description copied from interface: Watermarker
        Creates a new file based on the input file by adding a watermark
        Parameters:
        inputFile - the source file
        outputDir - the directory to write the output file
        watermark - 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)