Wowza Live Cam Secure Expired Token

Wowza Live Cam Secure Expired Token
Wowza Live Cam Secure Expired Token

wowza-live-cam-secure-expired-token.php
// Encrypt original stream URL http://wowza-server:port/stream/playlist.m3u8
$base64ized = encryptDecrypt($secret_key, $streamURL, 0);

// Decrypt stream URL
$streamURL = encryptDecrypt($secret_key, $base64ized, 1);

stream.php

// Expire stream URL after time interval & check secure token
if (($current – $timestamp) <= $expired && ($checkhash == $hash)) { include("m3u8.php"); } m3u8.php

header(“content-type: application/vnd.apple.mpegurl”);
echo file_get_contents(“http://wowza-server:port/stream/playlist.m3u8”);

Wowza Live Audio Video Mixing

Wowza doesn’t do transcoding. So, we highly recommend to use FOSS solutions

Where we need Wowza Live Audio Video Mixing?

1) Live event is broadcasting through Wowza
2) We need a multi lingual setup somewhere and comment or transcode that live event with voice.
3) Flash client might receive the stream where
Output Video Stream = Video of live event + Audio transcoder (multi lingual human voice)

Modern IP cameras provide RTP/RTSP/RTMP with MPEG, MPEG4 or h.264 encoded stream for broadcasting through Wowza.

We might need a RTP/RTSP/RTMP client to decoder and manipulate streams then re-encode stream and serve it over standard protocol like RTP/RTSP/RTMP.

Best Solution should use Xuggler to serve streams to Flash. Media Server might be Wowza or Red5.

Xuggler is the easy way to uncompress, modify, and re-compress any media file (or stream) from Java.

Xuggler in Action: A free open-source library for Java developers to uncompress, manipulate, and compress recorded or live video in real time.

 

Mixing audio and video with ffmpeg

Mixing audio with video file without audio track
# ffmpeg -i audio-file.mp3 -i video-file.avi -acodec copy -vcodec copy output-file.avi

Mixing audio with video file with existing audio track.
# ffmpeg -i audio-file.mp3 -i video-with-audio.avi -acodec copy -vcodec copy output-file.avi -map 0.0 -map 1.0

-map -> the output file would contain two streams audio and video.

Contact us for Live Audio Video Mixing.

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

HTML5 MP3 Lyrics Player

HTML5 Lyrics Karaoke Player Plugin enable wordpress users to sing and play song text lyrics.

Free Features

  • Supports MP3 formats
  • Supports Text Song Lyrics
  • Social Links Facebook / Twitter
  • Works in IE, Safari, Firefox, Chrome, Opera
  • Player have shortcode for post/page [html5lyrics id=ID] i.e. [html5lyrics id=1]

Paid Features

  • Supports MP3 formats
  • Supports Text Song Lyrics
  • Support Images on song’s cue points
  • Color / Size Customization
  • Supports Unicode
  • Social Link Customization
  • Multiple player on same page / post
  • Works in IE, Safari, Firefox, Chrome, Opera, mobile devices including Android/iOS
  • Supports Wowza / Amazon Cloud Front / S3 HTTP Streaming
  • Facebook page customization with player
  • Player have shortcode for post/page [html5lyrics id=ID … ] i.e. [html5lyrics id=1 … ]
  • Best support on email / skype

Note: It uses native <audio> where available and an invisible flash player to emulate <audio> for other browsers.
It provides a consistent html player UI to all browsers which can be styled used standard css.

Browser & format support

With Flash as a fallback, it should work pretty much anywhere.

It has been verified to work across:

– Mobile Safari (iOS 3+)
– Android (2.2+, w/Flash), Android (4.0+)
– Safari (4+)
– Chrome (7+)
– Firefox (3+, w/ Flash)
– Opera (10+, w/ Flash)
– IE (6, 7, 8, w/ Flash)

Get fully customized HTML5 Lyrics Karaoke Player for Website Buy Now or Contact Us

Standalone

Credit

Audio.js Player

HTML5 Audio Read-Along

Install rtmpdump in CentOS

I was compiling FFmpeg with RTMP support, but it requires librtmp >= 2.2.f

