YouTube APIs and Tools

Last update : January 30, 2013
The YouTube APIs and Tools let you bring the YouTube experience to your webpage, application, or device. The Data API lets you perform most of the operations a normal YouTube user can on the YouTube website. The Player APIs let you control the YouTube player using JavaScript or ActionScript. There is not only the wellknown standard basic embedded player, but also a chromeless player that lets you create your own player controls. Widgets and a custom player help you to embed YouTube videos on your webpage, even if you are not a web programmer.

Go to the following link at Leslie’s Artgallery to see an example of the customized embedded YouTube Player.

VLC Media Player

Last update : June 12, 2013

VLC  Media is the favorite media player for most people because it plays everything they throw at it without problems with the included codecs. VLC can do the following things (see contribution on Instant Fundas) :

  • Rip DVDs with the integrated basic DVD ripper
  • Record videos during playback (View>Advanced Control)
  • Download YouTube and other online videos by grabbing the URL of the YouTube video page (Media>Open Network stream). In the latest version (1.0.2 Goldeneye) you must replace “swfArgs” with “SWF_ARGS” in the youtube.lua file with a text editor to make the youtube videos running.
  • Play RAR files with zipped videos even if the RAR file is split into several files
  • Play in ASCII mode (Tools>Preferences>Video>Output>Color ASCII art video output)
  • Listen to online radio (Media>Services Discovery>Shoutcast radio listings)
  • Convert Audio and Video formats (Media>Convert/Save)
  • Enhance your player with new skins
  • Stream your Linux/Windows/Mac Desktop as video

VLC Media Player can not cut videos from the GUI, only with the command lines.

VLC Remote Control for iPhone

After 485 million downloads of VLC 1.1.x versions, VideoLAN and the VLC development team presented VLC 2.0.0 “Twoflower”, a major new release, on February 18, 2012. VideoLAN, a French non-profit organization, is a group of people, that produces and distributes free and open source software for video and multimedia purpose, released under Open Source licenses. It started as a student project at the French École Centrale Paris but is now a worldwide project with developers from everywhere and dozens of millions of people using VideoLAN’s software.

VLC is the official name of VideoLAN’s main product, often named VLC. VideoLAN Client is an ancient name of this product. VideoLAN Server (VLS) is an outdated streaming solution developed by a separate group of people.

The current version of VLC is 2.0.5. It supports now DLNA and works fine with the Serviio DLNA server (see contribution on the Serviio Forum). A remote control for the VLC player to run on iOS devices is available from Hobbyist Software. The log files are displayed in the Tools > Messages window if verbosity is set to the value 2 (debug).

With VLC, cuttingt videos is very easy. Launch VLC media player and activate advanced controls located under the view menu. You will see four extra buttons above the normal play/pause button. You will not cut the video, but rather record the segment using the built-in VLC recorder. First seek the position you want to start your recording with the frame by frame button, then press the record button and the play button. The background color of the record button will change to blue. Press the record button when you want to stop the recording. The clip will be automatically saved as an MP4 media file in your Videos folder in Windows. A prefix “vlc-record-date-time” is added to the name of the original videoclip.

Simple DB : Amazon database

Today I installed a simple database on the Amazon Webservices. Amazon SimpleDB is a web service providing the core database functions of data indexing and querying in the cloud. This service is available in Europe since a few weeks. This allows to achieve lower latency, operate closer to other resources like Amazon EC2, Amazon S3, and Amazon SQS in the EU Region, and help meet EU data storage requirements when applicable.

Simple DB is simple to use, low touch, scalable, highly available, fast, flexible, inexpensive and designed for use with other Amazon Web Services.

The prices are:

  • First 25 Amazon SimpleDB Machine Hours consumed per month are free
  • $0.154 per Amazon SimpleDB Machine Hour consumed thereafter
  • First 1 GB of data transferred in per month is free
  • $0.100 per GB – all data transfer in thereafter
  • First 1 GB of data transferred out per month is free; thereafter:
  • $0.170 per GB – first 10 TB / month data transfer out
  • $0.130 per GB – next 40 TB / month data transfer out
  • $0.110 per GB – next 100 TB / month data transfer out
  • $0.100 per GB – data transfer out / month over 150 TB

When using Amazon SimpleDB, you organize your structured data in domains within which you can put data, get data, or run queries. Domains consist of items which are described by attributename-value pairs. The spreadsheet model shown in the following image explains the structure:

