On Fri, Sep 10, 2010 at 6:08 PM, Ronald S. Bultje <[email protected]>wrote:

> Hi,
>
> On Fri, Sep 10, 2010 at 8:41 AM, Kulti <[email protected]> wrote:
> > I need to write encoded video stream to multiple output. But I can't
> > understand, how to create two AVFormatContext associated with one
> AVStream.
> > Anybody can help me with example?
>
> Duplicate the AVStream?
>
> Ronald
> _______________________________________________
> libav-user mailing list
> [email protected]
> https://lists.mplayerhq.hu/mailman/listinfo/libav-user
>

Hi,

yes, maybe a duplicate the AVStream. As I understand,
av_interleaved_write_frame() used AVStream from AVFormatContext to writing
data. So, I need to write to different AVFormatContext, but AVPacket encoded
by AVCodecContext created from any AVStream. And, as I understand,
AVFormatContext should be associated with the same AVStream. In simplest
case:
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.
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to