RTP: missing X packets - I need some help :)
Posted: Thu Feb 12, 2015 1:22 am
I have some issues with Moi Pro + ffmpeg setup.
Details below and my question is:
How to diagnose what causes missing packets.
Is it a Moi Pro issue?
Or network setup problem?
Or my ffmpeg is faulty?
How to chack what is wrong?
Which software can validate RTP stream and tell me whether Moi and network part is working fine or not?
I have tried to look a bit into those streams with wireshark but I have no idea how to verify if packets are in order and not missing.
Stats from network card are fine. On both sides (Moi and server).
I will try to upload an attachment with ffmpeg log.
And details are as follow:
Moi Pro is set up to multicast stream through ethernet. Streamin is done by dvblast. Moi Pro is confugured purely by web interface.
It is hooked up to server with just patch cable (no switch).
Stream is about 4mbit.
ffmpeg is invoked like this:
ffmpeg -i rtp://239.255.2.1:2231 -vcodec copy -an c:\tmp\tvp1---.ts
And after launch it complains about missing packets:
Input #0, rtp, from 'rtp://239.255.2.1:2231':
Duration: N/A, start: 14125.856578, bitrate: N/A
Program 1
Stream #0:2: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709)
, 1920x1080 [SAR 1:1 DAR 16:9], 50 tbr, 90k tbn, 50 tbc
Stream #0:0(pol): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p
, 160 kb/s
Stream #0:1(pol): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006)
Stream #0:3(qaa): Audio: eac3 (EAC3 / 0x33434145), 48000 Hz, 5.1(side), fltp
, 256 kb/s
Stream #0:5(pol): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)
Stream #0:4(aux): Audio: eac3 (EAC3 / 0x33434145), 48000 Hz, stereo, fltp, 9
6 kb/s (visual impaired)
Stream #0:6(eng): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)
File 'c:\tmp\tvp1---.ts' already exists. Overwrite ? [y/N] y
Output #0, mpegts, to 'c:\tmp\tvp1---.ts':
Metadata:
encoder : Lavf56.16.102
Stream #0:0: Video: h264 ([27][0][0][0] / 0x001B), yuv420p, 1920x1080 [SAR 1
:1 DAR 16:9], q=2-31, 50 tbr, 90k tbn, 25 tbc
Stream mapping:
Stream #0:2 -> #0:0 (copy)
Press [q] to stop, [?] for help
[rtp @ 0000000004779580] PES packet size mismatch
Last message repeated 1 times
RTP: missed 518 packets
frame= 25 fps=0.0 q=-1.0 size= 224kB time=00:00:08.42 bitrate= 217.7kbits/
RTP: missed 2 packets
RTP: missed 5 packets
RTP: missed 4 packets
frame= 48 fps= 39 q=-1.0 size= 478kB time=00:00:08.92 bitrate= 438.7kbits/
frame= 72 fps= 38 q=-1.0 size= 674kB time=00:00:09.40 bitrate= 587.4kbits/
RTP: missed 2 packets
RTP: missed 4 packets
RTP: missed 2 packets
frame= 110 fps= 43 q=-1.0 size= 928kB time=00:00:10.20 bitrate= 745.2kbits/
frame= 129 fps= 40 q=-1.0 size= 1174kB time=00:00:10.58 bitrate= 908.7kbits/
frame= 165 fps= 43 q=-1.0 size= 1439kB time=00:00:11.30 bitrate=1043.2kbits/
RTP: missed 1 packets
RTP: missed 2 packets
RTP: missed 1 packets
frame= 205 fps= 45 q=-1.0 size= 1811kB time=00:00:12.12 bitrate=1224.2kbits/
frame= 223 fps= 42 q=-1.0 size= 1995kB time=00:00:12.48 bitrate=1309.5kbits/
frame= 244 fps= 44 q=-1.0 Lsize= 2114kB time=00:00:12.90 bitrate=1342.5kbits
/s
video:1932kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing
overhead: 9.405678%
ffmpeg version is:
ffmpeg version N-68756-g627f565 Copyright (c) 2000-2014 the FFmpeg developers
built on Dec 27 2014 22:26:33 with gcc 4.9.2 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
le-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --
enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-lib
modplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrw
b --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinge
r --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --en
able-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis
--enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-
libx265 --enable-libxavs --enable-libxvid --enable-decklink --enable-zlib
libavutil 54. 15.100 / 54. 15.100
libavcodec 56. 19.100 / 56. 19.100
libavformat 56. 16.102 / 56. 16.102
libavdevice 56. 3.100 / 56. 3.100
libavfilter 5. 6.100 / 5. 6.100
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 3.100 / 53. 3.100
VLC works but picture stutters.
Server is quite powerful (ProLiant DL585 G6 with HP multifunction network card - NC-371i)
Details below and my question is:
How to diagnose what causes missing packets.
Is it a Moi Pro issue?
Or network setup problem?
Or my ffmpeg is faulty?
How to chack what is wrong?
Which software can validate RTP stream and tell me whether Moi and network part is working fine or not?
I have tried to look a bit into those streams with wireshark but I have no idea how to verify if packets are in order and not missing.
Stats from network card are fine. On both sides (Moi and server).
I will try to upload an attachment with ffmpeg log.
And details are as follow:
Moi Pro is set up to multicast stream through ethernet. Streamin is done by dvblast. Moi Pro is confugured purely by web interface.
It is hooked up to server with just patch cable (no switch).
Stream is about 4mbit.
ffmpeg is invoked like this:
ffmpeg -i rtp://239.255.2.1:2231 -vcodec copy -an c:\tmp\tvp1---.ts
And after launch it complains about missing packets:
Input #0, rtp, from 'rtp://239.255.2.1:2231':
Duration: N/A, start: 14125.856578, bitrate: N/A
Program 1
Stream #0:2: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709)
, 1920x1080 [SAR 1:1 DAR 16:9], 50 tbr, 90k tbn, 50 tbc
Stream #0:0(pol): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p
, 160 kb/s
Stream #0:1(pol): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006)
Stream #0:3(qaa): Audio: eac3 (EAC3 / 0x33434145), 48000 Hz, 5.1(side), fltp
, 256 kb/s
Stream #0:5(pol): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)
Stream #0:4(aux): Audio: eac3 (EAC3 / 0x33434145), 48000 Hz, stereo, fltp, 9
6 kb/s (visual impaired)
Stream #0:6(eng): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)
File 'c:\tmp\tvp1---.ts' already exists. Overwrite ? [y/N] y
Output #0, mpegts, to 'c:\tmp\tvp1---.ts':
Metadata:
encoder : Lavf56.16.102
Stream #0:0: Video: h264 ([27][0][0][0] / 0x001B), yuv420p, 1920x1080 [SAR 1
:1 DAR 16:9], q=2-31, 50 tbr, 90k tbn, 25 tbc
Stream mapping:
Stream #0:2 -> #0:0 (copy)
Press [q] to stop, [?] for help
[rtp @ 0000000004779580] PES packet size mismatch
Last message repeated 1 times
RTP: missed 518 packets
frame= 25 fps=0.0 q=-1.0 size= 224kB time=00:00:08.42 bitrate= 217.7kbits/
RTP: missed 2 packets
RTP: missed 5 packets
RTP: missed 4 packets
frame= 48 fps= 39 q=-1.0 size= 478kB time=00:00:08.92 bitrate= 438.7kbits/
frame= 72 fps= 38 q=-1.0 size= 674kB time=00:00:09.40 bitrate= 587.4kbits/
RTP: missed 2 packets
RTP: missed 4 packets
RTP: missed 2 packets
frame= 110 fps= 43 q=-1.0 size= 928kB time=00:00:10.20 bitrate= 745.2kbits/
frame= 129 fps= 40 q=-1.0 size= 1174kB time=00:00:10.58 bitrate= 908.7kbits/
frame= 165 fps= 43 q=-1.0 size= 1439kB time=00:00:11.30 bitrate=1043.2kbits/
RTP: missed 1 packets
RTP: missed 2 packets
RTP: missed 1 packets
frame= 205 fps= 45 q=-1.0 size= 1811kB time=00:00:12.12 bitrate=1224.2kbits/
frame= 223 fps= 42 q=-1.0 size= 1995kB time=00:00:12.48 bitrate=1309.5kbits/
frame= 244 fps= 44 q=-1.0 Lsize= 2114kB time=00:00:12.90 bitrate=1342.5kbits
/s
video:1932kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing
overhead: 9.405678%
ffmpeg version is:
ffmpeg version N-68756-g627f565 Copyright (c) 2000-2014 the FFmpeg developers
built on Dec 27 2014 22:26:33 with gcc 4.9.2 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
le-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --
enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-lib
modplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrw
b --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinge
r --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --en
able-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis
--enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-
libx265 --enable-libxavs --enable-libxvid --enable-decklink --enable-zlib
libavutil 54. 15.100 / 54. 15.100
libavcodec 56. 19.100 / 56. 19.100
libavformat 56. 16.102 / 56. 16.102
libavdevice 56. 3.100 / 56. 3.100
libavfilter 5. 6.100 / 5. 6.100
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 3.100 / 53. 3.100
VLC works but picture stutters.
Server is quite powerful (ProLiant DL585 G6 with HP multifunction network card - NC-371i)