Home/News | About | Download | Documentation | Forum | Bug Reports | Contact | Donations | Consulting | Projects | Legal | Security | FATE


RTP IPTV probe

Discussions about problems encountered using ffprobe.
Forum rules
FFmpeg is in a state of perpetual development and we do not currently have the person power to backport fixes to official releases. As such, if you wish to query or report a bug, you must try with the latest development branch revision of FFmpeg to confirm the issue still exists. The latest FFmpeg can be downloaded from here: http://www.ffmpeg.org/download.html

RTP IPTV probe

Postby iData » Thu Aug 25, 2016 1:37 pm

Hi mates,

I'm currently trying to create a script with those outputs to generate graphics :
- Number of RTP Packet loss ;
- Number of MpegTS / H264 images loss ;
- Image loss type : P | B | I ;
- Reorder problems ;
- JItter ;
- If there is a problem (RTP or MpegTS packet loss) save current frame into an image to see at time the problems ;
- DateTime when the problem apear;
- All others stats to get more infos for analysis.

The stream is an RTP (1000 packets/s, between 8M & 12M VBR) MpegTS H264 EAC3 :
Stream #0.0: Video: h264 (High), yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 26 fps, 25 tbr, 90k tbn, 50 tbc
Stream #0.1: Audio: eac3, 48000 Hz, stereo, s16, 128 kb/s

FFmpeg Version (last from git) :
ffprobe version 3.1.2 Copyright (c) 2007-2016 the FFmpeg developers
built with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
configuration: --prefix=/home/wibox/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/home/wibox/ffmpeg_build/include --extra-ldflags=-L/home/wibox/ffmpeg_build/lib --bindir=/home/wibox/bin --enable-gpl --enable-libass --enable-libfreetype --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree
libavutil 55. 28.100 / 55. 28.100
libavcodec 57. 48.101 / 57. 48.101
libavformat 57. 41.100 / 57. 41.100
libavdevice 57. 0.101 / 57. 0.101
libavfilter 6. 47.100 / 6. 47.100
libswscale 4. 1.100 / 4. 1.100
libswresample 2. 1.100 / 2. 1.100
libpostproc 54. 0.100 / 54. 0.100


My current command line :
Code: Select all
ffprobe -show_error -show_packets -show_frames -pretty -select_streams v -print_format json -show_format rtp://@XXX.XXX.XXX.XXX:XXXX > out.txt 2> err.txt


In out.txt, i've got all the packets & streams data :
Code: Select all
...
        }
            "type": "frame",
            "media_type": "video",
            "stream_index": 2,
            "key_frame": 0,
            "pkt_pts": 784994592,
            "pkt_pts_time": "2:25:22.162133",
            "pkt_dts": 784994592,
            "pkt_dts_time": "2:25:22.162133",
            "best_effort_timestamp": 784994592,
            "best_effort_timestamp_time": "2:25:22.162133",
            "pkt_duration": 3600,
            "pkt_duration_time": "0:00:00.040000",
            "pkt_pos": "-210",
            "pkt_size": "5.339844 Kibyte",
            "width": 1920,
            "height": 1080,
            "pix_fmt": "yuv420p",
            "sample_aspect_ratio": "1:1",
            "pict_type": "B",
            "coded_picture_number": 274,
            "display_picture_number": 0,
            "interlaced_frame": 1,
            "top_field_first": 1,
            "repeat_pict": 0
        },
        {
            "type": "packet",
            "codec_type": "video",
            "stream_index": 2,
            "pts": 785008992,
            "pts_time": "2:25:22.322133",
            "dts": 784998192,
            "dts_time": "2:25:22.202133",
            "duration": 3600,
            "duration_time": "0:00:00.040000",
            "size": "8.440430 Kibyte",
            "pos": "-210",
            "flags": "_"
        }
...


And in my err.txt, all the ffmpeg errors :
Code: Select all
[h264 @ 0x373b3a0] co located POCs unavailable
[h264 @ 0x373b3a0] reference picture missing during reorder
    Last message repeated 1 times
[h264 @ 0x373b3a0] Missing reference picture, default is 65470
    Last message repeated 1 times
[h264 @ 0x373b3a0] mmco: unref short failure
[h264 @ 0x373b3a0] concealing 4966 DC, 4966 AC, 4966 MV errors in B frame
[h264 @ 0x373b3a0] concealing 7875 DC, 7875 AC, 7875 MV errors in B frame
[h264 @ 0x373b3a0] Reference 3 >= 2
[h264 @ 0x373b3a0] error while decoding MB 18 4, bytestream 4645
[h264 @ 0x373b3a0] concealing 7711 DC, 7711 AC, 7711 MV errors in B frame
[h264 @ 0x373b3a0] reference picture missing during reorder
[h264 @ 0x373b3a0] Missing reference picture, default is 65518
[h264 @ 0x373b3a0] Reference 2 >= 2
[h264 @ 0x373b3a0] error while decoding MB 53 0, bytestream 50439
[h264 @ 0x373b3a0] concealing 8156 DC, 8156 AC, 8156 MV errors in P frame
[h264 @ 0x373b3a0] mmco: unref short failure
    Last message repeated 1 times
[rtp @ 0x318ebe0] max delay reached. need to consume packet
[rtp @ 0x318ebe0] RTP: missed 1271 packets
[rtp @ 0x318ebe0] PES packet size mismatch
[rtp @ 0x318ebe0] max delay reached. need to consume packet
[rtp @ 0x318ebe0] RTP: missed 4 packets
[rtp @ 0x318ebe0] max delay reached. need to consume packet
[rtp @ 0x318ebe0] RTP: missed 3 packets
[rtp @ 0x318ebe0] PES packet size mismatch
    Last message repeated 1 times
[h264 @ 0x373b3a0] concealing 5722 DC, 5722 AC, 5722 MV errors in I frame
[h264 @ 0x373b3a0] co located POCs unavailable
    Last message repeated 2 times
[h264 @ 0x373b3a0] reference picture missing during reorder
    Last message repeated 1 times
[h264 @ 0x373b3a0] Missing reference picture, default is 65902
    Last message repeated 1 times
[h264 @ 0x373b3a0] reference picture missing during reorder
[h264 @ 0x373b3a0] Missing reference picture, default is 65918
[h264 @ 0x373b3a0] mmco: unref short failure


--

1/ In err.txt I see some informations I need but I don't have the DateTime, is it possible to add easily (command line option ?).

2/ Is there a way to do an If statement for exemple : if there is RTP or MpegTS loss do an image & save it to HDD otherwise do nothing ?

3/ How I can calculate the jitter ?

4/ Is there an already existing solution ?


Thanks in advance.

---
DR.
iData
 
Posts: 1
Joined: Thu Aug 25, 2016 10:29 am

Return to ffprobe

Who is online

Users browsing this forum: No registered users and 1 guest