On 30 Sty, 07:08, Muhammad UMER <muhammad.ume...@hotmail.com> wrote:
> Hi pskink,
>
> In my case
>
>  normal .3gp (written by my MediaRecorder) file header, for
> instance:
> # hexdump  -C normal_file.3gp
>
> 00000000 0000001C66747970 3367703400000300 |....ftyp3gp4....|
> 00000010 336770346D703431 3367703600090CFB |3gp4mp413gp6....|
> 00000020 6D6461743C911716 BE6679E1E001E7AF |mdat<....fy.....|
> .
> .

this is ok - the header is exactly the same like mine

>
>  and i compare it to the file written by my server:
> # hexdump -C server_file.3gp | less
> 00000000  3030203030203030 2030302030302030  |................|
> 00000010  3020303020303020 3030203030203030  |................|
> 00000020  2030302030302030 3020303020303020  |................|
> 00000030  3030203030203030 2030302030302030  |................|
> 00000040  3020303020303020 3030203030203030  |................|
> 00000050  2030302020202020 2020202020202020  |..              |
> 00000060  2020202020202020 2020202020202020  |                |
> 00000070  2020086D64617420 2020202020202020  |  .mdat     |
> 00000080  2020202020202020 2020202020202020  |                |
> 00000090  202020202020086D 646174202001B610  |     .mdat...|
> .
> .

this is WRONG: "mdat" sequence should start from the offset 0x20 and
not 0x73

> .
>
> you said in previous discussion that i have to modify first 32 bytes
> where i have to copy byts[0- 27] to the file.

you have to copy first 28 bytes from normal_file to the first 28 bytes
of server_file

> 2) how to copy, Is it in the form of string?

again, RandomAccessFile

>
> 3)and i don't understand about bytes [28..31]. where from the moov atom 
> starts. what is
> paython?

you have to find where the moov atom starts in your server_file, is it
so difficult?

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

Reply via email to