[FFmpeg-devel] [PATCH] SDP muxer

Aurelien Jacobs aurel
Fri Nov 21 19:43:47 CET 2008


Luca Abeni wrote:

> Hi,
> 
> Stefano Sabatini wrote:
> [...]
> >>>> while I think the expected behaviour for the muxer would be to take a
> >>>> list of *AVStreams* and create from these the header.
> >>> Maybe. But then, is it still possible to have different destination
> >>> multicast groups for different streams? I mean: does an AVStream allow
> >>> to store the destination MC group (and port) somewhere?
> > 
> > I'm the mapping code of ffmpeg.c I'm storing the AVFormatOutput
> > filename in the AVStream filename, which is then used to compute the
> > destination address. It works but looks very fragile and I'm not very
> > happy about it.
> 
> I did not know about AVStream->filename. What's its expected behaviour?
> The comments says "source filename of the stream", which does not make
> too much sense in this case... Is it ok to use AVStream->filename in this
> way? Where is it used in libavformat, and who sets it?

IIRC it is currently used only for attachment streams (eg. a ttf font
embedded in a mkv file). Subtitles often refer to fonts by their filename,
which have to be exported in case of embedded font.
So, IOW, AVStream->filename should be the name of the original raw stream
file which was used to when muxing to the container, and this should be the
default/preferred name if the raw stream is dumped again into a file.
I'm not sure your proposition would fit with this definition...

Aurel




More information about the ffmpeg-devel mailing list