public void replace(String fourcc, Box box) { removeChildren(fourcc); add(box); }
public void replace(String fourcc, Box box) { removeChildren(fourcc); add(box); }
public void replace(String fourcc, Box box) { removeChildren(fourcc); add(box); }
public void replace(Box box) { removeChildren(box.getFourcc()); add(box); }
public void replace(Box box) { removeChildren(box.getFourcc()); add(box); }
public void replaceBox(Box box) { removeChildren(box.getFourcc()); add(box); }
public void apply() { NodeBox stbl = NodeBox.findFirst(trak, NodeBox.class, "mdia", "minf", "stbl"); stbl.removeChildren("stco", "co64"); stbl.add(new ChunkOffsets64Box(offsets)); cleanDrefs(trak); }
public void apply() { NodeBox stbl = NodeBox.findFirst(trak, NodeBox.class, "mdia", "minf", "stbl"); stbl.removeChildren("stco", "co64"); stbl.add(new ChunkOffsets64Box(offsets)); cleanDrefs(trak); }
public void apply() { NodeBox stbl = NodeBox.findFirstPath(trak, NodeBox.class, Box.path("mdia.minf.stbl")); stbl.removeChildren("stco", "co64"); stbl.add(ChunkOffsets64Box.createChunkOffsets64Box(offsets)); cleanDrefs(trak); }
public void setName(String string) { NodeBox udta = findFirst(this, NodeBox.class, "udta"); if (udta == null) { udta = new NodeBox(new Header("udta")); this.add(udta); } udta.removeChildren("name"); udta.add(new NameBox(string)); }
public void setName(String string) { NodeBox udta = NodeBox.findFirst(this, NodeBox.class, "udta"); if (udta == null) { udta = new NodeBox(new Header("udta")); this.add(udta); } udta.removeChildren("name"); udta.add(NameBox.createNameBox(string)); }
public void setName(String string) { NodeBox udta = findFirst(this, NodeBox.class, "udta"); if (udta == null) { udta = new NodeBox(new Header("udta")); this.add(udta); } udta.removeChildren("name"); udta.add(new NameBox(string)); }
public void setEdits(List<Edit> edits) { NodeBox edts = findFirst(this, NodeBox.class, "edts"); if (edts == null) { edts = new NodeBox(new Header("edts")); this.add(edts); } edts.removeChildren("elst"); edts.add(new EditListBox(edits)); getTrackHeader().setDuration(getEditedDuration(this)); }
public void setEdits(List<Edit> edits) { NodeBox edts = findFirst(this, NodeBox.class, "edts"); if (edts == null) { edts = new NodeBox(new Header("edts")); this.add(edts); } edts.removeChildren("elst"); edts.add(new EditListBox(edits)); getTrackHeader().setDuration(getEditedDuration(this)); }
public void setEdits(List<Edit> edits) { NodeBox edts = NodeBox.findFirst(this, NodeBox.class, "edts"); if (edts == null) { edts = new NodeBox(new Header("edts")); this.add(edts); } edts.removeChildren("elst"); edts.add(EditListBox.createEditListBox(edits)); getTrackHeader().setDuration(getEditedDuration(this)); }
private static void appendChunkOffsets(TrakBox trakBox1, TrakBox trakBox2) { ChunkOffsetsBox stco1 = trakBox1.getStco(); ChunkOffsets64Box co641 = trakBox1.getCo64(); ChunkOffsetsBox stco2 = trakBox2.getStco(); ChunkOffsets64Box co642 = trakBox2.getCo64(); long[] off1 = stco1 == null ? co641.getChunkOffsets() : stco1.getChunkOffsets(); long[] off2 = stco2 == null ? co642.getChunkOffsets() : stco2.getChunkOffsets(); NodeBox stbl1 = NodeBox.findFirstPath(trakBox1, NodeBox.class, Box.path("mdia.minf.stbl")); stbl1.removeChildren("stco", "co64"); stbl1.add(co641 == null && co642 == null ? ChunkOffsetsBox.createChunkOffsetsBox(ArrayUtil.addAllLong(off1, off2)) : ChunkOffsets64Box.createChunkOffsets64Box(ArrayUtil.addAllLong(off1, off2))); }
stbl.replace("stsz", getSampleSizes(result)); stbl.replace("stsc", getSamplesToChunk(result)); stbl.removeChildren("stco", "co64"); stbl.add(getChunkOffsets(result)); NodeBox.findFirstPath(track, MediaHeaderBox.class, Box.path("mdia.mdhd")).setDuration(totalDuration(result));