<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif;font-size:10pt"><div class="" style=""><span class="" style="">Dear Carl,</span></div><div style="color: rgb(0, 0, 0); font-size: 13.63636302947998px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal" class=""><span class="" style=""><br class="" style=""></span></div><div style="color: rgb(0, 0, 0); font-size: 13.63636302947998px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal" class=""><span class="" style="">Thank you for taking the time to respond. I have some hope now! I will go read about top posting and how to send in text only as soon as I press send so please forgive me if I have done the same again unintentionally.
 I just want to provide the info asap that will help somebody help me.</span></div><div style="color: rgb(0, 0, 0); font-size: 13.63636302947998px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal" class=""><span class="" style=""><br class="" style=""></span></div><div style="background-color: transparent" class=""><span class="" style="color: rgb(0, 0, 0); font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.63636302947998px; font-style: normal">inputAudioFormat is null before openinput (as I believe it should be) and then I call avformat_find_stream_info and it will crash, another note to add is if I set max_analyse_duration and probesize to 0 before avformat_find_stream_info it doesn't crash but a message</span></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size:
 13.63636302947998px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal" class=""><span style="background-color: transparent" class=""><br class="" style=""></span></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 13.63636302947998px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal" class=""><span style="background-color: transparent" class="">[mp3 @ 82a75a0] Could not find codec parameters for stream 0 (Audio: mp3, 0 channels, s16p): unspecified frame size</span></div><div style="background-color: transparent" class="">Consider increasing the value for the 'analyzeduration' and 'probesize' options </div><div style="background-color: transparent" class=""><br class="" style=""></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 13.63636302947998px; font-family:
 HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal" class="">is then found in the log.</div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 13.63636302947998px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal" class=""><br class="" style=""></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 13.63636302947998px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal" class="">I don't know what else to tell you about the <span style="font-size: 10pt" class="">avformat_find_stream_info </span><span style="background-color: transparent" class="">crash other than it reports</span></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 13.63636302947998px; font-family: HelveticaNeue, 'Helvetica Neue',
 Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal" class=""><br class="" style=""></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 13.63636302947998px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal" class="">Process 864538880 (EnhancedVideo) terminated SIGSEGV code=2 fltno=11 ip=79884afe(/apps/com.example.EnhancedVideo.testDev_hancedVideoe3ed8854/native/lib/libavcodec.so.55@av_fast_realloc+0x5) mapaddr=00584afe. ref=0718fffc bdslot=1</div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 13.63636302947998px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal" class=""><br class="" style=""></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 13.63636302947998px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial,
 'Lucida Grande', sans-serif; font-style: normal" class=""> - I don't have great knowledge with c++ debugging - I have only ever used momentics ide.</div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 13.63636302947998px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal" class=""><br class="" style=""></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 13.63636302947998px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal" class="">If I leave out avformat_find_stream_info and call av_read_frame I get a crash</div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 13.63636302947998px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal" class=""><br class="" style=""></div><div
 style="background-color: transparent" class="">Process 870105349 (EnhancedVideo) terminated SIGSEGV code=2 fltno=11 ip=79a84af8(/apps/com.example.EnhancedVideo.testDev_hancedVideoe3ed8854/native/lib/libavcodec.so.55@avpriv_tak_parse_streaminfo+0x2229f) mapaddr=00584af8. ref=0724fff8 bdslot=1<br class="" style=""></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 13.63636302947998px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal" class=""><br class="" style=""></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 13.63636302947998px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal" class="">But I can get past this by calling av_read_packet instead but then I get lots of [mp3 @ 8448950] Header missing in the log (I dont break when decode returns -1 just for
 testing).</div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 13.63636302947998px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal" class=""><br class="" style=""></div><div style="background-color: transparent; font-style: normal; font-size: 13.63636302947998px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: rgb(0, 0, 0)" class="">I have just run it again with av_read_packet just so I can get the exact message for you and noticed as I have done a couple of times in the past that there is actually a success of some kind when decoding the first packet after calling av_read_packet. </div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 13.63636302947998px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal" class=""><br
 class="" style=""></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 13.63636302947998px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal" class="">Before all the header missing errors (which are all at the end of the log) I get in the log from the code below it..</div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 13.63636302947998px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal" class=""><br class="" style=""></div><div style="background-color: transparent" class="">b4 while read frame </div><div style="background-color: transparent" class="">after while read frame </div><div style="background-color: transparent" class="">result decodeframe 627 </div><div style="background-color: transparent" class="">after while read frame </div><div
 style="background-color: transparent" class="">result decodeframe -1094995529 </div><div style="background-color: transparent" class="">after while read frame </div><div style="background-color: transparent" class="">result decodeframe -1094995529 </div><div style="background-color: transparent" class="">after while read frame </div><div style="background-color: transparent" class="">result decodeframe -1094995529 </div><div style="background-color: transparent" class="">after while read frame </div><div style="background-color: transparent" class="">result decodeframe -1094995529 </div><div style="background-color: transparent" class="">after while read frame </div><div style="background-color: transparent" class=""><br class="" style=""></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 13.63636302947998px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida
 Grande', sans-serif; font-style: normal" class="">From this code</div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 13.63636302947998px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal" class=""><br class="" style=""></div><div style="background-color: transparent" class="">AVPacket pkt;</div><div style="background-color: transparent" class=""><span class="" style="white-space:pre">   </span>av_init_packet( &pkt ); //tried both leaving this line in and commenting it out neither help</div><div style="background-color: transparent" class=""><span class="" style="white-space:pre">        </span>qDebug() << "b4 while read frame";</div><div style="background-color: transparent" class=""><span class="" style="white-space:pre">      </span>while (av_read_packet( inputAudioFormat, &pkt ) >= 0) //crashes here unless call av_read_packet instead</div><div
 style="background-color: transparent" class=""><span class="" style="white-space:pre">        </span>{</div><div style="background-color: transparent" class=""><span class="" style="white-space:pre">               </span>qDebug() << "after while read frame";</div><div style="background-color: transparent" class=""><span class="" style="white-space:pre">           </span>if(pkt.stream_index == 0)</div><div style="background-color: transparent" class=""><span class="" style="white-space:pre">               </span>{</div><div style="background-color: transparent" class=""><br class="" style=""></div><div style="background-color: transparent" class=""><br class="" style=""></div><div style="background-color: transparent" class=""><span class="" style="white-space:pre">                   </span>if(decoded_frame)</div><div style="background-color: transparent" class=""><span class="" style="white-space:pre">                               </span>av_frame_unref(decoded_frame);</div><div style="background-color: transparent" class=""><br
 class="" style=""></div><div style="background-color: transparent" class=""><span class="" style="white-space:pre">                   </span>if (!(decoded_frame = avcodec_alloc_frame()))</div><div style="background-color: transparent" class=""><span class="" style="white-space:pre">                   </span>{</div><div style="background-color: transparent" class=""><span class="" style="white-space:pre">                               </span>fprintf(stderr, "Could not allocate audio frame\n");</div><div style="background-color: transparent" class=""><span class="" style="white-space:pre">                          </span>exit(1);</div><div style="background-color: transparent" class=""><span class="" style="white-space:pre">                        </span>}</div><div style="background-color: transparent" class=""><br class="" style=""></div><div style="background-color: transparent" class=""><span class="" style="white-space:pre">                     </span>int rv = avcodec_decode_audio4(inputAudioContextz, decoded_frame, &got_frame, &pkt);</div><div
 style="background-color: transparent" class=""><span class="" style="white-space:pre">                        </span>qDebug() << "result decodeframe" <<rv;;</div><div style="background-color: transparent" class=""><span class="" style="white-space:pre">           </span>}</div><div style="background-color: transparent" class=""><span class="" style="white-space:pre">       </span>}</div><div style="color: rgb(0, 0, 0); font-size: 13.63636302947998px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal" class=""><span class="" style=""><br class="" style=""></span></div><div style="color: rgb(0, 0, 0); font-size: 13.63636302947998px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal" class=""><span class="" style="">Whatever info I can provide you I will, whatever test I can do to fix this I will.
 I have built and tested without lame without success all problems are the same.</span></div><div style="color: rgb(0, 0, 0); font-size: 13.63636302947998px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal" class=""><span class="" style=""><br class="" style=""></span></div><div style="color: rgb(0, 0, 0); font-size: 13.63636302947998px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal" class=""><span class="" style="">Everything seems ok compilation wise - as I mentioned in a previous email I have actually encoded an mp4 video (with these library files) containing mp3 audio from calling av_parser_parse2 but I don't think this is the correct way.</span></div><div style="color: rgb(0, 0, 0); font-size: 13.63636302947998px; font-family: HelveticaNeue, 'Helvetica
 Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;" class=""><span class="" style=""><br></span></div><div style="color: rgb(0, 0, 0); font-size: 13.63636302947998px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;" class=""><span class="" style="">Regards</span></div><div style="color: rgb(0, 0, 0); font-size: 13.63636302947998px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;" class=""><span class="" style=""><br></span></div><div style="color: rgb(0, 0, 0); font-size: 13.63636302947998px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;" class=""><span class="" style="">Bradley</span></div><div style="color: rgb(0,
 0, 0); font-size: 13.63636302947998px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal" class=""><span class="" style=""><br class="" style=""></span></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif; font-size: 10pt" class=""> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif; font-size: 12pt" class=""> <div dir="ltr" class="" style=""> <font size="2" face="Arial" class="" style=""> On Monday, 28 April 2014, 9:19, Carl Eugen Hoyos <cehoyos@ag.or.at> wrote:<br class="" style=""> </font> </div>  <div class="" style=""><a ymailto="mailto:b.mcdonagh@..." href="mailto:b.mcdonagh@..." class="" style="">b.mcdonagh@...</a> <<a ymailto="mailto:b.mcdonagh@..." href="mailto:b.mcdonagh@..." class=""
 style="">b.mcdonagh@...</a>> writes:<br class="" style=""><br class="" style="">> I have built ffmpeg with libmp3lame (latest version) <br class="" style="">> included and I get no errors when opening the mp3 decoder.<br class="" style=""><br class="" style="">Please note that libmp3lame is not used (in the sense of <br class="" style="">"it cannot be used by FFmpeg") to decode mp3.<br class="" style="">To simplify things, you should probably recompile FFmpeg <br class="" style="">without libmp3lame.<br class="" style=""><br class="" style="">> //yyy = avformat_find_stream_info(inputAudioFormat, NULL);<br class="" style="">> //qDebug() << " crashes above line if not commented out <br class="" style="">> ...after find stream info inputAudioFormat res=" << yyy;<br class="" style=""><br class="" style="">Maybe you want to tell us more about the crash?<br class="" style="">(I hope you agree that if *inputAudioFormat is a valid
 <br class="" style="">AVFormatContext no crash should happen / that such a <br class="" style="">crash is an important issue that we would like to hear <br class="" style="">about.)<br class="" style=""><br class="" style="">Did you already run fate on your target to confirm that <br class="" style="">your compilation was fine?<br class="" style="">(Many people have reported here that compilation for qnx <br class="" style="">"fails" for them but nobody so far has added enough <br class="" style="">information so that we could help...)<br class="" style=""><br class="" style="">Please do not top-post here, it is considered rude.<br class="" style="">It is also a good idea if you force your mailer to <br class="" style="">text-only for this mailing list.<br class="" style=""><br class="" style="">Carl Eugen<br class="" style=""><br class="" style="">_______________________________________________<br class="" style="">Libav-user mailing list<br class=""
 style=""><a ymailto="mailto:Libav-user@ffmpeg.org" href="mailto:Libav-user@ffmpeg.org" class="" style="">Libav-user@ffmpeg.org</a><br class="" style=""><a href="http://ffmpeg.org/mailman/listinfo/libav-user" target="_blank" class="" style="">http://ffmpeg.org/mailman/listinfo/libav-user</a><br class="" style=""><br class="" style=""><br class="" style=""></div>  </div> </div>  </div> </div></body></html>