[FFmpeg-devel] [PATCH] Make RTP work with IPv6 enabled

Ronald S. Bultje rsbultje
Sun Oct 21 17:01:18 CEST 2007

Hi Luca,

On 10/18/07, Luca Abeni <lucabe72 at email.it> wrote:
> I confirm that ffplay from svn can play rtsp:// URLs again (--disable-ipv4
> is
> still needed, but that's another patch).
> I am noticing a regression when receiving MP2 audio, but this is unrelated
> (I
> am currently investigating the problem).

ffserver is fine, I can receive udp and tcp with vlc. ffplay only works with
tcp. No idea why. On udp, everything I try (mpeg1video, mp2, mpeg with both
encapsulated) hangs in av_read_packet() inside av_try_read_frame() called by
av_find_stream_info()., both with and without --disable-ipv6. Data transfer
per se shoult not be the problem, clearly, since vlc + ffserver works in all
cases. However, the select() in rtsp.c:udp_read_packet() always returns 0
(timeout), or hangs if I remove the timeout as a test. This leads to an
infinite loop / hang of ffplay. local_port is set correctly to 5000/5002 in
udp.c and ffserver writes to it (and again, since vlc succeeds, I assume it
does so correctly). Not really sure what's wrong at this point... Here's
another interesting thing: as soon as I add a printf() after the sendto() in
udp.c:udp_write(), it all works correctly. This suggests some buffering or
threading issue (maybe in ffserver itself)?? Weird stuff.


More information about the ffmpeg-devel mailing list