hi pskink, Thanks for your help,It gives more concept. Please can you show me the example that how can i implement these moov atom and ftyp while writing the file to the server side. Regards,umer
> Date: Thu, 26 Jan 2012 11:26:35 -0800 > Subject: Re: [android-developers] Re: Encoder??? > From: [email protected] > To: [email protected] > > step #1: > see normal .3gp (written by your MediaRecorder) file header, for > instance: > # hexdump -C normal_file.3gp | less > 00000000 0000001c66747970 3367703400000300 |....ftyp3gp4....| > 00000010 336770346d703431 336770360007a42f |3gp4mp413gp6.../| > 00000020 6d6461743c911716 be6679e1e001e7af |mdat<....fy.....| > > step #2: compare it to the file written by your server: > # hexdump -C server_file.3gp | less > 00000000 0000000000000000 0000000000000000 |................| > 00000010 0000000000000000 0000000000000008 |................| > 00000020 6d6461743c911716 be6679e1e001e7af |mdat<....fy.....| > > 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 - you can learn how to find that offset by playing > with python script called qtfaststart.py - run it with option --list, > for example: > # python qtfaststart.py --list normal_file.3gp > ftyp 0 > mdat 1c > moov 7a44b > > it will show atoms and their sizes but it is trivial to change it to > show atom's positions (like above): > > for atom, pos, size in index: > print "%s %x" % (atom, pos) > > > pskink > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

