<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="">Thank you for your response Gonzalo.</div><div class="" style=""><br class="" style=""></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="">Currently I don't have the code using the problematic functions I state, I have the code working (actually encoding the data to video file) by not using av_find_stream_info and avcodec_decode_audio4, I'm currently using av_parser_parse2 to get the mp3 data out of the pkt returned from fread and then just writing this (via AVPacket) using av_interleaved_write_frame to the output audio stream. I found <span style="font-size: 10pt"
 class="">av_parser_parse2</span><span style="font-size: 10pt" class="">  out of desperation when I couldn't decode the mp3 data any other way.</span></div><div style="color: rgb(0, 0, 0); font-size: 10pt; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal" class=""><span style="font-size: 10pt" class=""><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 style="font-size: 10pt" class="">The problem with the above way is I can only get mp3 codec to work properly in outputted video file - if I use aac codec then I just get silence when playing the video. The problem with mp3 audio in the mp4 video is that it doesn't seem to play in all players on my pc, vlc
 is ok with it. maybe I'm using </span><span class="" style="font-size: 10pt">av_parser_parse2</span><span class="" style="font-size: 10pt">  wrong??</span></div><div style="color: rgb(0, 0, 0); font-size: 10pt; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal" class=""><span style="font-size: 10pt" class=""><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 style="font-size: 10pt" class="">I'm telling you this because I have already changed the code (to match output-api.c/muxing.c/remuxing.c examples) so many times to try to decode in the many ways I have stated and I know what I have stated is right without changing the code back again to match
 the samples (I have done so 3 times already today) (I hope you understand) -  avformat_find_stream_info crashes for mp3 only and </span><span style="font-size: 10pt" class="">avcodec_decode_audio4 returns header missing for mp3 file only. av_read_frame crashes but av_read_packet doesn't.</span></div><div style="color: rgb(0, 0, 0); font-size: 10pt; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal" class=""><span style="font-size: 10pt" class=""><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 style="font-size: 10pt" class="">I am using qnx platform which is arm linux. </span></div><div style="color: rgb(0, 0, 0); font-size: 10pt;
 font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;" class=""><span style="font-size: 10pt" class=""><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 style="font-size: 10pt" class="">Regards</span></div><div style="color: rgb(0, 0, 0); font-size: 10pt; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;" class=""><span style="font-size: 10pt" class=""><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 style="font-size: 10pt" class="">Bradley</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 Sunday, 27 April 2014, 23:42, Gonzalo Garramuno <ggarra13@gmail.com> wrote:<br class="" style=""> </font> </div>  <div class="" style="">On 27/04/14 19:29, <a shape="rect" ymailto="mailto:b.mcdonagh@sky.com" href="mailto:b.mcdonagh@sky.com" class="" style="">b.mcdonagh@sky.com</a> wrote:<br clear="none" class="" style="">> I have spent the last few weeks learning about libav to try to decode <br clear="none" class="" style="">> mp3 files so I can create videos with the audio from the mp3
 files.<br clear="none" class="" style="">><br clear="none" class="" style="">> Let me know if any more information is required.<br clear="none" class="" style="">><br clear="none" class="" style="">> Thanks<br clear="none" class="" style="">><br clear="none" class="" style="">> Bradley<br clear="none" class="" style="">Bradley, more info is required.  Can you post or upload a section of <br clear="none" class="" style="">your code?<div class="" id="yqtfd85587" style=""><br clear="none" class="" style=""><br clear="none" class="" style="">_______________________________________________<br clear="none" class="" style="">Libav-user mailing list<br clear="none" class="" style=""><a shape="rect" ymailto="mailto:Libav-user@ffmpeg.org" href="mailto:Libav-user@ffmpeg.org" class="" style="">Libav-user@ffmpeg.org</a><br clear="none" class="" style=""><a shape="rect" href="http://ffmpeg.org/mailman/listinfo/libav-user" target="_blank"
 class="" style="">http://ffmpeg.org/mailman/listinfo/libav-user</a><br clear="none" class="" style=""></div><br class="" style=""><br class="" style=""></div>  </div> </div>  </div> </div></body></html>