Class Mp4DurationReader
java.lang.Object
org.exoplatform.webconferencing.util.Mp4DurationReader
Reads how long an MP4 recording lasts from its movie header (
mvhd,
inside moov), without decoding it and without ffmpeg.
The top-level boxes are walked by seeking over them, so a moov
written after the media data, as the recorder writes it, costs a few reads
whatever the size of the file. Anything that is not a readable,
non-fragmented MP4 has no duration.
-
Method Summary
Modifier and TypeMethodDescriptionstatic LongreadSeconds(String location) Reads the duration of an MP4 file.
-
Method Details
-
readSeconds
-