On Fri, Sep 10, 2010 at 7:09 PM, Kulti <[email protected]> wrote:
> > > On Fri, Sep 10, 2010 at 6:28 PM, Ronald S. Bultje <[email protected]>wrote: > >> Hi, >> >> On Fri, Sep 10, 2010 at 10:26 AM, Kulti <[email protected]> wrote: >> > 1. Create AVFormatCtx_1. Add to them new AVStream by av_new_stream(). >> > 2. Create AVFormatCtx_2, but I cant find any way to add AVStream created >> > for AVFormatCtx_1. >> >> Right, so create another AVStream using av_new_stream(). >> >> Duplicate the packet before writing to each output using >> av_dup_packet() and you're done. >> >> Ronald >> _______________________________________________ >> libav-user mailing list >> [email protected] >> https://lists.mplayerhq.hu/mailman/listinfo/libav-user >> > > Thanks, but it isn't work. After creating AVFormatCtx_2 I received "[flv @ > 0xae526a0] Error, Invalid timestamp=706, last=706" and av_dup_packet() not > return 0. > > Sorry... I found a bug in my code. At now you solution looks like good works. Realy thanks! _______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
