<div dir="ltr"><div><div style="font-size:12.8000001907349px">I am having trouble muxing H264 bitstream and ADTS AAC streams together into FLV.</div><div style="font-size:12.8000001907349px">If i pack H264 bitstream (source is hardware encoder) into FLV , it plays fine with proper duration and bitrate. But when I mux audio along , the bitrate and duration go all wrong and on the playback, I only hear the audio. The video gets stuck on first frame</div><div style="font-size:12.8000001907349px">Here is my muxing code : <a href="http://pastebin.com/C6bYqtsA" target="_blank">http://pastebin.com/C6bYqtsA</a></div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">Notice that I haven't used pkt(AVPacket) flag . I am not sure what to do with it.</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">I am also assuming that I don't have to tell muxer about what type of frame I am writing (I frame or P frame). I have no idea if I have to tell that to the muxer.</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">I am just taking the frame as it comes from the encoder and passing it on to muxer. What else should I take care of ?</div></div>-- <br><div class="gmail_signature">Muhammad Ali<div>And Or Logic</div><div><a href="http://www.andorlogic.com" target="_blank">www.andorlogic.com</a></div></div>
</div>