Hi,<br><br>I'm trying to get video+audio from an Axis m1031 device (RTSP stream) with the openRTSP command.<br>I'm using options -4 (to create a mp4 file) and -y (to get video and audio sync).<br>The video is fine, but the audio is wrong.<br>
<br>Looking at the mp4 metadata, it seems that the openRTSP is generating wrong information at the esds atom:<br><br>
$ MP4Box -info test4.mp4 <br>[iso file] Box "stbl" has 1752 extra bytes<br>[iso file] Box "moov" has 4228 extra bytes<br>Error opening file test4.mp4: IsoMedia File is truncated<br><br>and the mp4dump command shows an error in the esds atom:<br>
<br>$ mp4dump test4.mp4<br>mp4dump version 1.6<br>ReadAtom: invalid
atom size, extends outside parent atom - skipping to end of "mp4a"
"^D<80><80><80>" 705752561 vs 1109523<br>Dumping test4.mp4 meta-information...<br>
type mdat<br>...<br> type mp4a<br> reserved1 = <6 bytes> 00 00 00 00 00 00 <br> dataReferenceIndex = 1 (0x0001)<br> soundVersion = 1 (0x0001)<br> reserved2 = <6 bytes> 00 00 00 00 00 00 <br>
channels = 1 (0x0001)<br> sampleSize = 16 (0x0010)<br> packetSize = 65534 (0xfffe)<br> timeScale = 8000 (0x00001f40)<br> reserved3 = <2 bytes> 00 00 <br> samplesPerPacket = 50 (0x00000032)<br>
bytesPerPacket = 1702061171 (0x65736473)<br> bytesPerFrame = 0 (0x00000000)<br> bytesPerSample = 58753152 (0x03808080)<br> type ^D<80><80><80><br> data = <26 bytes> <br>
1c 40 15 00 18 00 00 00 6d 60 00 00 6d 60 05 80 <br> 80 80 02 15 88 06 80 80 80 01 <br> type stts<br> ....<br><br>It should be "type esds" but not "type ^D<80><80><80>".<br>
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.<br>
<br>
I configured the axis device with the following options:<br>
<br>
Encoding: AAC<br>
Sample rate: 8 kHz<br>
Bit rate: 16 kbits/s<br><br>Thanks in advance.<br><br>Regards,<br><font color="#888888"><font color="#888888">Gerardo.</font>
</font>