[libav-bugs] [Bug 381] Bad creation_date returned by avprobe for android-made video

bugzilla-daemon at aruru.libav.org bugzilla-daemon at aruru.libav.org
Fri Oct 19 04:19:48 CEST 2012


https://bugzilla.libav.org/show_bug.cgi?id=381

--- Comment #1 from Renaud Aubin <renaud.aubin at gmail.com> 2012-10-19 04:19:48 CEST ---
On android, the creation date seems to be written there:
(frameworks/av/media/libstagefright/MPEG4Writer.cpp)
[…]
void MPEG4Writer::writeMvhdBox(int64_t durationUs) {
    time_t now = time(NULL);
    beginBox("mvhd");
    writeInt32(0);             // version=0, flags=0
    writeInt32(now);           // creation time
    writeInt32(now);           // modification time
    writeInt32(mTimeScale);    // mvhd timescale
    int32_t duration = (durationUs * mTimeScale + 5E5) / 1E6;
    writeInt32(duration);
    writeInt32(0x10000);       // rate: 1.0
    writeInt16(0x100);         // volume
    writeInt16(0);             // reserved
    writeInt32(0);             // reserved
    writeInt32(0);             // reserved
    writeCompositionMatrix(0); // matrix
    writeInt32(0);             // predefined
    writeInt32(0);             // predefined
    writeInt32(0);             // predefined
    writeInt32(0);             // predefined
    writeInt32(0);             // predefined
    writeInt32(0);             // predefined
    writeInt32(mTracks.size() + 1);  // nextTrackID
    endBox();  // mvhd
}
[…]

At that point, I have yet to find litteracy on what the reference time
must/should be for the mvhd atom.

-- 
Configure bugmail: https://bugzilla.libav.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.


More information about the libav-bugs mailing list