On 10/03/10 19:01, Ke Yu wrote:
Hi All,

I'm trying to open two udp multicast streams simultaneously in one process.
The first call to av_open_input_file has been working fine. However, the
second call to av_open_input_file always failed with return value -5 I/O
error. Is this by design or just a bug? Is there anyway to work around this
issue?

There's once more piece of information: if I start more than one FFMpeg
instances on the same machine to open different udp multicast streams, the
second one failed with IO error.

Which version of ffmpeg are you using?
It does not happen here:
[l...@dhcp047 ffmpeg]$ ./ffmpeg -i udp://224.20.30.40:6000
FFmpeg version SVN-r22435, Copyright (c) 2000-2010 the FFmpeg developers
  built on Mar 10 2010 20:37:30 with gcc 4.4.3 20100127 (Red Hat 4.4.3-4)
  configuration:
  libavutil     50.11. 0 / 50.11. 0
  libavcodec    52.58. 0 / 52.58. 0
  libavformat   52.55. 0 / 52.55. 0
  libavdevice   52. 2. 0 / 52. 2. 0
  libswscale     0.10. 0 /  0.10. 0
(ffmpeg waits for the stream)
[l...@dhcp047 ffmpeg]$ ./ffmpeg -i udp://224.20.30.40:5000
FFmpeg version SVN-r22435, Copyright (c) 2000-2010 the FFmpeg developers
  built on Mar 10 2010 20:37:30 with gcc 4.4.3 20100127 (Red Hat 4.4.3-4)
  configuration:
  libavutil     50.11. 0 / 50.11. 0
  libavcodec    52.58. 0 / 52.58. 0
  libavformat   52.55. 0 / 52.55. 0
  libavdevice   52. 2. 0 / 52. 2. 0
  libswscale     0.10. 0 /  0.10. 0
(waits for the stream, without failing).

Of course, if I start the second one as "./ffmpeg -i udp://224.20.30.40:6000" it fails, because two different processes cannot receive packets from the same port.


                        Luca
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to