Moderator Control Panel ]

RTP: missing X packets - I need some help :)

RTP: missing X packets - I need some help :)

Postby ptoki » 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)
ptoki
 
Posts: 3
Joined: Wed Feb 11, 2015 7:31 am

Re: RTP: missing X packets - I need some help :)

Postby ptoki » Thu Feb 12, 2015 1:27 am

ffmpeg debug:

C:\tmp>ffmpeg -i rtp://239.255.2.1:2231 -vcodec copy -an c:\tmp\tvp1---.ts
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
[NULL @ 00000000047c13c0] non-existing SPS 0 referenced in buffering period
[NULL @ 00000000047c13c0] non-existing PPS 0 referenced
[h264 @ 00000000047c13c0] non-existing SPS 0 referenced in buffering period
[h264 @ 00000000047c13c0] non-existing PPS 0 referenced
[h264 @ 00000000047c13c0] decode_slice_header error
[h264 @ 00000000047c13c0] no frame!
[h264 @ 00000000047c13c0] non-existing SPS 0 referenced in buffering period
[h264 @ 00000000047c13c0] non-existing PPS 0 referenced
[h264 @ 00000000047c13c0] non-existing SPS 0 referenced in buffering period
[h264 @ 00000000047c13c0] non-existing PPS 0 referenced
[h264 @ 00000000047c13c0] decode_slice_header error
[h264 @ 00000000047c13c0] no frame!
[h264 @ 00000000047c13c0] non-existing SPS 0 referenced in buffering period
[h264 @ 00000000047c13c0] non-existing PPS 0 referenced
[h264 @ 00000000047c13c0] non-existing SPS 0 referenced in buffering period
[h264 @ 00000000047c13c0] non-existing PPS 0 referenced
[h264 @ 00000000047c13c0] decode_slice_header error
[h264 @ 00000000047c13c0] no frame!
[h264 @ 00000000047c13c0] non-existing SPS 0 referenced in buffering period
[h264 @ 00000000047c13c0] non-existing PPS 0 referenced
[h264 @ 00000000047c13c0] non-existing SPS 0 referenced in buffering period
[h264 @ 00000000047c13c0] non-existing PPS 0 referenced
[h264 @ 00000000047c13c0] decode_slice_header error
[h264 @ 00000000047c13c0] no frame!
[h264 @ 00000000047c13c0] non-existing SPS 0 referenced in buffering period
[h264 @ 00000000047c13c0] non-existing PPS 0 referenced
[h264 @ 00000000047c13c0] non-existing SPS 0 referenced in buffering period
[h264 @ 00000000047c13c0] non-existing PPS 0 referenced
[h264 @ 00000000047c13c0] decode_slice_header error
[h264 @ 00000000047c13c0] no frame!
RTP: missed 2 packets
[rtp @ 0000000004769580] PES packet size mismatch
RTP: missed 4 packets
RTP: missed 2 packets
RTP: missed 40 packets
RTP: missed 5 packets
RTP: missed 3 packets
RTP: missed 34 packets
[h264 @ 00000000047c13c0] non-existing SPS 0 referenced in buffering period
[h264 @ 00000000047c13c0] non-existing PPS 0 referenced
[h264 @ 00000000047c13c0] non-existing SPS 0 referenced in buffering period
[h264 @ 00000000047c13c0] non-existing PPS 0 referenced
[h264 @ 00000000047c13c0] decode_slice_header error
[h264 @ 00000000047c13c0] no frame!
[rtp @ 0000000004769580] PES packet size mismatch
[h264 @ 00000000047c13c0] mmco: unref short failure
RTP: missed 99 packets
RTP: missed 6 packets
[rtp @ 0000000004769580] PES packet size mismatch
[h264 @ 00000000047c13c0] reference picture missing during reorder
[h264 @ 00000000047c13c0] Missing reference picture, default is 65344
[h264 @ 00000000047c13c0] Reference 2 >= 2
[h264 @ 00000000047c13c0] error while decoding MB 46 1, bytestream 4004
[h264 @ 00000000047c13c0] mmco: unref short failure
[h264 @ 00000000047c13c0] Found reference and non-reference fields in the same f
rame, which is not implemented. Update your FFmpeg version to the newest one fro
m Git. If the problem still occurs, it means that your file has a feature which
has not been implemented.
[h264 @ 00000000047c13c0] If you want to help, upload a sample of this file to f
tp://upload.ffmpeg.org/incoming/ and contact the ffmpeg-devel mailing list. (ffm
peg-devel@ffmpeg.org)
[h264 @ 00000000047c13c0] decode_slice_header error
RTP: missed 81 packets
[h264 @ 00000000047c13c0] reference picture missing during reorder
Last message repeated 1 times
[h264 @ 00000000047c13c0] Missing reference picture, default is 65357
Last message repeated 1 times
[h264 @ 00000000047c13c0] mmco: unref short failure
Last message repeated 1 times
[rtp @ 0000000004769580] PES packet size mismatch
[h264 @ 00000000047c13c0] Found reference and non-reference fields in the same f
rame, which is not implemented. Update your FFmpeg version to the newest one fro
m Git. If the problem still occurs, it means that your file has a feature which
has not been implemented.
[h264 @ 00000000047c13c0] If you want to help, upload a sample of this file to f
tp://upload.ffmpeg.org/incoming/ and contact the ffmpeg-devel mailing list. (ffm
peg-devel@ffmpeg.org)
[h264 @ 00000000047c13c0] decode_slice_header error
[rtp @ 0000000004769580] PES packet size mismatch
Last message repeated 1 times
[h264 @ 00000000047c13c0] reference picture missing during reorder
Last message repeated 1 times
[h264 @ 00000000047c13c0] Missing reference picture, default is 65369
Last message repeated 1 times
[h264 @ 00000000047c13c0] mmco: unref short failure
Last message repeated 1 times
RTP: missed 83 packets
[rtp @ 0000000004769580] PES packet size mismatch
Last message repeated 1 times
[h264 @ 00000000047c13c0] reference picture missing during reorder
Last message repeated 1 times
[h264 @ 00000000047c13c0] Missing reference picture, default is 65381
Last message repeated 1 times
[rtp @ 0000000004769580] PES packet size mismatch
Last message repeated 1 times
Input #0, rtp, from 'rtp://239.255.2.1:2231':
Duration: N/A, start: 15166.536578, bitrate: N/A
Program 1
Stream #0:1: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709)
, 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 50 tbr, 90k tbn, 50 tbc
Stream #0:2(pol): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p
, 160 kb/s
Stream #0:0(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:4(pol): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)
Stream #0:5(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, 25 fps, 50 tbr, 90k tbn, 25 tbc
Stream mapping:
Stream #0:1 -> #0:0 (copy)
Press [q] to stop, [?] for help
RTP: missed 20 packets
RTP: missed 43 packets
[rtp @ 0000000004769580] PES packet size mismatch
RTP: missed 8 packets
RTP: missed 990 packets
[rtp @ 0000000004769580] PES packet size mismatch
Last message repeated 1 times
RTP: missed 67 packets
frame= 47 fps=0.0 q=-1.0 size= 524kB time=00:00:06.04 bitrate= 711.2kbits/
frame= 72 fps= 65 q=-1.0 size= 753kB time=00:00:06.54 bitrate= 943.6kbits/
RTP: missed 1 packets
frame= 125 fps= 70 q=-1.0 size= 1098kB time=00:00:07.60 bitrate=1183.8kbits/
frame= 160 fps= 65 q=-1.0 size= 1404kB time=00:00:08.30 bitrate=1386.2kbits/
frame= 190 fps= 61 q=-1.0 size= 1704kB time=00:00:08.90 bitrate=1568.7kbits/
RTP: missed 6 packets
RTP: missed 1 packets
RTP: missed 3 packets
RTP: missed 1 packets
Last message repeated 1 times
frame= 215 fps= 56 q=-1.0 size= 1934kB time=00:00:09.42 bitrate=1681.5kbits/
RTP: missed 65 packets
frame= 242 fps= 54 q=-1.0 size= 2155kB time=00:00:10.16 bitrate=1737.3kbits/
frame= 274 fps= 53 q=-1.0 size= 2443kB time=00:00:10.80 bitrate=1852.8kbits/
RTP: missed 16 packets
frame= 301 fps= 52 q=-1.0 size= 2721kB time=00:00:11.38 bitrate=1958.8kbits/
RTP: missed 2 packets
RTP: missed 6 packets
RTP: missed 16 packets
RTP: missed 7 packets
RTP: missed 4 packets
frame= 332 fps= 51 q=-1.0 size= 3050kB time=00:00:12.08 bitrate=2068.1kbits/
frame= 372 fps= 52 q=-1.0 size= 3281kB time=00:00:12.88 bitrate=2086.9kbits/
RTP: missed 4 packets
RTP: missed 2 packets
RTP: missed 3 packets
frame= 404 fps= 51 q=-1.0 size= 3546kB time=00:00:13.58 bitrate=2139.0kbits/
frame= 439 fps= 52 q=-1.0 size= 3811kB time=00:00:14.28 bitrate=2186.3kbits/
frame= 465 fps= 51 q=-1.0 size= 4091kB time=00:00:14.80 bitrate=2264.6kbits/
frame= 489 fps= 50 q=-1.0 size= 4358kB time=00:00:15.28 bitrate=2336.3kbits/
frame= 521 fps= 49 q=-1.0 size= 4650kB time=00:00:15.92 bitrate=2392.6kbits/
RTP: missed 3 packets
RTP: missed 6 packets
RTP: missed 3 packets
Last message repeated 2 times
RTP: missed 2 packets
frame= 561 fps= 50 q=-1.0 size= 4957kB time=00:00:16.78 bitrate=2419.8kbits/
frame= 575 fps= 50 q=-1.0 Lsize= 5121kB time=00:00:17.06 bitrate=2458.9kbits
/s
video:4685kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing
overhead: 9.290046%

