Amazon S3 Cloud HTML5 MP3 Player


Hits: 4722  

Amazon S3 Cloud HTML5 Player plugin that allows you to link to your amazon S3 bucket and sets up a HTML5 Player playlist (horizontal or vertical). This plugin will support MP3 files only.

Amazon S3 Cloud HTML5 MP3 Player is not associated in any way to amazon.com

Get Self Hosted Amazon S3 Cloud HTML5 MP3 Player for WordPress just in $24

You will need an amazon account to use this.

AWS access info

Add your amazon information amazon key and amazon secret key. Then just add the bucket to your account add folders.

Make sure you have public permission for all your music in your S3 buckets and folders.

Shortcode for Page or Post

[html5aws3mp3 player=”horizontal” bucket=”BUCKET” endpoint=”BUCKET-ENDPINT” folder=”FOLDER/”]

Plugin Page

Amazon S3 Error Handling

AWS CloudFront with PHP

Create sub buckets on amazon s3

Amazon S3 Cloud HTML5 MP3 Player is not associated in any way to amazon.com

Amazon S3 Error Handling


Hits: 6273  

Amazon S3 PHP Class A standalone Amazon S3 (REST) client for PHP 5.2.x using CURL that does not require PEAR.

AWS Management Console Home
AWS Management Console Home

AMAZON S3 (Scalable Storage in the Cloud) PHP CLASS

AWS access info
AWS access info

// AWS access info
if (!defined(‘awsAccessKey’)) define(‘awsAccessKey’, ‘CHANGE-KEY’);
if (!defined(‘awsSecretKey’)) define(‘awsSecretKey’, ‘CHANGE-KEY’);

OO method (e,g; $s3->getObject(…)):
$s3 = new S3(awsAccessKey, awsSecretKey);

Statically (e,g; S3::getObject(…)):
S3::setAuth(awsAccessKey, awsSecretKey);

Warning: S3::getBucket(): [PermanentRedirect] The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint.

We need to End Point for our S3 Buckets by default it’s s3.amazonaws.com

$s3 = new S3(awsAccessKey, awsSecretKey);

S3 Management Console
S3 Management Console

Else we need to specify here… s3-ap-southeast-1.amazonaws.com

S3 Management Console
S3 Management Console

$s3 = new S3(awsAccessKey, awsSecretKey, true, ‘s3-ap-southeast-1.amazonaws.com‘);

Warning: S3::getBucket(): [60] SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

We need SSL enabled with CURL 😉

OpenSSL phpinfo()
OpenSSL phpinfo()
CURL With OpenSSL phpinfo()
CURL With OpenSSL phpinfo()

For class documentation see:
http://undesigned.org.za/files/s3-class-documentation/index.html

Recover MySQL root Password


Hits: 3162  

1. Stop the MySQL server.

# /etc/init.d/mysql stop

2. Start the MySQL server process with the –skip-grant-tables option so that it will not prompt for password.

# mysqld_safe –skip-grant-tables &

3. Connect to mysql server as the root.

# mysql -u root

mysql password
mysql password

Welcome to the MySQL monitor….
………..
Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the buffer.
mysql>

4. Setup new mysql root account password i.e. reset mysql password.

mysql> use mysql;
mysql> update user set password=PASSWORD(“NEW-PASSWORD”) where User=’root’;
mysql> flush privileges;
mysql> quit

5. Exit and restart the MySQL server.

# /etc/init.d/mysql stop

6. Start MySQL server.

# /etc/init.d/mysql start
# mysql -u root -p

 

 

Install ImageMagick


Hits: 3344  

ImageMagick can be installed on Windows, Unix and Unix-like operating systems including Linux, Solaris, FreeBSD, Mac OS X, and others.

How to Install Imagemagick?
How to Install Imagemagick?

Note: Make sure you have installed GhostScript and FreeType already 😉
More help https://www.svnlabs.com/blogs/install-openmeetings/

Download & Unpack

# wget http://www.imagemagick.org/download/ImageMagick.tar.gz
# tar xvfz ImageMagick.tar.gz

Configure

# cd ImageMagick-6.8.0-4 (or current version)
# ./configure

Build

# make

Install

# make install

Commands

[root@svnlabs ImageMagick-6.8.0-4]# which convert
/usr/local/bin/convert

[root@svnlabs ImageMagick-6.8.0-4]# which display
/usr/local/bin/display

Use ImageMagick to convert, edit, or compose bitmap images in a variety of formats. In addition, resize, rotate, shear, distort or transform images automatically.

FFMpeg Video to Image Gallery


Hits: 2995  

1. FFMpeg create images using video source

# ffmpeg -i video.mp4 -s 560×315 images/image%d.jpg

2. Create image sequence gallery

<?php

$files = array();

foreach (glob("images/*.jpg") as $filename) {
$files[] = $filename;
}
natsort($files);

?>



<div id="slideshow">

