Bottle: Python Web Framework

I really like Bottle: Python Web Framework. Bottle is very simple, fast and powerful Python micro-framework. It is perfect for small web applications and rapid prototyping where you need simple/small API server. Bottle is a fast, simple and lightweight WSGI micro web-framework for Python. Installation Install Bottle with pip install bottle or download the source … Read more

FFMPEG make Video Lyrics using JPG MP3 SRT File

FFMPEG make Video Lyrics using JPG MP3 SRT File Input Files – Image (test.jpg) – MP3 File (test.mp3) – SRT Lyrics (test.srt) FFMPEG Command # ffmpeg -loop 1 -y -i test.jpg -i test.mp3 -vf subtitles=”f=test.srt:force_style=’FontName=Arial,FontSize=14″ -shortest test1.mp4 Output File: test1.mp4 SRT Lyrics Preview 1 00:00:00,330 –> 00:00:04,936 Hello Feifei. I didn’t know you shopped at … Read more

How to add MP3 audio delayed in MP4 video?

FFMPEG Command: Add MP3 Audio file delayed in MP4 video file # ffmpeg.exe -i “fox-story.mp4” -itsoffset 5.00 -i “fox-story.mp3” -map 0:v -map 1:a -vcodec copy -acodec copy “The Fox and Crow Story.mp4” Input: fox-story.mp4 and fox-story.mp3 Output: The Fox and Crow Story.mp4 -itsoffset 5.00 -i “movie.mp3” Offsets timestamps of audio streams by 5.00 seconds -map … Read more

Song Lyrics: lrc2srt and srt2json

LRC2SRT.php <?php function lrc2srt( $lrc ) { $lrc = explode( “\n”, $lrc ); $srt = “”; $lines = array(); foreach ( $lrc as $lrcl ) { if ( preg_match( “|\[(\d\d)\:(\d\d)\.(\d\d)\](.+)|”, $lrcl, $m ) ) { $lines[] = array( ‘time’ => “00:{$m[1]}:{$m[2]},{$m[3]}0”, // convert to SubRip-style time ‘lyrics’ => trim( $m[4] ) ); } } for … Read more

Select2Array

It’s easy to convert PHP Array to Select Dropdown Box… you need to loop for all element in array to display as dropdown. But may be you ever think for reverse process. Yes, it’s also easy! You need to scrape / crawl Select box HTML to get PHP Array back from HTML Select Box. Please … Read more

Shoutcast V2 aacPlus AAC+ Player

MP3 Radio Streams (Shoutcast/Icecast) are best for Radio Streaming with best bit-rate, but MP3 Streaming need license to broadcast source streams. Radio MP3 music globally play on all devices & platforms. MP3 live radio streaming easily work over HTML5/HTTP. Whereas AAC+ live radio streaming work on over RTMP. It need flash streaming via RTMP. Shoutcast … Read more

Radio Song Album Artwork Cover by YouTube

An album cover is the front / other side of the packaging of a commercially released audio recording product, or album. You can find online APIs or Websites where artwork available – Amazon – LastFM – Soundcloud – Apple iTune – Google Play – Gracenote – Free Music Archive And many more …. But YouTube … Read more

JSON2CSV – convert json files to csv

JSON2CSV is a python script that converts json data to a csv file. json2csv.py_.txt Download above text file “json2csv.py_.txt” then rename “json2csv.py” >> python json2csv.py “input.json” “output.csv” JSON – input.json [ { “createdAt”: “2014-02-20T18:15:56.818Z”, “fbID”: “34534534534”, “lessonQuestions”: 5, “lessonScore”: 2750, “lesson_no”: 2, “objectId”: “htmsuPr6F6”, “updatedAt”: “2014-02-22T15:42:38.166Z” }, { “createdAt”: “2014-02-21T16:45:52.550Z”, “fbID”: “100001132788807”, “lessonQuestions”: 5, “lessonScore”: … Read more

Install Centova Cast

Centova Cast is an internet radio stream hosting control panel. It is used for hosting radio streams and manage Radio Server like ShoutCast and IceCast. You can manage Auto DJ using Centova Cast v2 Auto DJ System plus Server Control Panel. System Requirements for Centova Cast: You can install it on any Linux-based servers. Operating … Read more

Secure Expired MP3 File

Secure Expired MP3 File can be used for hiding real mp3 link inside html source using base64_encode, mcrypt_encrypt, base64_decode, mcrypt_decrypt and md5. MP3 link will be expired in few seconds then it will return No Access Page to protect MP3 files to hot linked. I was working on Secured & Expired MP3 Link in HTML5 … Read more