[root@svnlabs ffmpeg]# ./configure –enable-gpl –enable-nonfree –enable-libmp3lame –enable-libfaac –enable-librtmp –enable-libtheora –enable-libvorbis –enable-libx264 –enable-shared –enable-postproc –disable-yasm
Package librtmp was not found in the pkg-config search path.
Perhaps you should add the directory containing `librtmp.pc’
to the PKG_CONFIG_PATH environment variable
No package ‘librtmp’ found
ERROR: librtmp not found or RTMP_Socket() missing, librtmp version must be >= 2.2.f

If you think configure made a mistake, make sure you are using the latest
version from SVN. If the latest version fails, report the problem to the
ffmpeg-user@mplayerhq.hu mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file “config.log” produced by configure as this will help
solving the problem.
  
[root@svnlabs ffmpeg]# rtmpdump -v
RTMPDump v2.2e
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
ERROR: You must specify a hostname (–host) or url (-r “rtmp://host[:port]/playpath”) containing a hostname

Compiling latest rtmpdump-2.3.tgz

[root@svnlabs rtmpdump-2.3]# yum install openssl-devel

[root@svnlabs rtmpdump-2.3]# wget http://rtmpdump.mplayerhq.hu/download/rtmpdump-2.3.tgz

[root@svnlabs rtmpdump-2.3]# tar xvf rtmpdump-2.3.tgz

[root@svnlabs rtmpdump-2.3]# cd rtmpdump-2.3
[root@svnlabs rtmpdump-2.3]# make
[root@svnlabs rtmpdump-2.3]# make install

Latest rtmpdump successfully installed…

[root@svnlabs rtmpdump-2.3]# rtmpdump
RTMPDump v2.3
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
ERROR: You must specify a hostname (–host) or url (-r “rtmp://host[:port]/playpath”) containing a hostname
 
 
[root@svnlabs rtmpdump-2.3]# whereis librtmp
librtmp: /usr/local/lib/librtmp.a /usr/local/lib/librtmp.so

If You still have issue … you can try magic path command 😉

# export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig

 

How to check RTMP source stream is live or not?

 

Compare Flash Media Server, Wowza and Red5

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)

How to play wowza live video on ipad

Install Wowza Examples

Take care for common problems:

Do you have the Application.xml in the right place?
[wowza-install-dir]/conf/[appName]/Application.xml

Server URL: rtmp://[wowza-address]/live
Stream Name: livestream

Which format need to broadcast from FMLE?
For iOS streaming, you’ll need h.264 baseline profile 3.0 on the video side and AAC on the audio side.

what is playlist.m3u8?
With Wowza cupertinostreaming…
http://[wowza-address]:1935/live/livestream/playlist.m3u8

Sample Code with HTML5 JWPlayer Support

<script type="text/javascript" src="jwplayer.js"></script> 

<div id='mediaplayer'></div>

<script type="text/javascript">  

jwplayer('mediaplayer').setup({
    'id': 'playerID',    'width': '623',    'height': '365',
    'provider': 'rtmp',  
    'streamer': 'rtmp://[wowza-address]/live',
    'autostart': 'true',
    'stretching': 'exactfit',  

    levels: [{
              bitrate: "500",
              file: "livestream",
              width: "800"
              }, {
              bitrate: "800",
              file: "livestream",
              width: "1280"
              }],   
               
    'modes': [
         {type: 'flash', src: 'player.swf'},
         {
          type: 'html5',
          config: {
           levels: [ {'file': 'http://[wowza-address]:1935/live/livestream/playlist.m3u8'} ],
           'provider': 'video'
          }
        }
    ]
  });
 
</script>

To play using Adobe Flash player (RTMP)

Server: rtmp://[wowza-address]/vod
Stream: mp4:sample.mp4

To play using RTSP/RTP player or device
rtsp://[wowza-address]:1935/vod/mp4:sample.mp4

To play using an Apple iDevice (Cupertino/Apple HTTP Live Streaming)

http://[wowza-address]:1935/vod/mp4:sample.mp4/playlist.m3u8

How to set up live streaming using an RTMP based encoder

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

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 😉

Install Wowza Examples

Wowza Media Server 3 have 2 option to install
* Developer Edition (up to 10 Connections) license and all free premium AddOns.
* Paid

Wowza Server Install
# yum install sun-java6-jre sun-java6-plugin
# wget http://www.wowza.com/downloads/WowzaMediaServer-3-0-4/WowzaMediaServer-3.0.4.rpm.bin
# chmod +x WowzaMediaServer-3.0.4.rpm.bin
# ./WowzaMediaServer-3.0.4.rpm.bin

Wowza Location
/usr/local/WowzaMediaServer-3.0.4

Enter License
# cd /usr/local/WowzaMediaServer-3.0.4/bin
# chmod +x startup.sh
# ./startup.sh

Install SimpleVideoStreaming

# cd /usr/local/WowzaMediaServer-3.0.4/examples/SimpleVideoStreaming
# chmod +x install.sh
# ./install.sh

Install TextChat
# cd /usr/local/WowzaMediaServer-3.0.4/examples/TextChat
# chmod +x install.sh
# ./install.sh

Install the Wowza Examples
# cd /usr/local/WowzaMediaServer-3.0.4/examples
# chmod +x installall.sh
# ./installall.sh

Wowza Server Commands
# service WowzaMediaServer status
# service WowzaMediaServer start
# service WowzaMediaServer restart
# service WowzaMediaServer stop

Upload Client to Web Server

Uninstall Wowza
# rpm –e WowzaMediaServer-3.0.4

VideoWhisper in Drupal

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 😉

Webisode

The webisode is simply a web episode, this is a new medium called web television that stream live broadcast, dramas, serial storyline, media events online over the Internet

The webisode is web episode especially viewed at a Web site for TV show have been telecast.

Technologies Used

* HTTP
* RSS/JSON
* RTSP/RTMP
* SMIL
* WTVML
* ASX
* MMS

Streaming Audio/Video formats

* Adobe Flash – MP3, FLV, MP4
* Microsoft Media – Silverlight, ASF, ASX, WAX, WMA, WMV
* RealNetworks – RM, RAM, RA, SMIL
* Apple QuickTime Audio/Video streams
* Shoutcast/Icecast – MP3, AAC, OGG
* MoveNetworks MoveMediaPlayer

CDN Used

* Amazon S3 CloudFront
* Google
* YouTube
* MaxCDN
* Rackspace CDN
* EdgeCast
* Flickr
* Akamai
* StreamGuys

Servers Used

* Wowza
* Adobe
* Red5
* SHOUTCast
* Windows Media Server

Clients Used

* Adobe – Flash Media Live Encoder
* Windows Media Encoder
* VLC Player
* SMPlayer
* SAMCast

Streaming Tools

* MPlayer
* FFmpeg
* RTMPDump
* VLC
* Flash Media Players
* HTML5

CMS Used

* Kaltura
* VidZapper

A webcast is a media streaming technology to distribute single media content source to many simultaneous listeners/viewers. The webcast might be distributed live or on demand. Webcasting is “broadcasting” over the Internet.

https://www.svnlabs.com/services/media-streaming

 

There are only two ways to live your life

Tolerate things the way they are…… Or take responsibility to change them.