PDA

View Full Version : Nero AAC Enc creates files in a "future" date


numaios
24th November 2006, 19:45
Hello.

I've found out that files created with Nero, when they are analyzed with GSpot or YAMB in extract mode, they are reported as if they were created in the next day. I mean, if I encode the file on GMT+1 18:00 Fri Nov 24th, they are reported as GMT+1 18:00 Sat Nov 25th. Of course my PC date is correct.

Any idea?

Thank you

mitsubishi
24th November 2006, 20:18
Yeah, just checked, same here:
* Movie Info *
Timescale 1000 - Duration 00:05:12.887
Fragmented File no - 1 track(s)
File Brand mp42 - version 0
Created: GMT Sat Nov 25 19:09:40 2006

File has root IOD
Scene PL 0xff - Graphics PL 0xff - OD PL 0xff
Visual PL: No visual capability required (0xff)
Audio PL: No audio capability required (0xff)
No streams included in root OD

Chapters:
Chapter #1 - 00:00:00.059 - ""

Track # 1 Info - TrackID 1 - TimeScale 44100 - Duration 00:05:15.879
Media Info: Language "und" - Type "soun" - Sub Type "mp4a" - 13604 samples
MPEG-4 Config: Audio Stream - ObjectTypeIndication 0x40
MPEG-4 Audio AAC LC - 2 Channel(s) - SampleRate 44100
Self-synchronized

mediator
29th November 2006, 12:06
if you use the time() function from c runtime, you get the seconds passed since midnight (00:00:00), January 1, 1970 (i.e. starting when switching from 1969 to 1970).

MP4 standard counts in seconds since midnight, Jan. 1, 1904 (i.e. starting when switching from 1903 to 1904).

The offset is 66 years, these 66 years include 17 leapyears. So the offset to be used ends up like

66 * 365 * 24 * 60 * 60 + 17 * 24 * 60 * 60 =
66 * 31536000 + 17 * 86400 seconds

This is the offset that is added in Nero AAC to time() in order to calculate the MP4 timestamp.

If this is right, then the timestamps in Nero AAC are also right.