<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta content="text/html;charset=UTF-8" http-equiv="Content-Type"></head><body ><div style='font-size:10pt;font-family:Verdana,Arial,Helvetica,sans-serif;'><div><br></div><div><br></div><div id=""><div>Hello,<br></div><div><br></div><div>I am using libavformat to mux one audio and one video stream into a webm file. The video stream is already VP8 encoded and audio stream is already opus encoded. Now, in this I have two doubts : <br></div><div><br></div><div>1. Do I have to decode the audio and video streams, pass the raw data again to encoder to get AVPacketized data ? Or simply I can create new AVPacket and set it's AVBuffer ?<br></div><div><br></div><div>2. When I followed the second approach, i.e when I created an new AVPacket and set its AVBuffer and pts, dts from RTPTimeStamps, and passed this AVPacket to av_write_interleaved_frame(), I get an empty file in the end after closing the file. Am Idoing something wrong ? Is there something more that needs to be set on AVPacket ?<br></div><div><br></div><div>Please help me in this. Thanks.<br></div><div><br></div><div>Regards,<br></div><div>Ravi Kiran B S<br></div></div><div><br></div></div><br></body></html>