[FFmpeg-trac] #258(avformat:new): RTP over UDP: doesn't reorder packets

FFmpeg trac at avcodec.org
Wed Jun 1 11:26:34 CEST 2011


#258: RTP over UDP: doesn't reorder packets
-------------------------+-------------------------
 Reporter:  Andrew       |        Type:  defect
   Status:  new          |    Priority:  normal
Component:  avformat     |     Version:  git-master
 Keywords:  RTP reorder  |  Blocked By:
 Blocking:               |  Reproduced:  0
 Analyzed:  0            |
-------------------------+-------------------------
 muxonly.c source
 ...
 ic = avformat_alloc_context();
 ic->preload   = 1000000; // 1 sec
 ic->max_delay = 3000000; // 5 sec
 ap.prealloced_context = 1;
 ret = av_open_input_file(&ic, argv[1], NULL, 0, &ap);
 ...
 while ()
   av_read_frame()
 ...

 libavformat/rtpdec.h
 -#define RTP_REORDER_QUEUE_DEFAULT_SIZE 10
 +#define RTP_REORDER_QUEUE_DEFAULT_SIZE 50

 ./muxonly 'rtsp://axis1031:554/axis-
 media/media.amp?video=1&audio=0&videocodec=mpeg4' mov /tmp/test.mov
 SDP:
 v=0
 o=- 1306917023786450 1306917023786450 IN IP4 axis1031
 s=Media Presentation
 e=NONE
 c=IN IP4 0.0.0.0
 b=AS:8000
 t=0 0
 a=control:rtsp://axis1031:554/axis-
 media/media.amp?video=1&audio=0&videocodec=mpeg4
 a=range:npt=0.000000-
 m=video 0 RTP/AVP 96
 b=AS:8000
 a=framerate:30.0
 a=transform:1,0,0;0,1,0;0,0,1
 a=control:rtsp://axis1031:554/axis-
 media/media.amp/trackID=1?video=1&audio=0&videocodec=mpeg4
 a=rtpmap:96 MP4V-ES/90000
 a=fmtp:96 profile-level-id=245;
 config=000001B0F5000001B50ECF000001000000012000C88D881F4514043C14103F

 video codec set to: mpeg4
 hello state=0
 RTP: missed 3 packets
 RTP: missed 2 packets
 RTP: missed 2 packets
 RTP: missed 1 packets
 RTP: missed 3 packets
 RTP: missed 5 packets
 RTP: missed 2 packets
 RTP: missed 2 packets
 RTP: missed 3 packets
 RTP: missed 4 packets
 RTP: missed 3 packets
 RTP: missed 1 packets
 RTP: missed 5 packets
 RTP: missed 3 packets
 RTP: missed 4 packets
 RTP: missed 4 packets
 RTP: missed 4 packets
 RTP: missed 7 packets
 RTP: missed 4 packets
 RTP: missed 4 packets
 RTP: missed 4 packets
 RTP: missed 6 packets
 RTP: missed 3 packets
 RTP: missed 4 packets
 RTP: missed 6 packets
 RTP: missed 2 packets
 RTP: missed 4 packets
 RTP: missed 5 packets
 RTP: missed 3 packets
 RTP: missed 3 packets
 RTP: missed 2 packets
 RTP: missed 3 packets
 RTP: missed 2 packets
 RTP: missed 5 packets
 RTP: missed 3 packets
 RTP: missed 13 packets
 RTP: missed 29 packets
 RTP: missed 12 packets
 RTP: missed 28 packets
 RTP: missed 3 packets
 RTP: missed 15 packets
 RTP: missed 7 packets
 RTP: missed 8 packets
 RTP: missed 14 packets
 RTP: missed 2 packets
 RTP: missed 9 packets
 RTP: missed 21 packets
 RTP: missed 5 packets
 RTP: missed 28 packets
 RTP: missed 9 packets
 RTP: missed 5 packets
 RTP: missed 8 packets
 RTP: missed 17 packets
 RTP: missed 46 packets
 RTP: missed 3 packets
 RTP: missed 4 packets
 RTP: missed 3 packets
 RTP: missed 1 packets
 RTP: missed 4 packets
 RTP: missed 3 packets
 RTP: missed 2 packets
 RTP: missed 3 packets
 RTP: missed 1 packets
 RTP: missed 5 packets
 All info found
 Estimating duration from bitrate, this may be inaccurate
 Input #0, rtsp, from 'rtsp://axis1031:554/axis-
 media/media.amp?video=1&audio=0&videocodec=mpeg4':
   Metadata:
     title           : Media Presentation
   Duration: N/A, start: 3.690289, bitrate: N/A
     Stream #0.0, 22, 1/90000: Video: mpeg4, yuv420p, 640x480 [PAR 1:1 DAR
 4:3], 1k tbr, 90k tbn, 1k tbc

 AVFormatContext: start_time = 3690289 (1/1000000)  3.690 sec
 AVStream: start_time =  332126 (1/90000)  3.690 sec, first_dts =  332126
 3.690 sec

 Output #0, mov, to '/tmp/test.mov':
     Stream #0.0, 0, 1/90000: Video: mpeg4, yuv420p, 640x480, q=2-31, 90k
 tbn, 90k tbc
 Output #0, mov, to '/tmp/test.mov':
   Metadata:
     encoder         : Lavf53.2.0
     Stream #0.0, 0, 1/90000: Video: mpeg4, yuv420p, 640x480, q=2-31, 90k
 tbn, 90k tbc

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/258>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list