Setup SHOUTcast Radio server on Linux

Download and install SHOUTcast DNAS server software Create new user for running SHOUTCast: # useradd shoutcast Download Shoutcast DNAS package: http://download.nullsoft.com/shoutcast/tools/ # wget http://download.nullsoft.com/shoutcast/tools/sc_serv2_linux_x64-latest.tar.gz Extract SHOUTcast files: # mkdir sc # tar -xvf sc_serv2_linux_x64-latest.tar.gz -C sc Change the ownership from root to the SHOUTcast user: # chown -R shoutcast:shoutcast sc Configuring SHOUTcast Server # cd … 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

Importing data from non-wordpress mysql database

You have to create an import php file to get the Questions/Answers from a non-wordpress database and bring them into posts in wordpress. Question Table <?php /// non-wordpress database connection string here require(‘./wp-load.php’); $results = mysql_query(“SELECT * FROM questions”); while ($row = mysql_fetch_assoc($results)) {     $post_information = array( ‘post_title’ => wp_strip_all_tags( $row[‘question’] ), ‘post_content’ => $row[‘answer’], … Read more