Note that there are some explanatory texts on larger screens.

plurals
  1. POIframeExtractor don't output sound with rtsp
    primarykey
    data
    text
    <p>I use IframeExtractor from the git <a href="https://github.com/mooncatventures-group/iFrameExtractor" rel="nofollow">mooncatventure</a>, it play nice the .mov file. But when i try to read a rtsp stream, i hear no sound.</p> <p>This is the FFMEG dump from the rtsp stream:</p> <pre><code>Metadata: title : unknown comment : unknown Duration: N/A, start: 49435.000589, bitrate: 258 kb/s Program 3223 No Program Stream #0:0: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 720x576 [SAR 64:45 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0:1(fra): Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 142 kb/s Stream #0:2(fra): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006) Stream #0:3(qad): Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, mono, fltp, 47 kb/s Stream #0:4(qaa): Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 68 kb/s </code></pre> <p>And this is the dump from the local .mov file that work:</p> <pre><code>Metadata: major_brand : qt minor_version : 0 compatible_brands: qt creation_time : 2010-01-17 21:52:33 model : iPhone 3GS model-eng : iPhone 3GS date : 2010-01-17T16:52:33-0500 date-eng : 2010-01-17T16:52:33-0500 encoder : 3.1.2 encoder-eng : 3.1.2 make : Apple make-eng : Apple Duration: 00:00:03.25, start: 0.000000, bitrate: 3836 kb/s Stream #0:0(und): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p, 640x480, 3695 kb/s, 30.02 fps, 30 tbr, 600 tbn, 1200 tbc Metadata: rotate : 90 creation_time : 2010-01-17 21:52:33 handler_name : Core Media Data Handler Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 63 kb/s Metadata: creation_time : 2010-01-17 21:52:33 handler_name : Core Media Data Handler </code></pre> <p>The audio class that manage sounds contain a codec detector which say that the codec CODEC_ID_AAC is found for the two input:</p> <pre><code>audioStreamBasicDesc_.mFormatFlags = 0; switch (_audioCodecContext-&gt;codec_id) { case CODEC_ID_MP3: audioStreamBasicDesc_.mFormatID = kAudioFormatMPEGLayer3; break; case CODEC_ID_AAC: audioStreamBasicDesc_.mFormatID = kAudioFormatMPEG4AAC; audioStreamBasicDesc_.mFormatFlags = kMPEG4Object_AAC_Main; NSLog(@"audio format aac %s (%d) is supported", _audioCodecContext-&gt;codec_name, _audioCodecContext-&gt;codec_id); break; } </code></pre> <p>I see data going into the buffer but i hear nothing. It's maybe audioStreamBasicDesc_ which has wrong settings but i can't find what. </p> <p>Is it possible that it's not the same AAC codec ?</p> <p>Has someone experienced the same issue ?</p> <p>Any help are welcome, i'm on this problem since some days now.</p> <p>Edit: I have found a error that i had not before, i don't know how to resolve it. If i change audioStreamBasicDesc.mFramesPerPacket to 0 or divided by 2, the error message dissapear.</p> <pre><code>AudioConverterNew returned 'fmt?' Prime failed ('fmt?'); will stop (72000/0 frames) </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload