[PATCH] default multicast to socket reuse
We have a number of streams that are being multicast on the local network and have a .sdp file useed to configure ffplay and the ffmpeg library to listen in to those stream. In this case there isn't any way to tell ffmpeg to set the SO_REUSEADDR flag so that multiple programs on the same computer can receive the same multicast stream. With the sdp configuration file ffmpeg will build the uri internally so there isn't any way to specify the reuse=1 option in the uri. This defaults udp.c to enable socket reuse if it is multicast and reuse=0 is not specified. -- David Fries <david at fries.net> http://fries.net/~david/ (PGP encryption key available)
Please disreguard the last patch and use this version instead. I realized that as it was coded reuse without =1 would have previously would enable socket reuse where now it would be disabled as strtol returns 0 when the string is empty as it is in that case. On Fri, Jul 02, 2010 at 07:54:25AM -0500, David Fries wrote:
We have a number of streams that are being multicast on the local network and have a .sdp file useed to configure ffplay and the ffmpeg library to listen in to those stream. In this case there isn't any way to tell ffmpeg to set the SO_REUSEADDR flag so that multiple programs on the same computer can receive the same multicast stream. With the sdp configuration file ffmpeg will build the uri internally so there isn't any way to specify the reuse=1 option in the uri. This defaults udp.c to enable socket reuse if it is multicast and reuse=0 is not specified.
-- David Fries <david at fries.net> http://fries.net/~david/ (PGP encryption key available)
On Fri, Jul 2, 2010 at 3:54 PM, David Fries <david at fries.net> wrote:
We have a number of streams that are being multicast on the local network and have a .sdp file useed to configure ffplay and the ffmpeg library to listen in to those stream. ?In this case there isn't any way to tell ffmpeg to set the SO_REUSEADDR flag so that multiple programs on the same computer can receive the same multicast stream. With the sdp configuration file ffmpeg will build the uri internally so there isn't any way to specify the reuse=1 option in the uri. ?This defaults udp.c to enable socket reuse if it is multicast and reuse=0 is not specified.
Hi. Experiencing the same problem here. It does not appear that this patch or an equivalent fix has been merged. Meanwhile, this patch no longer applies to the tip. What to the FFmpeg devs recommend should be the way forward on this? Will an update of David's patch be acceptable? Thanks. -- B. Gitonga Marete Tel: +254-722-151-590
On Mon, Feb 07, 2011 at 07:39:38PM +0300, Brian Gitonga Marete wrote:
On Fri, Jul 2, 2010 at 3:54 PM, David Fries <david@fries.net> wrote:
We have a number of streams that are being multicast on the local network and have a .sdp file useed to configure ffplay and the ffmpeg library to listen in to those stream. In this case there isn't any way to tell ffmpeg to set the SO_REUSEADDR flag so that multiple programs on the same computer can receive the same multicast stream. With the sdp configuration file ffmpeg will build the uri internally so there isn't any way to specify the reuse=1 option in the uri. This defaults udp.c to enable socket reuse if it is multicast and reuse=0 is not specified.
Hi. Experiencing the same problem here. It does not appear that this patch or an equivalent fix has been merged. Meanwhile, this patch no longer applies to the tip. What to the FFmpeg devs recommend should be the way forward on this? Will an update of David's patch be acceptable?
I think it has been fixed at some point but if not a patch and or bugreport is always welcome [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB In a rich man's house there is no place to spit but his face. -- Diogenes of Sinope
participants (3)
-
bgmarete@gmail.com -
david@fries.net -
Michael Niedermayer