Hi guys, I'm trying to dub an audio file with a video.<div><br></div><div>I can get video decoded and encoded on it's own.</div><div>I can get audio decoded and encoded on it's own.</div><div><br></div><div>But, how do I go about outputting a file with both audio and video interleaved?</div>
<div><br></div><div>I currently have a FILE object for outputting the file.</div><div>Two AVCodecContext objects. One for encoding the audio and one for encoding the video.</div><div><br></div><div>I call avcodec_encode_video with the video AVCodecContext and AVFrame to encode a video and fwrite it into the FILE object.</div>
<div><br></div><div>How do I go about interleaving in the result of avcodec_encode_audio into the FILE object too?</div><div><br></div><div>Thanks,</div><div>Ash</div>