[FFmpeg-devel] [PATCH] Add an RTSP muxer

Luca Abeni lucabe72
Mon Jan 4 18:28:41 CET 2010

Hi Martin,

On 04/01/10 16:11, Martin Storsj? wrote:
> Hi,
> Here's a stab at a RTSP muxer, tested with a Darwin Streaming Server
> setup.

First of all, thanks for contributing this muxer!

Then, there are a lot of patches, and I currently have not much time for 
reviewing them... I promise to review all the rtpenc.c and sdp.c patches 
in the next weekend.

My first impression (but it might be wrong):
- I tend to think that patch 02/24 is not needed (I think it's better to 
avoid passing host names to avf_sdp_create(), so that sdp.c does not 
need to resolve the address).
- Patch 03/24 looks ok. But maybe avf_sdp_create() should just fail if 
the destination address is not "rtp://"
- I still have to think about patch 04/24.
- I need to better understand your rtpenc.c patches. Well, I understand 
what the patches do, but I do not understand why all those changes are 
needed (for example, patch 10/24 says "Use the AVStream st member from 
RTPMuxContext instead of AVFormatContext->streams[0]", but it does not 
explain why. BTW, I just noticed that the "st" field of RTPMuxContext 
seems to be unused...). It seems that your goal is to use the rtpenc 
code without using an output format context... Why? Cannot the RTSP 
muxer create one or more proper RTP muxers, and use them, instead of 
exposing some of the RTP muxer internals? In particular, I do not like 
patches 12/24 and 13/24. But I might be missing something... I need more 
time to look at the code and think about possible alternatives.
- Isn't "log_context" the same thing as "ic"? I am not sure if it's 
worth renaming that field


More information about the ffmpeg-devel mailing list