<?php $i=1; foreach ($files as $filename) { 
if($i%15==0) { ?>
<img src="<?php echo $filename; ?>" <?php if($i==15) { ?> class="active" <?php } ?> />
<?php } $i++; } ?>

</div>

3. Synchronize images with video

$(function() {
    setInterval( "slideSwitch()", 1000 );
});

Demo for Image Sequence

Red5 Media Server iOS Android Setup


Hits: 11909  

Hope you already read our previous article “VOD to iOS” ?

 

How you can use Red5 Server for streaming to iPhone, iPads and Android?

S V N Labs Softwares implements an iOS/Android add-on setup for Red5 Server to stream both Flash, iOS and Android devices. This add-on also supports setup of JW Player, Flowplayer and HTML5 embed player using Red5 live and on-demand streams. We are expert in setting up Red5 applications and developing custom apps and plug-ins for Red5 and other media servers including Wowza, Flash Media Server, Union etc.

Red5 Recorder allows wordpress users to easily use Red5 Recorder Player on their website to record Video / Audio Streams.
Users can record their video response / review using embedable red5 recorder and after recording they can send video email to wordpress admin. Both user and admin will get email from Red5 Recorder system to get Red5 Recorded Video Streams.

Red5 includes support for the latest multi-user API’s including NetConnection, NetStream and SharedObject’s while providing a powerful RTMP / Servlet implementation. In addition to support for the RTMP protocol, the application server has an embedded Tomcat Servlet container for JEE Web Applications. Application development draws additional benefits from the Spring Framework and Scope based event driven services.

Open Source Red5 Media Server also help you for developing extensible platform that can be used in Video Conferences, Multi-User Gaming and Enterprise Application Software. S V N Labs Softwares are also expert in RED5 and most other media servers including Wowza, Flash Media Server, Union etc. and we can assist to set up transcoding, segmenting, and ipad/iphone/android server-side configuration.

Get more help for HTTP Live Video Stream Segmenter and Distributor Contact Us

Install rtmpdump in CentOS


Hits: 10196  

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?

 

Radio Stream Playlist


Hits: 4700  

Radio Live Streaming

 

HTML5 MP3 Player with Playlist

Windows Playlist: playlist.asx

<asx version = "3.0">
    <Title>Radio Title</Title>
    <Author>https://www.svnlabs.com</Author>
    <Copyright>SVN Labs</Copyright>
    <PARAM name="HTMLView" value="https://www.svnlabs.com" />
    <MoreInfo href="https://www.svnlabs.com" />
    <entry>
        <ref href="http://stream-ip:port/stream" />
        <Title>Radio Title</Title> 
        <Author>https://www.svnlabs.com</Author>
    </entry>
</asx>

 

Quicktime Playlist: playlist.qtl

<?xmlversion="1.0"?>
<?quicktime type="application/x-quicktime-media-link"?>
<embed src="icy://stream-ip:port/stream" autoplay="true" />

 

Winamp Playlist: playlist.pls


numberofentries=1
File1=http://stream-ip:port/stream
Title1=Radio Title
Length1=-1
version=2

 

Realmedia Playlist: playlist.ram

http://stream-ip:port/stream

Play Favorite Radio FM Stream in HTML5

HTML5 <audio> the element enable native audio playback within the browser. It supports all browsers i.e. Firefox, Chrome, Safari, IE and Opera.

HTML5 Player support Radio FM MP3 Streams from Icecast, Shoutcast, Wowza, Amazon S3 and other CDNs.. customize your radio playlist now.

Compare Flash Media Server, Wowza and Red5


Hits: 10173  
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)

Install ionCube Loader


Hits: 6495  

1. Download ionCube loaders

# wget http://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.gz

2. Extract

# tar zxvf ioncube_loaders_lin_x86.tar.gz

3. Move to /usr/local

# mv ioncube /usr/local/

4. Add reference to php.ini file

Depending on PHP version select ioncube_loader_lin_5.x.so and ioncube_loader_lin_5.x_ts.so files

# ls /usr/local/ioncube/
ioncube_loader_lin_4.1.so ioncube_loader_lin_4.4.so ioncube_loader_lin_5.1.so ioncube_loader_lin_5.3.so
ioncube_loader_lin_4.2.so ioncube_loader_lin_4.4_ts.so ioncube_loader_lin_5.1_ts.so ioncube_loader_lin_5.3_ts.so
ioncube_loader_lin_4.3.so ioncube_loader_lin_5.0.so ioncube_loader_lin_5.2.so ioncube_loader_lin_5.4.so
ioncube_loader_lin_4.3_ts.so ioncube_loader_lin_5.0_ts.so ioncube_loader_lin_5.2_ts.so ioncube_loader_lin_5.4_ts.so

# vi /etc/php.ini

zend_extension=/usr/local/ioncube/ioncube_loader_lin_5.3.so
zend_extension_ts=/usr/local/ioncube/ioncube_loader_lin_5.3_ts.so

5. Restart apache

# /etc/init.d/apache2 restart