phpMyStream


Hits: 4662  

phpMyStream is media re-stream panel, it use FFmpeg & rtmpdump linux utilities to take source as input then publish to other server like Red5 or Wowza.

phpMyStream

phpMyStream Server Requirement

– Web Server With Apache, PHP, MySQL
– RTMPDump
– FFmpeg
– RTMP Server (Wowza, Red5, Nginx)

phpMyStream-add-stream

RTMPDump Help

FFmpeg Help

phpMyStream-settings

Make Server for phpMyStream

Install rtmpdump
# yum install gcc
# yum install openssl-devel
# wget http://rtmpdump.mplayerhq.hu/download/rtmpdump-2.2e.tar.gz
# tar xvf rtmpdump-2.2e.tar.gz
# cd rtmpdump-2.2e
# make & make install

Install FFmpeg
# yum install ffmpeg ffmpeg-devel ffmpeg-libpostproc opencore-amr

Re-Stream Commands

# rtmpdump –live -r “[Source-Input-RTMP]” -p “http://domain.tv/” -W “http://static.domain.tv/player.swf” -q | ffmpeg -i – -re -isync -acodec copy -vcodec copy -f flv “[Destination-Output-RTMP]”

# rtmpdump -r “[Source-Input-RTMP]” -p “http://www.domain.co/” -T “[Token]” -o- | ffmpeg -re -i – -isync -acodec copy -vcodec copy -f flv “[Destination-Output-RTMP]”

# ffmpeg -re -i “[Source-Input-RTMP]” -y -vcodec libx264 -acodec aac -strict -2 -ar 44100 -f flv “[Destination-Output-RTMP]”

phpMyStream set scheduled task (per minute) to process every stream that need restreaming…

* * * * * curl -s -o /dev/null http://Server-IP/phpMyStream/cron.php

Install Wowza Media Server for Google Compute Engine


Hits: 4093  

Hope you really enjoyed our articles about Google Compute Engine..

Install Apache, PHP, MySQL on Google Compute Engine

Build your business on Google Cloud Platform

Install Red5 on Google Compute Engine

First you need to install Google Cloud platform command-line tools https://developers.google.com/compute/docs/gcutil

$ wget https://code.google.com/p/google-compute-engine-tools/downloads/detail?name=gcutil-1.9.0.tar.gz
$ sudo apt-get install unzip

$ export PATH=${PATH}:$HOME/gcutil-1.9.1
$ sudo ln -s /usr/local/share/gcutil-1.9.1/gcutil /usr/local/bin/gcutil

Then make sure you have Ports used for Wowza streaming
http://www.wowza.com/forums/content.php?217#openPorts

TCP 1935: RTMP (all variants)
TCP 8084-8085: JMX/JConsole monitoring and administration
TCP 8086: HTTP administration
TCP 80: Apple HTTP Live Streaming (Apple HLS), Adobe HTTP Dynamic Streaming (Adobe HDS), Microsoft Smooth Streaming, MPEG-DASH streaming, RTMPT
TCP 443: RTMPS, HTTPS
TCP 554: RTSP

$ gcutil addfirewall red5 –description=”Let open port 5080.” –allowed=”tcp:5080″
$ gcutil addfirewall rtsp –description=”Let open 554 rtmp port.” –allowed=”tcp:554″
$ gcutil addfirewall rtmp –description=”Let open 1935 rtmp port.” –allowed=”tcp:1935″
$ gcutil addfirewall http2 –description=”Let open port 5080.” –allowed=”tcp:8086″
$ gcutil getfirewall

Check Java Version or Install

$ sudo apt-get update
$ sudo apt-get install java-package
$ sudo apt-get install openjdk-6-jdk
$ sudo apt-get install openjdk-6-jre

Now read Install Wowza Examples

Download Wowza and install examples

