[Matroska-devel] Duration (EBML: 44 89) in Seg inf part
Peter Ivanov
qwerty123_1996 at abv.bg
Wed Mar 6 13:55:05 CET 2013
Thanks, Mosu.
Everything is ok now.
Have a nice day!
Regards,
Peter I
-------- Оригинално писмо --------
От: Moritz Bunkus moritz at bunkus.org
Относно: Re: [Matroska-devel] Duration (EBML: 44 89) in Seg inf part
До: Discussion about the current and future development of Matroska
Изпратено на: Сряда, 2013, Март 6 14:41:41 EET
Hey,
On Wed, Mar 6, 2013 at 1:33 PM, Peter Ivanov qwerty123_1996 at abv.bg > wrote:
> Duration: 87.336s(00:01:27.336), but my hex value is 0x47AA9400
> In float this is 1202361344.00000
No, it's not. Note that in Matroska files are values are stored in Big
Endian byte order. Intel processors use Little Endian byte order. So
you cannot simply read the four bytes into a C "float" variable.
You'll have to byte-swap it as well.
Then you'll see that the float's value really is 87336.0; multiplied
by TimecodeScale (usually 1000000) you get 87 336 000 000 nanoseconds
=~ 87.336 seconds.
Kind regards,
mosu
_______________________________________________
Matroska-devel mailing list
Matroska-devel at lists.matroska.org
http://lists.matroska.org/cgi-bin/mailman/listinfo/matroska-devel
Read Matroska-Devel on GMane: http://dir.gmane.org/gmane.comp.multimedia.matroska.devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.matroska.org/pipermail/matroska-devel/attachments/20130306/04ff1a13/attachment.html>
More information about the Matroska-devel
mailing list