[Ffmpeg-devel] PSP format

Angus Ainslie angusa
Mon Sep 18 08:10:33 CEST 2006


Angus Ainslie wrote:
> 
> My assumption is that the psp somehow authorizes the video on the first 
> play and then allows it for then on. Is there some way to dump the atoms 
> in the mp4 file so I can check the difference between the working and 
> non working videos ?
> 
> 

Found something called qtatomparse. Atom dumps are listed below. The 
main differences seem to be the sizes of the stss, stsz and stco. The 
final uuid differs as well. I think it gets written by 
mov_write_uuidusmt_tag and it doesn't seem to make any difference to the 
PSP whether its there or not.

Here's the good file:

ftyp (20 bytes)
uuid (148 bytes)
wide (8 bytes)
mdat (309931373 bytes)
moov (2515022 bytes) - 4 children
   mvhd (108 bytes)
   trak (1436938 bytes) - 4 children
     tkhd (92 bytes)
     edts (36 bytes) - 1 child
       elst (28 bytes) [1 edit]
     mdia (1436750 bytes) - 3 children
       mdhd (32 bytes)
       hdlr (45 bytes) [/vide - VideoHandler]
       minf (1436665 bytes) - 3 children
         vmhd (20 bytes)
         dinf (36 bytes) - 1 child
           dref (28 bytes)
         stbl (1436601 bytes) - 6 children
           stsd (185 bytes)
           stts (24 bytes)
           stss (58624 bytes)
           stsc (28 bytes)
           stsz (688868 bytes)
           stco (688864 bytes)
     uuid (52 bytes)
   trak (1077888 bytes) - 4 children
     tkhd (92 bytes)
     edts (36 bytes) - 1 child
       elst (28 bytes) [1 edit]
     mdia (1077700 bytes) - 3 children
       mdhd (32 bytes)
       hdlr (45 bytes) [/soun - SoundHandler]
       minf (1077615 bytes) - 3 children
         smhd (16 bytes)
         dinf (36 bytes) - 1 child
           dref (28 bytes)
         stbl (1077555 bytes) - 5 children
           stsd (91 bytes)
           stts (24 bytes)
           stsc (28 bytes)
           stsz (538704 bytes)
           stco (538700 bytes)
     uuid (52 bytes)
   uuid (80 bytes)



And here's the one that won't play ( or even be seen in the list of 
video's to play ):

ftyp (20 bytes)
uuid (148 bytes)
wide (8 bytes)
mdat (4100030 bytes)
moov (27761 bytes) - 4 children
   mvhd (108 bytes)
   trak (15627 bytes) - 4 children
     tkhd (92 bytes)
     edts (36 bytes) - 1 child
       elst (28 bytes) [1 edit]
     mdia (15439 bytes) - 3 children
       mdhd (32 bytes)
       hdlr (45 bytes) [/vide - VideoHandler]
       minf (15354 bytes) - 3 children
         vmhd (20 bytes)
         dinf (36 bytes) - 1 child
           dref (28 bytes)
         stbl (15290 bytes) - 6 children
           stsd (186 bytes)
           stts (24 bytes)
           stss (616 bytes)
           stsc (28 bytes)
           stsz (7216 bytes)
           stco (7212 bytes)
     uuid (52 bytes)
   trak (11848 bytes) - 4 children
     tkhd (92 bytes)
     edts (36 bytes) - 1 child
       elst (28 bytes) [1 edit]
     mdia (11660 bytes) - 3 children
       mdhd (32 bytes)
       hdlr (45 bytes) [/soun - SoundHandler]
       minf (11575 bytes) - 3 children
         smhd (16 bytes)
         dinf (36 bytes) - 1 child
           dref (28 bytes)
         stbl (11515 bytes) - 5 children
           stsd (91 bytes)
           stts (24 bytes)
           stsc (28 bytes)
           stsz (5684 bytes)
           stco (5680 bytes)
     uuid (52 bytes)
   uuid (170 bytes)






More information about the ffmpeg-devel mailing list