[Live-devel] MP4 Audio stream problem

Gerardo Ares Meneces gares at eyeseesecurity.com
Tue Sep 22 14:27:55 PDT 2009


Hi,

I'm trying to get video+audio from an Axis m1031 device (RTSP stream) with
the openRTSP command.
I'm using options -4 (to create a mp4 file) and -y (to get video and audio
sync).
The video is fine, but the audio is wrong.

Looking at the mp4 metadata, it seems that the openRTSP is generating wrong
information at the esds atom:

$ MP4Box -info test4.mp4
[iso file] Box "stbl" has 1752 extra bytes
[iso file] Box "moov" has 4228 extra bytes
Error opening file test4.mp4: IsoMedia File is truncated

and the mp4dump command shows an error in the esds atom:

$ mp4dump test4.mp4
mp4dump version 1.6
ReadAtom: invalid atom size, extends outside parent atom - skipping to end
of "mp4a" "^D<80><80><80>" 705752561 vs 1109523
Dumping test4.mp4 meta-information...
 type mdat
...
      type mp4a
        reserved1 = <6 bytes> 00 00 00 00 00 00
        dataReferenceIndex = 1 (0x0001)
        soundVersion = 1 (0x0001)
        reserved2 = <6 bytes> 00 00 00 00 00 00
        channels = 1 (0x0001)
        sampleSize = 16 (0x0010)
        packetSize = 65534 (0xfffe)
        timeScale = 8000 (0x00001f40)
        reserved3 = <2 bytes> 00 00
        samplesPerPacket = 50 (0x00000032)
        bytesPerPacket = 1702061171 (0x65736473)
        bytesPerFrame = 0 (0x00000000)
        bytesPerSample = 58753152 (0x03808080)
        type ^D<80><80><80>
         data = <26 bytes>
         1c 40 15 00 18 00 00 00 6d 60 00 00 6d 60 05 80
         80 80 02 15 88 06 80 80 80 01
      type stts
     ....

It should be "type esds" but not  "type ^D<80><80><80>".
I looked at the function definition of the esds atom in the
QuickTimeFileSink.cpp file, but I think i need some help to understand what
could be wrong or something that i must check.

I configured the axis device with the following options:

Encoding: AAC
Sample rate: 8 kHz
Bit rate:  16 kbits/s

Thanks in advance.

Regards,
Gerardo.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20090922/1215edce/attachment.html>


More information about the live-devel mailing list