PHP Parse HLS M3U8 TS Links

Sometimes you have to grab HLS m3u8 files from external source, but those files are protected using domain lock. So somehow you need to grab m3u8 and ts files from master HLS link. I am providing you PHP HLS Parser to grab internal information of HLS streams. Input encoded-03-31-16-thu-jun-2017.m3u8 #EXTM3U #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=654000,RESOLUTION=568×320,CODECS=”avc1.4d0029,mp4a.40.2″ 1080p/encoded-03-31-16-thu-jun-2017.m3u8 #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=2849000,RESOLUTION=568×320,CODECS=”avc1.42001f,mp4a.40.2″ 720p/encoded-03-31-16-thu-jun-2017.m3u8 #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1033000,RESOLUTION=568×320,CODECS=”avc1.42001e,mp4a.40.2″ … Read more

Record Live Streaming Radio to MP3

Sometime you want to record Live Radio Stream to MP3 file, you can find many online linux tools for recording radio stream to server and then download to your local computer. You can use Linux “wget” or “curl” CURL # curl -sS -o stream.mp3 –max-time 150 http://Radio-Server:Port/stream Bitrate: 128 kb/s [it will make approx 2MB … Read more

Wowza Live Stream thumbnail images with HTTP Provider

To get thumbnail images from Wowza Transcoder with an HTTP Provider Wowza Media Server 3 or later is required. Config file to edit for Wowza Live Stream Thumbnails [wowza-install-dir]/conf/VHost.xml <HTTPProvider> <BaseClass>com.wowza.wms.transcoder.httpprovider.HTTPTranscoderThumbnail</BaseClass> <RequestFilters>transcoderthumbnail*</RequestFilters> <AuthenticationMethod>none</AuthenticationMethod> </HTTPProvider>   PHP code //No Authentication exec(‘curl “http://[wowza-ip-address]:8086/transcoderthumbnail?application=[application-name]&streamname=[stream-name]&format=[jpeg or png]&size=[widthxheight]”‘); //With Authentication exec(‘curl – -digest -u [wowza-admin-user]:[wowza-admin-password] “http://[wowza-ip-address]:8086/transcoderthumbnail?application=[application-name]&streamname=[stream-name]&format=[jpeg or png]&size=[widthxheight]”‘); [wowza-ip-address]: The … Read more

MistServer PHP API for Live Stream

MistServer is a highly versatile, lightweight, customizable open-source multi-standard multimedia server. MistServer configuration is easy to use for full CDN solutions applications. Hope you already read our article to Install MistServer MistServer API provides a Server API and a Management API. You can find MistServer PHP API Examples Here Note: Make sure port 4242 used … Read more

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)

Upload Large Files from Amazon S3 Bucket to Dropbox Folder

Dropbox Uploader is a BASH script (only needs cURL) which can be used to upload, download, list or delete files from Dropbox, an online file sharing, synchronization and backup service. Usage: ./dropbox_uploader.sh COMMAND [PARAMETERS]… Secure:It’s not required to provide your username/password to this script, because it uses the official Dropbox API for authentication process. START … Read more

Amazon S3 Error Handling

Amazon S3 PHP Class A standalone Amazon S3 (REST) client for PHP 5.2.x using CURL that does not require PEAR. AMAZON S3 (Scalable Storage in the Cloud) PHP CLASS // 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); … Read more

SponsorPay API in PHP

SponsorPay – International Leader in Engagement Marketing and Performance Advertising for the Monetization of Virtual Currency and Digital Content on Social Networks, Online Games, Virtual Worlds and Entertainment Platforms. Key Features: * Boost branding and engagement * Acquire users and improve engagement * Engage and monetize all your users * Drive customer acquisition and sales … Read more

Install cURL on Ubuntu

Run the following command to enable curl package php5-curl. $ sudo apt-get install php5-curl Reading package lists… Done Building dependency tree Reading state information… Done The following NEW packages will be installed: php5-curl 0 upgraded, 1 newly installed, 0 to remove and 17 not upgraded. Need to get 27.1kB of archives. After this operation, 127kB … Read more

PHP Download MP3 File by URL

PHP Download MP3 File by URL 1. WGET It will save files on web server then use php header for prompting to download file. 2. CURL CURL will not work efficiently for big files i.e. MP3, ZIP, MP4 etc. 3. file_get_contents() This will consume too much memory on server. It can first read remote URL … Read more