[FFmpeg-devel] [PATCH] mp4a-latm rtp output & dynamic payload type from URL

Luca Abeni lucabe72
Fri Dec 18 09:44:44 CET 2009

Sergiy wrote:
> 2009/12/17 Luca Abeni <lucabe72 at email.it>:
>> Hi,
> [...]
>> I am wondering if it is possible to set the AVStream.id in ffmpeg.c,
>> similarly
>> to what you do with oc->file_index.
> AVStream.id starts from zero for every file output, but in our case,
> we have many file outputs and each have only 1 stream.

Yes, I know. I was thinking about explicitly modifying AVStream.id
before starting to send packets... See the patch that I just posted
in reply to Michael.

> So that's why additional field added to AVFormatContext.
> I think that this parameter may be useful for other muxers/outputs.
> Here is simplified and fixed patch.

I do not know. If Michael is ok with adding the new field in
AVFormatContext, I'll be happy to commit your patch. Otherwise, we
have to go with something similar to what I just posted.


More information about the ffmpeg-devel mailing list