$ wget http://www.wowza.com/downloads/WowzaMediaServer-3-6-2/WowzaMediaServer-3.6.2.deb.bin
$ chmod +x WowzaMediaServer-3.6.2.deb.bin
$ ./WowzaMediaServer-3.6.2.deb.bin
$ cd /usr/local/WowzaMediaServer/bin
$ sudo ./startup.sh
$ cd /usr/local/WowzaMediaServer-3.6.2/examples
$ sudo chmod +x installall.sh
$ sudo ./installall.sh

$ sudo service WowzaMediaServer start

Please check Wowza Forum for more help…
http://www.wowza.com/forums/content.php?560-How-to-set-up-Wowza-for-Google-Compute-Engine

Compare Flash Media Server, Wowza and Red5


Hits: 10022  
Feature Flash Media Server Wowza Media Server Red5
Protocols RTMP

RTMPT

RTMPS

RTMPE

RTMPTE

RTMFP

RTMP

RTMPT

RTMPS

RTMPE

RTMPTE

RTMP

RTMPT

RTMPS

RTMPE

RTMPTE

Pricing Find here Find here Free (Open Source)
Platforms Microsoft® Windows Server® 2003 with Service Pack 2 or Windows Server 2008

Linux® Red Hat® 4 or 5.2

Runs as a 32-bit software on both 32- and 64-bit operating systems.

Windows

Mac OS X

Linux

Solaris

Unix

64-bit Support on all

IPv6 Support

Windows

Debian/Ubuntu

Mac OSX

WAR

Gentoo

Action Method Format 3 (AMF3) AMF3(Uni-directional ) AMF3(Bi-directional ) AMF3
Live and On-demand Audio / Video Streaming FLV

H.264

FLV

MP3

AAC, LC-AAC, HE-AAC

Speex

FLV

H.264

FLV

MP3

AAC, LC-AAC, HE-AAC

Speex

(On Demand)

FLV

MP3

F4V

MP4

AAC

M4A

(Live)

Sorenson

VP6

h.264

Nelly Moser

MP3

Speex

AAC

NSV

Server Side AS2 Java Java
Multi Client/ Multi Protocol Streaming Flash (RTMP / HTTP)

iPhone/iPad (HTTP Streaming)

Flash (RTMP)

iPhone/iPad (HTTP Streaming)

Silverlight (Smooth Streaming)

QucikTime/3GPP (RTSP/RTP)

IPTV (MPEG-TS)

Flash (RTMP)
Recording H.264/AAC to FLV container

MPEG-4

H.264/AAC to FLV container

H.264/AAC to MP4 (Quicktime) container

FLV Only
Inbound Live Encoder Support RTMP (Flash & H.264/AAC) RTMP (Flash & H.264/AAC)

RTSP / RTP / MPEG-TS

(H.264/AAC: unicast, multicast, TCP, UDP)

ICY (MP3/AAC: SHOUTcast/ icecast)

Bind failed, try again ([any]:1935): java.net.BindException: Address already in use


Hits: 9229  

Hi Friends,

Hope you already read our wowza articles

Install Wowza Examples

Wowza MediaSecurity AddOn Package

Compile or build flowplayer or jwplayer to create secure token for wowza server

I got the following errors when I reinstall the latest version of Wowza

WARN vhost comment _defaultVHost_ Bind failed, try again ([any]:1935): java.net.BindException: Address already in use

Solution:

You need to check whether system service already running for java, wowza ports somewhere else. Try rebooting the server.

# shutdown -r now

Then after reboot execute the command:
# ps -ef
# ps -ef | grep java

Stop running java processes for Wowza Media Server. Restart is great idea to come out of trouble 😉

VideoWhisper in Drupal


Hits: 7190  

VideoWhisper.com provides web based video communication software that can be installed and integrated on virtually any type of website.

VideoWhisper Live Streaming Integration in Drupal

VideoWhisper Live Streaming provides web based live video streaming:
http://www.videowhisper.com/?p=Drupal+Live+Streaming+Module

Before installing this make sure all hosting requirements are met:
http://www.videowhisper.com/?p=Requirements

Install the RTMP application using these instructions:
http://www.videowhisper.com/?p=RTMP+Applications

Server Support for VideoWhisper

