stat4u MDM-IT - News - MPEG inspector


IT Systems and Software Development

  • Increase font size
  • Default font size
  • Decrease font size

mpeginspector is small tool for analise mpeg's transport stream.

Install Pre-Requisites

Install (compile and install) ffmpeg from This software tested with 0.10.2 version of ffmpeg.


- Extract mpeginspector into a destination location:
cd /var/www/html/
mkdir mpeginspector
tar xvf mpeginspector-x.y.z.tar

- Edit  Set the following:
$ffprobe="/var/www/html/mpeginspector/bin/ffprobe";  #full path to ffprobe programm
$tmppath="/tmp/";                                    #tmp dir
$default_port="1234";                                #default multicast port
$default_protocol="udp";                             #default protocol

- Set permissions of "mpeginspector" directory the *apache* user can write and read it:
mkdir <path to>/mpeginspector
chown apache <path to>/mpeginspector
chmod 755 <path to>/mpeginspector

- Setup httpd.conf. Add line:
Alias /mpeginspector "/var/www/html/mpeginspector/"
Restart httpd.


- Add to routing table multicast net (for example access to multicast
route add -net netmask dev eth0

- Verify that mpeginspector is working by running (for example):

http://<your web site>/mpeginspector
Set multicast address, port and protocol and click "Check".

Optionally "mpeginspector"  can generate config file for Nagios.

In "" you have to setup:
$nagios_config_file_path ="/usr/local/nagios/etc/programy/";      #nagios config path. Warning: apache user have to permissions to write to this directory.
$unicast_ip_for_multicast='';                      #unicast address for host in Nagios config file

To generate Nagios config file you have to click link: "gen Nagios cfg file" in right window.

In Nagios edit "commnds.cfg" file and add:

define command{
command_name    check_stream
command_line    $USER1$/check_stream.php $ARG1$ $ARG2$ $ARG3$ $ARG4$

To Nagios "libexec" directory copy file "check_stream.php" from install directory.
Reload Nagios.



We have 28 guests online


Content View Hits : 56207