Re: Duration (EBML: 44 89) in Seg inf part
Moritz Bunkus <[email protected]> Wed, 6 Mar 2013 12:55:59 +0100
| Newsgroups | gmane.comp.multimedia.matroska.devel,gmane.comp.multimedia.matroska.general,gmane.comp.multimedia.matroska.user |
|---|---|
| Message-ID | <CANPayMRy-cJCaQt5o5_dpRCkHT7n6+NMbzQ6L9sUfefvBky9bA@mail.gmail.com> |
Hey, SegmentDuration is an EBML float, not an integer. See http://www.matroska.org/technical/specs/index.html and see http://www.matroska.org/technical/specs/rfc/index.html So: read it as a four-byte IEEE floating point number (C data type: "float"), cast into an eight-byte IEEE floating point number (C data type: "double") in order to avoid overflows, then multiply by TimecodeScale, and you should get the duration in nanoseconds. Kind regards, mosu _______________________________________________ Matroska-devel mailing list [email protected] http://lists.matroska.org/cgi-bin/mailman/listinfo/matroska-devel Read Matroska-Devel on GMane: http://dir.gmane.org/gmane.comp.multimedia.matroska.devel