Amazon Simple DB Data Model

Amazon Simple DB Data Model

Update your Twitter picture with Snapatar

Snapatar lets you update your Twitter profile picture using your webcam. Simply snap a picture, fill out your Twitter details and send the new image to Twitter. You can do this as often as you like. Your creativity is the limit.

Snapatar was designed by Roy Tanck, a free lance webdesigner, geek, entrepreneur and WordPress enthusiast from the Netherlands. He is the co-author of  the book  Byte-size Flash MX which deals with optimizing Flash files. He is also the developer of the FlickR and Photo widgets.

What will the Internet look like In 10 years ?

The Internet Society engaged in a scenario planning exercise to reveal plausible evolutions of the Internet in the future. Based upon the two questions :

  • Will the world embrace or resist the open Internet model ?
  • Will the Command and Control or the Distributed and Decentralized model be more succesful ?

These two questions defined four quadrants, which led to four very different stories about how the world might develop over the next eight to ten years :

Internet evolution scenarios

All of these stories contain some elements of the Internet of today. The challenge for everyone is to contribute to help the Internet to evolve in a direction like the scenario called The Common Pool.

ROVIO : mobile webcam by Wowwee

Last update : May 21, 2013

Rovio Dashboard

Rovio is a WiFi-enabled mobile web cam developed by Wowwee that lets you see, speak and hear from anywhere in the world, as if you were right there in the room. Rovio is equipped with a TrueTrack™ Navigation System that allows you to use the Rovio interface to store waypoints – with one click Rovio will automatically navigate itself to the chosen point. Rovio’s built-in LED headlight will help you guide it even in dimly lit locations, so you’ll always know what is going on at home or at the office. No need to worry about Rovio running low on power while you’re away – the self-docking function allows you to send Rovio back to the charging dock to recharge, with the click of a button on your browser. Rovio has 3 omni-directional wheels to move in all directions. With additional TrueTrack Room Beacons, Rovio can navigate or self-dock across multiple rooms.

Rovio prototypes and final version

Rovio prototypes and final version

In September 2010, I upgraded the Rovio to firmware version 5.0 and tried to install it on a new WiFi network in an artgallery. The setup with a Vista (Service Pack 1) computer didn’t work, the USB connection always failed.

One year later, the setup was succesful. Two years later, In May 2013, I upgraded the Rovio to firmware v5.03 (stable). The current installed software versions on my Rovio are Base 5.3503, TrueTrack 5.13.201.

The Rovio user interface is entirely browser-based, which means you can access Rovio via the Internet using web-enabled devices. The following documents, tutorials and programs are available to control the Rovio robot :

Documentation

PC

Robodance 5 (Robonote), by Android Technologies, Inc.
version 5.2.0.7b, updated September 23, 2012
uses Skype’s video call service

Robodance 5

Robodance 5

RovioCommander II, by Jesse Mcculley
version 1.909b, updated May 20, 2013

Rovio Commander II

Rovio Commander II

RovioDirect, by E.W.E Software
version 1.2, updated February 9, 2010

Rovio Direct

Rovio Direct

RovioWrap (Rovio Controller), by Scott Settembre
alpha version 1.0.0.1, updated February 16, 2009
with Microsoft speech recognition

Wowwee Rovio DirectShow Filter
licensed to Wowwee by WebcamXP
version 4.2.5.0, 2008

Rovio Direct Show Filter

Rovio Direct Show Filter

RoboRealm, by RoboRealm
version 2.50.22, updated May 18, 2013
application for use in computer vision, image analysis, and robotic vision systems

Rovio Control for RoboRealm

Rovio Control for RoboRealm

Rovio Web Plugin for AbelCam WebCam Server, by Stefan Seiz
Release October 17, 2011

Rovio Plugin for AbelCam WebCam Server

Rovio Plugin for AbelCam WebCam Server

Jrovio (Java Rovio), by Marco Andreacchio
version 2.2, updated June 21, 2010

iPhone / iPad

Rovio Control, by Tommy Kammerer
version 1.4, updated January 25, 2013

Rovio Control for iPhone

Rovio Control for iPhone

Rovio Control HD for iPad (Retina), by Tommy Kammerer
version 1.5, updated January 31, 2013

Rovio Control HD for iPad

Rovio Control HD for iPad

ES Pad for Rovio, by (es) Corporation
version 1.0.3, updated July 8, 2011

ES

