hi pskink, So as i understand that relative offset is the reference of the moov atom (where the moov atom starts in a file). isn't it? and How can you calculate this offset, 324070 - 32 == 0x0004f1c6 What is 32 and how 0x0004f1c6 comes?
have you done this, through programming? Regards, umer > Date: Thu, 2 Feb 2012 01:35:02 -0800 > Subject: [android-developers] Re: Encoder??? > From: psk...@gmail.com > To: android-developers@googlegroups.com > > On 2 Lut, 08:32, Muhammad UMER <muhammad.ume...@hotmail.com> wrote: > > Hi pskink, > > > > I have searched the moov atoms, > > > > The moov atoms in > > the file (created by mediarecorder VIDEO0002.3GP) is at the end of the file > > and ftyp at the beginning. As I attached the image VIDEO0002.png > > And the moov atoms > > in the file (created by server) is also at the end of the file along with > > ftyp. > > As I attached the image VIDEO.png > > The 3gp file consists of ftyp-moov-mdat or > > ftyp-mdat-moov order. > > > > So I realize that my server have to write just ftyp at > > the beginning of the file. Please correct me if I am wrong. > > Regards, > > umer > > as i said before: > > "as you can see you have to modify first 32 bytes: where bytes > [0..27] > you can just copy and bytes [28.. 31] should contain the offset > where > moov atom starts" > > just copy first 28 bytes without any modifications and bytes [28.. 31] > should contain the offset where moov atom starts - its relative to > mdat atom e.g: > > this is after modification my server_file.3gp file: > > #grep -aobE "ftyp|mdat|moov" server_file.3gp > 4:ftyp > 32:mdat > 324042:ftyp > 324070:moov > > so bytes [28.. 31] - the relative offset should be: > 324070 - 32 == 0x0004f1c6 > > #hexdump -C server_file.3gp | less > 00000000 0000001c667479703367703400000300 |....ftyp3gp4....| > 00000010 336770346d703431336770360004f1c6 |3gp4mp413gp6....| > > see 0004f1c6 at the end - its your offset > > pskink > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en