[Live-devel] Audio problem with openRTSP command

gerardo ares garesuru at gmail.com
Fri Sep 11 01:48:42 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 i've some problem with the audio.

When I play the mp4 file (generated by the openRTSP command) in VLC, the
video is fine but i do not listen any audio.

Looking at the metadata of the mp4 file, it's seems that the openRTSP is
creating corrupt 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" and not  "type ^D<80><80><80>".
I looked at the function definition of the esds atom in the
QuickTimeFileSink.cpp file, and I think i need some help to understand what
could be wrong or something that i need to check.

I configured the axis device with the following options:

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

Thanks,
Gerardo.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20090911/ec3d9f62/attachment.html>


More information about the live-devel mailing list