* Flash Media Interactive Server
* Red5 – Open Source Server
* Wowza Media Server

Install Red5 1.0 RC1 on CentOS Latest

Install RTMP server for Video Whisper

# cd /usr/local/red5/webapps
# wget http://www.videowhisper.com/downloads/videowhisper_red5.zip
# unzip videowhisper_red5.zip
# service red5 restart

Get Wowza Independent Consultant

Important Links for Drupal Video Live Stream Plugin

http://www.domain.com/vls/channel.php
http://www.domain.com/vls/channel.php?n=Studio245
http://www.domain.com/vls/live_broadcast.php

You need a cookie enabled browser!

Debug Video Whisper

This tries to connect to a VideoWhisper application located at the rtmp address provided. The domain that hosts this needs to have access permissions on that RTMP server.

http://www.domain.com/demos/admin/vw_connectiontester.html

Video Whisper Drupal Video Live Stream Plugin uses COOKIES for user authentications, Alternately supply User Information if you get cookie’s error 😉

Wowza MediaSecurity AddOn Package


Hits: 6694  

The MediaSecurity AddOn Package includes options and procedures for securing Wowza Media Server and the media you plan to stream through Wowza Media Server. There are several Wowza Media Server features that are needed to properly secure your content.

1. SecureToken
2. RTMP authentication
3. RTSP authentication
4. StreamNameAlias
5. secure streaming (RTMPE, RTMPTE and RTMPS).

MediaSecurity AddOn Package for Wowza Media Server 2 or greater:
MediaSecurity_2.0.zip

Some basic steps to setup SecureToken for wowza:

1. Download the MediaSecurity Addon package “MediaSecurity_2.0.zip” and copy the wms-plugin-security.jar & wms-plugin-security-encryption.jar from the package/lib folder to the [wowza-install]/lib folder, then restart Wowza Server.

2. Edit the new Application.xml. Add the following Module to the bottom of the Modules list, but make sure it is above the closing tag.

<Module>
<Name>ModuleSecureToken</Name>
<Description>ModuleSecureToken</Description>
<Class>com.wowza.wms.plugin.security.ModuleSecureToken</Class>
</Module>

3. Add the following Property to the Properties list at the bottom of the Application.xml.

<Property>
<Name>secureTokenSharedSecret</Name>
<Value>#ed%h0#w@1</Value>
</Property>

4. Start Wowza Server

Contact us to add SecureToken protection to JWPlayer and FlowPlayer for Wowza, Red5, FMS media files.

Email: svnlabs[at]gmail.com
Mobile: +919928673578
Skype: svnlabs
MSN: svnlabs[at]hotmail.com

How to check RTMP source stream is live or not?


Hits: 21618  
RTMP Source Check RTMP Source RTMP Live Stream

Dear Friends,
You can check RTMP Source is live or not using socket programming, but that will not give you exact output. Today I have tried Linux utility “rtmpdump” to test & check RTMP Source it produced quite interesting results on command line….

# rtmpdump -v -r rtmp://giraldatvlivefs.fplive.net/giraldatvlive-live/stream001 -o /tmp/rtmp-checker.log

RTMP Output
<?php

/* 
 * 
 * RTMPChecker - by S V N L A B S () (blog.svnlabs.com)
 * You can use and modify this code as long as the above reference to me still exists 😉
 * 
 */

if(isset($_REQUEST['stream']) && $_REQUEST['stream']!="")
{

  exec("/usr/bin/rtmpdump -V  -v -r '".$_REQUEST['stream']."' -o /tmp/rtmp-checker.log 2>&1", $pp);
  echo implode("<br>", $pp);

}


?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Check RTMP is live or not?</title>
</head>
<body>

<form name="rtmp" action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
<input type="text" name="stream" value="rtmp://164.100.49.14:80/live/dd2" /><br />
<input type="submit" name="check" value="check" />
</form>

</body>
</html>

Output may be…

Night is longer than day for those who dream & Day is longer than nights for those who MAKE their DREAMS come true…