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

Luca Abeni lucabe72
Mon Oct 12 10:39:17 CEST 2009


Hi Michael,

Michael Niedermayer wrote:
[...]
>>>> Does such a mechanism already exists (I do not think that adding
>>>> muxer-specific fields in AVFormatContext is a great idea)? If yes, can
>>>> you point me to it?
>>> muxers return packets depending on what AVDiscard (AVStream.discard) is 
>>> set
>>> to
>> So, are you saying that AVDiscard can be used to set the payload type (or
>> the session ID, etc...)?
> 
> rereading your mail, my reply makes no sense ...
> what i meant to say was that AVDiscard can be used to select what to
> return from the mpeg demuxer and that a PID field would be unneeded for
> that, but you spoke of muxing. ive definitly read your mail too quickly
> 
> for muxing maybe AVStream.id could be usefull? but we can also add a new
> field if its insufficient
> Also if id is used it should be used consistently by demuxer & muxer of
> the same container format

Ok, thanks. I'll have a look at using AVStream.id for the payload type in
the RTP muxer (and I'll also try to prepare a patch for the TS muxer,
using AVStream.id for setting the PIDs).


			Thanks,
				Luca



More information about the ffmpeg-devel mailing list