Work on SDP and RTP support
Hi, At the moment, the FreeSDP library copy is only used in for the code in librtsp/rtsp_rtp.c. Since the freesdp code is a bit overkill, and unmaintained upstream, I thought of rewriting a small parser for the SDP protocol. So I just did it this week end, and it implements almost everything of RFC4566 in something like 400 lines (instead of the 10 times more with FreeSDP). Then I changed the freesdp calls in rtsp_rtp.c to the new sdp parser without any special issue. But the major issue now is to get a RTP stream working: I tried something like 10 streams on http://wiki.multimedia.cx/index.php?title=RTSP#RTSP_MOV.2FMP4 but none work. If I use the -rtsp-stream-over-tcp switch, it fallbacks to live555 module and then works. ffmpeg:// also works. But in both cases, it's a fallback to the RTP code failure. So a few questions: 1) Are you interested in a fix for the RTP code or you prefer to let it rot/drop it? 2) If you're ok with a fix, do you have a stream that currently works with it, or at least "should" 3) Are you ok with dropping FreeSDP over a simpler (already done) SDP implementation? Regards, -- Clément B. Not sent from a jesusPhone.
On 21 dec 2010, at 11:18, Clément Bœsch <ubitux@gmail.com> wrote:
At the moment, the FreeSDP library copy is only used in for the code in librtsp/rtsp_rtp.c. Since the freesdp code is a bit overkill, and unmaintained upstream, I thought of rewriting a small parser for the SDP protocol. So I just did it this week end, and it implements almost everything of RFC4566 in something like 400 lines (instead of the 10 times more with FreeSDP).
Please, please, please do not add such code to MPlayer, the second you stop maintaining it it would break, add it to FFmpeg, there are multiple people there who can and are willing to maintain that kind of code. It may be more effort to get it working now, but I promise it will be worth it in the long run (also because FFmpeg is large enough that there's a chance the people providing the servers will run compatibility testing against it).
1) Are you interested in a fix for the RTP code or you prefer to let it rot/drop it? 2) If you're ok with a fix, do you have a stream that currently works with it, or at least "should" 3) Are you ok with dropping FreeSDP over a simpler (already done) SDP implementation?
Current code should be removed in the long term in favour of FFmpeg and we really shouldn't do much more than bug fixes to it, though what can be considered a bug fix is up to discussion...
On Tue, Dec 21, 2010 at 11:33:37AM +0100, Reimar Döffinger wrote:
On 21 dec 2010, at 11:18, Clément Bœsch <ubitux@gmail.com> wrote:
At the moment, the FreeSDP library copy is only used in for the code in librtsp/rtsp_rtp.c. Since the freesdp code is a bit overkill, and unmaintained upstream, I thought of rewriting a small parser for the SDP protocol. So I just did it this week end, and it implements almost everything of RFC4566 in something like 400 lines (instead of the 10 times more with FreeSDP).
Please, please, please do not add such code to MPlayer, the second you stop maintaining it it would break, add it to FFmpeg, there are multiple people there who can and are willing to maintain that kind of code.
There is already a support in FFmpeg, that actually works (through ffmpeg://rtsp://...), so well yes I could propose my SDP parser there.
It may be more effort to get it working now, but I promise it will be worth it in the long run (also because FFmpeg is large enough that there's a chance the people providing the servers will run compatibility testing against it).
I'm ok with making it through FFmpeg; the problem is that old MPlayer broken code still exists and is the default. Should I work on making the ffmpeg code called by default?
1) Are you interested in a fix for the RTP code or you prefer to let it rot/drop it? 2) If you're ok with a fix, do you have a stream that currently works with it, or at least "should" 3) Are you ok with dropping FreeSDP over a simpler (already done) SDP implementation?
Current code should be removed in the long term [...]
What do you mean by "in the long term"; should we drop this... now?
[...] in favour of FFmpeg and we really shouldn't do much more than bug fixes to it, though what can be considered a bug fix is up to discussion...
-- Clément B. Not sent from a jesusPhone.
On 12/21/2010 11:47 AM, Clément Bœsch wrote:
I'm ok with making it through FFmpeg; the problem is that old MPlayer broken code still exists and is the default. Should I work on making the ffmpeg code called by default?
Might be worthy.
What do you mean by "in the long term"; should we drop this... now?
Only if ffmpeg replacement does everything it does the to-be-replaced one. (E.g. libnemesi provides sctp support ffmpeg does not, and I hadn't time to properly put that there yet). lu -- Luca Barbato Gentoo/linux http://dev.gentoo.org/~lu_zero
On 21 dec 2010, at 12:08, Luca Barbato <lu_zero@gentoo.org> wrote:
On 12/21/2010 11:47 AM, Clément Bœsch wrote:
I'm ok with making it through FFmpeg; the problem is that old MPlayer broken code still exists and is the default. Should I work on making the ffmpeg code called by default?
Might be worthy.
If you think it works better, certainly.
What do you mean by "in the long term"; should we drop this... now?
No, definitely not now. You can't remove something that is currently the default, the alternative needs proper public testing first.
On Tue, 21 Dec 2010 12:14:16 +0100, Reimar Döffinger wrote:
On 21 dec 2010, at 12:08, Luca Barbato <lu_zero@gentoo.org> wrote:
On 12/21/2010 11:47 AM, Clément Bœsch wrote:
I'm ok with making it through FFmpeg; the problem is that old MPlayer broken code still exists and is the default. Should I work on making the ffmpeg code called by default?
Might be worthy.
If you think it works better, certainly.
reimar knows this code when he added ffmpeg:// stuff. i think he will make it default after it has been tested. you can look at the commit that made rtmp:// work to see how it was done.
What do you mean by "in the long term"; should we drop this... now?
No, definitely not now. You can't remove something that is currently the default, the alternative needs proper public testing first.
ffmpeg is still missing playlist support, so .smil and .mov redirectors arent working. it would be nice to get those into ffmpeg. rtsp://rm stuff is working better than before in ffmpeg, but needs extensive testing to fix any remaining problems. also there was the max_streams limit (was it fixed in the next major bump?) which would hit the limit on mbr rm files. if you want to help, you can color-code the wiki for urls that ffmpeg doesnt play. that will help ffmpeg devs more quickly work on troublesome urls. add 'fixing up rtsp' to the 'small tasks' page on the wiki too. i made one url red to show it wasnt working. use green or lime to show working samples. i scanned the live555 devel list for rtsp urls, maybe someone wants to test those as well? what we are trying to do is stick all network, muxer, codec and everything else we can into ffmpeg so it can be maintained there and shared with more projects. after its tested we can start removing duplicate features from mplayer. i'm sorry that work has been done to mplayer without this in mind, but as we only have reimar reviewing patches, he gets to decide what goes in. maybe we should make a note on news page and mplayer readme about changing to ffmpeg development ? -compn
On Tue, Dec 21, 2010 at 02:05:21PM -0500, compn wrote:
On Tue, 21 Dec 2010 12:14:16 +0100, Reimar Döffinger wrote:
On 21 dec 2010, at 12:08, Luca Barbato <lu_zero@gentoo.org> wrote:
On 12/21/2010 11:47 AM, Clément Bœsch wrote:
I'm ok with making it through FFmpeg; the problem is that old MPlayer broken code still exists and is the default. Should I work on making the ffmpeg code called by default?
Might be worthy.
If you think it works better, certainly.
reimar knows this code when he added ffmpeg:// stuff. i think he will make it default after it has been tested. you can look at the commit that made rtmp:// work to see how it was done.
What do you mean by "in the long term"; should we drop this... now?
No, definitely not now. You can't remove something that is currently the default, the alternative needs proper public testing first.
ffmpeg is still missing playlist support, so .smil and .mov redirectors arent working. it would be nice to get those into ffmpeg.
rtsp://rm stuff is working better than before in ffmpeg, but needs extensive testing to fix any remaining problems. also there was the max_streams limit (was it fixed in the next major bump?) which would hit the limit on mbr rm files.
if you want to help, you can color-code the wiki for urls that ffmpeg doesnt play. that will help ffmpeg devs more quickly work on troublesome urls. add 'fixing up rtsp' to the 'small tasks' page on the wiki too.
i made one url red to show it wasnt working. use green or lime to show working samples. i scanned the live555 devel list for rtsp urls, maybe someone wants to test those as well?
what we are trying to do is stick all network, muxer, codec and everything else we can into ffmpeg so it can be maintained there and shared with more projects. after its tested we can start removing duplicate features from mplayer.
i'm sorry that work has been done to mplayer without this in mind, but as we only have reimar reviewing patches, he gets to decide what goes in. maybe we should make a note on news page and mplayer readme about changing to ffmpeg development ?
No worry about the "work done", it's always a pleasure to make things; it just ends up on my github repo with other relics :) But yes, a documentation/news/whatever about the development orientation (and eventually some kind of TODO list) would be welcome. Btw, thank you for your clarification. I don't know if I'm going to propose any "better" default for those streams regarding the current MPlayer and FFmpeg situation, so well, I think I'll just have fun with something else (useful this time I hope :)). -- Clément B. Not sent from a jesusPhone.
compn <tempn <at> twmi.rr.com> writes:
rtsp://rm stuff is working better than before in ffmpeg, but needs extensive testing to fix any remaining problems. also there was the max_streams limit (was it fixed in the next major bump?) which would hit the limit on mbr rm files.
Which we could (probably?) raise for MPlayer (FF_API_MAX_STREAMS) and we should do it if it fixes any stream. Carl Eugen
On Tue, Dec 21, 2010 at 11:18:30AM +0100, Clément Bœsch wrote:
So a few questions:
1) Are you interested in a fix for the RTP code or you prefer to let it rot/drop it? 3) Are you ok with dropping FreeSDP over a simpler (already done) SDP implementation?
I'm all for dropping internal forked library copies. Just make sure there are no regressions. In this case it might be difficult. Getting FFmpeg to the point where we can drop the alternatives is likely the way to go. Diego
participants (6)
-
Carl Eugen Hoyos -
Clément Bœsch -
compn -
Diego Biurrun -
Luca Barbato -
Reimar Döffinger