C:\tmp>cmd.exe
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\tmp>
ptoki
 
Posts: 3
Joined: Wed Feb 11, 2015 7:31 am

Re: RTP: missing X packets - I need some help :)

Postby diabloss » Thu Feb 12, 2015 5:23 pm

Using Moi Pro as transcoder is not the best option.
The main pourpose of Moi Pro is to use it as multiplexer and maybe some softcam decoding.

The best advice is to get unicast mode the unscrambled channels from Moi Pro to another pc / server and to process on that server the transcoding and re-streaming optimised stream further.

Ffmpeg on the other hand is well known as being very buggy , i'd recommend you to use VLC.
diabloss
 
Posts: 147
Joined: Thu Nov 22, 2012 2:51 am

Re: RTP: missing X packets - I need some help :)

Postby ptoki » Fri Feb 13, 2015 1:51 am

Thanks for sharing info.
We will try to do some hardware components swapping but we are stuck with ffmpeg and have to deal with its problems...
ptoki
 
Posts: 3
Joined: Wed Feb 11, 2015 7:31 am

Re: RTP: missing X packets - I need some help :)

Postby vlatko175 » Mon Nov 16, 2015 8:13 am

Does anyone know how to tell us how to solve the problem !!!

helloooooo TBS alloooooo ???
vlatko175
 
Posts: 1
Joined: Mon Jan 26, 2015 9:48 am

Re: RTP: missing X packets - I need some help :)

Postby developer » Mon Feb 08, 2016 3:27 am

We have complained so many times.. We cant stream the streams to server. but no one is fixing it..
May be its not useful for rtmp streams.
developer
 
Posts: 29
Joined: Mon Dec 22, 2014 9:57 pm


Return to MOI Pro

Who is online

Users browsing this forum: No registered users and 19 guests