stat4u MDM-IT - News - MPEG inspector
 

MDM-IT

IT Systems and Software Development

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

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

Install Pre-Requisites
----------------------

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

Installation
------------------------------

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

- Edit config.inc.  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.

IMPORTANT !!

- Add to routing table multicast net (for example access to multicast 239.1.0.10):
route add -net 239.1.0.0 netmask 255.255.0.0 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 "config.inc" 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='192.168.200.180';                      #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.





 

Online

We have 17 guests online

Stat

Content View Hits : 55249