This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DM368 h.264 to mp4 clip generation.

Hi,

I am using DM368 and trying to convert h.268 to mp4 clip. Clip is playable in QT, but whiling seeking it is showing gray screen and it is jumping frames. Looks like something is wrong with mp4 header.

I am creating 4 second clip using 10 fps encoding with 5 frame I interval ( 1 I + 4 P + 1 I + ...) 

I tried to do mp4dump  and here are is the output. Can someone throw light what is wrong here.

I noticed h.264 codec high profile, but dont know what is different from base profile h.264 encoding to mp4 clip and  High profile h.264 to mp4 clip (SPS was bigger 89 bytes)

Can someone please throw pointers.

c:\tools\mpeg4iptools-1.5.05cvs>mp4dump.exe c:\tmp\1.mp4

mp4dump.exe version 1.5.5

Dumping c:\tmp\1.mp4 meta-information...

 type ftyp

  majorBrand = mp42

  minorVersion = 0 (0x00000000)

  <table entries suppressed>

 type moov

  type mvhd

   version = 0 (0x00)

   flags = 0 (0x000000)

   creationTime = 0 (0x00000000)

   modificationTime = 0 (0x00000000)

   timeScale = 90000 (0x00015f90)

   duration = 360000 (0x00057e40)

   rate = 1.000000

   volume = 1.000000

   reserved1 = <70 bytes>

   00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00

   00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00

   00 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00

   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

   00 00 00 00 00 00

   nextTrackId = 2 (0x00000002)

  type trak

   type tkhd

    version = 0 (0x00)

    flags = 1 (0x000001)

    creationTime = 0 (0x00000000)

    modificationTime = 0 (0x00000000)

    trackId = 1 (0x00000001)

    reserved1 = <4 bytes> 00 00 00 00

    duration = 360000 (0x00057e40)

    reserved2 = <12 bytes> 00 00 00 00 00 00 00 00 00 00 00 00

    volume = 0.000000

    reserved3 = <38 bytes>

    00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00

    00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00

    00 00 40 00 00 00

    width = 352.000000

    height = 240.000000

   type mdia

    type mdhd

     version = 0 (0x00)

     flags = 0 (0x000000)

     creationTime = 0 (0x00000000)

     modificationTime = 0 (0x00000000)

     timeScale = 90000 (0x00015f90)

     duration = 360000 (0x00057e40)

     language = 0 (0x0000)

     reserved = <2 bytes> 00 00

    type hdlr

     version = 0 (0x00)

     flags = 0 (0x000000)

     reserved1 = <4 bytes> 00 00 00 00

     handlerType = vide

     reserved2 = <12 bytes> 00 00 00 00 00 00 00 00 00 00 00 00

     name =

    type minf

     type vmhd

      version = 0 (0x00)

      flags = 1 (0x000001)

      reserved = <8 bytes> 00 00 00 00 00 00 00 00

     type dinf

      type dref

       version = 0 (0x00)

       flags = 0 (0x000000)

       entryCount = 1 (0x00000001)

       type url

        version = 0 (0x00)

        flags = 1 (0x000001)

        location = (null)

     type stbl

      type stsd

       version = 0 (0x00)

       flags = 0 (0x000000)

       entryCount = 1 (0x00000001)

       type avc1

        reserved1 = <6 bytes> 00 00 00 00 00 00

        dataReferenceIndex = 1 (0x0001)

        reserved2 = <16 bytes> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0

        width = 352 (0x0160)

        height = 240 (0x00f0)

        reserved3 = <14 bytes> 00 48 00 00 00 48 00 00 00 00 00 00 00 01

        compressorName =

        reserved4 = <4 bytes> 00 18 ff ff

        type avcC

         configurationVersion = 1 (0x01)

         AVCProfileIndication = 66 (0x42)

         profile_compatibility = 128 (0x80)

         AVCLevelIndication = 30 (0x1e)

         reserved = 63 (0x3f) <6 bits>

         lengthSizeMinusOne = 3 (0x3) <2 bits>

         reserved1 = 7 (0x7) <3 bits>

         numOfSequenceParameterSets = 1 (0x01) <5 bits>

         <table entries suppressed>

         numOfPictureParameterSets = 1 (0x01)

         <table entries suppressed>

      type stts

       version = 0 (0x00)

       flags = 0 (0x000000)

       entryCount = 3 (0x00000003)

       <table entries suppressed>

      type stsz

       version = 0 (0x00)

       flags = 0 (0x000000)

       sampleSize = 0 (0x00000000)

       sampleCount = 22 (0x00000016)

       <table entries suppressed>

      type stsc

       version = 0 (0x00)

       flags = 0 (0x000000)

       entryCount = 1 (0x00000001)

       <table entries suppressed>

      type stco

       version = 0 (0x00)

       flags = 0 (0x000000)

       entryCount = 22 (0x00000016)

       <table entries suppressed>

      type stss

       version = 0 (0x00)

       flags = 0 (0x000000)

       entryCount = 4 (0x00000004)

       <table entries suppressed>

  data = <57365 bytes>

  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

  00 00 00 00 e3 b8 6d 64 61 74 00 00 1e cc 65 88

  84 27 68 a6 30 8a 5f 79 fe 9e bc ef ff ff 93 6b

 

.....