[FFmpeg-trac] #3313(undetermined:new): ffmpeg can't receive the UDP multicasted MPEGTS streams

FFmpeg trac at avcodec.org
Fri Jan 17 10:26:53 CET 2014


#3313: ffmpeg can't receive the UDP multicasted MPEGTS streams
--------------------------------+----------------------------------------
             Reporter:  mrxwh   |                    Owner:
                 Type:  defect  |                   Status:  new
             Priority:  normal  |                Component:  undetermined
              Version:  2.1.3   |               Resolution:
             Keywords:  udp     |               Blocked By:
             Blocking:          |  Reproduced by developer:  0
Analyzed by developer:  0       |
--------------------------------+----------------------------------------

Comment (by mrxwh):

 I tested it with ffmpeg-2.1.1 and ffmpeg-2.0,both of them doesn't work.

 I traced with the following codes

 static int udp_read(URLContext *h, uint8_t *buf, int size)
 {
     UDPContext *s = h->priv_data;
     int ret;
     int avail, nonblock = h->flags & AVIO_FLAG_NONBLOCK;

 #if HAVE_PTHREAD_CANCEL
     if (s->fifo) {
         pthread_mutex_lock(&s->mutex);
         do {
             avail = av_fifo_size(s->fifo);
             printf("udp_read: avail=%d\n",avail);
 .......................
 }

 the printed result shows "udp_read: avail=0"

 It looks like there is no UDP data captured.

 Best Regards!

--
Ticket URL: <https://trac.ffmpeg.org/ticket/3313#comment:3>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list