ES PAD for Rovio

Rovio Driver, by Bertrand Leroy
version 1.5, updated December 11, 2009

Rovio Driver

Rovio Driver

Rovio Chat, by Chi Kong Simon Chan
version 1.1, updated May 11, 2013
supports Rovio’s 2-way audio
needs Rovio Custom Firmware v5.03s Build 3711

Rovio Chat

Rovio Chat

Blackberry

Rovio Blackberry Client, by bbrovio
version 0.11, updated February 17, 2009

Rovio controller for Blackberry

Rovio controller for Blackberry

Android

AndRovio, by Poignont Projects
version 1.2.1
updated March 1, 2011
does not support audio

AndRovio

AndRovio

Windows Mobile

Pocket Rovio, by Carmelo Millian
version 2.1.1, updated January 14, 2010

Pocket Rovio for Windows Mobile

Pocket Rovio for Windows Mobile

Using Rovio

The Rovio has a LED power indicator, the color signals the following states :

  • Blinking : low battery
  • Green : network connection is functioning properly
  • Red : Rovio is being accessed
  • Orange : Rovio is booting and/or trying to connect to a network

The battery pack is charged when Rovio is docked. The blue LED indicators will pulse quickly to indicate that it has begun charging. During charging, the LED indicators will pulse slowly; a single charge takes approximately 4.5 hours for about 1.5 hours of use. When Rovio has finished charging the LED indicators will remain lit. It is safe to leave Rovio on its charging dock after the charge has completed.

To access Rovio from the Internet, port forwarding to Rovio ports 80 and 554 must be set up in the gateway router.

Additional informations about Rovio are available at the following links :

Flix Video Encoding and Publishing

last update : october 2010

In the past the On2 Flix product line was the leading line of encoding and publishing solutions for Adobe® Flash® Player, available as application software, plug-ins and software development kits for servers, desktops, and browsers.

On February 19, 2010, Google Inc. announced that it has completed its acquisition of On2 Technologies, Inc., valued at approximately $124.6 million.

On June 21st, 2010, ON2 announced that they are discontinuing sales of licenses for On2 Flix Pro, On2 Flix Standard, On2 Flix Exporter, On2 Flix PowerPlayers, On2 Flix Live, On2 Flix SDK for DirectShow, and On2 Flix Publisher. Google will no longer sell or support these products.

Backing Up a MySQL database

It is strongly recommended to backup databases at regular intervals and always before an upgrade. Restoring the database from backup is then possible if anything goes wrong.

phpMyAdmin is the usual program to manipulate a MySQL database.

To export tables from a database, login to phpMyAdmin, select the name of the database, choose those tables that corresponds to the related application and check the following options :

  • SQL
  • Structure
  • Add drop table
  • Add auto-increment
  • Enclose table and field names with backquotes
  • Data heading (without ticking the inside boxes)
  • Same as file
  • Zipped compression
  • Export type “insert”

Click GO and save the file to the computer. If you have separate files and folders for images, downloads, media or other attachments, save them with FTP on the computer.

A general rule of thumb is to keep at least three backups of databases and data files and to keep them in different places.

To restore the database, login to phpMyAdmin, select the database to restore, click the import tab, locate the .sql file on the computer, check the SQL radio button and click GO. The import may take a while, at the end a success screen is displayed. In case of separate image and media files, restore them with FTP.

WordPress has an integrated export/import function which is very userfriendly and efficient. It’s possible to change the author of the posts before saving and to import also automatically the attachments.

Today I tried the import and export of blogs with phpMyAdmin and with WordPress with success.

XHTML validation and Javascript : CDATA

With HTML pages on the web you can include the required Javascript betweentags. The W3C validator ignores the Javascript content. The same is not true for XHTML where the code between the script tags is considered to be PCDATA (parsed character data) which is therefore processed by the validator.

The result is a break of the page validation. To fix this problem, one solution is to make the Javascript external to the page. Another solution is to  place the Javascript code within a CDATA tag. However some older web browsers don’t understand the CDATA tag and this breaks the Javascript in those browsers.

If the CDATA tag is commented out, the Javascript code is handled correctly both by newer browsers and by validators and ignored by older browsers and the page is displayed as expected in all cases.

<script type=”text/javascript”>
/* <![CDATA[ */
// content of your Javascript goes here
/* ]]> */
</script>

A guide about this topic has been written by Stephen Chapman on the About.com:Javascript website.