
Wow...
-
Latest Stuff
Personal

It’s time to update my sites and post up some new content. I have updated this site to WordPress 3.2 and Weaver 2.1 so the number of changes and improvements are remarkable. The WordPress team has made some amazing structure changes to the latest build and it shows off what a great platform WP has become over the past couple years. Bruce Wampler’s theme has also advanced in some incredible ways that makes it more customizable and easier to manage/administer than most theme’s out there.
I have been using a combination of WordPress and Drupal on my sites and both platforms have been advancing in better and more efficient ways. They are changing the way sites are built and administered (the more important part that is usually forgotten till the site is up and running) in web universe. And not to discredit those who use Joomla because it is a well respected platform as well (I just don’t use it at this time).
More updates and more sites coming. I will start cross posting site information and URL’s very soon.
I updated my media-maintenance plug in to work with mobile video, especially Blackberry’s and iPhones. So what does that mean? For Blackberry’s, it meant that I had to setup an RTSP server and stream an 3ggp2 mp4 file. For iPhone’s, I extended the (video) tag source so that it would provide an m4v video and then fall back to a 3ggp2 lower bitrate (cell connect) if needed. Both video files were encoded for iPhone optimum playback.
So what is so hard about that? I use the VideoJS library and it makes life a lot easier in working with the (video) tag and supporting Flash video fallback. For mobile, I use the same structure but conditional-ize the video definitions after detecting which browser and device I am working with. So in general, this is what I have.
if Blackberry - \<img\> for Poster + <a href="rtsp://<server><port>/<path>/<filename>.3g2>
if iPhone - <video width height controls poster="<filename>.png>
+ <source src=<filename>.mp4> + <source=<filename>.3g2>
if PC - <video (same as iPhone)> + <source..> mp4, webm, ogv
+ <object...flowplayer> Fash fallback + <param...>
+ <img fallback> in case there is no video support.
So then I decided to look into support RTMP for streaming videos since I could do that from AWS Cloudfront. I added the code for Flowplayer using the RTMP plugin and setup Cloudfront to stream from a new bucket. The Cname and all the other conditions were setup and the FLV videos with set mime types were then placed into the bucket. The end result was that it worked but not consistently. I was having a lot of problems with Firefox and some issues with IE. Chrome seem to work the best. The code is in the plugin but turned off at the moment till I have more time time to sort out all the issues.
The Number 1 issue that I ran into time and time again was video encoding. This has been confirmed many times on the net but it is the big elephant in the room. Encoding your videos to the proper format/codec and with the right bitrates, size, audio, video, stream is a trial and error challenge. The code is the straightforward part since it is documented and proven.
I also took some time to look into support css spites in the image tag code. The idea was to add it as an option by adding a new parameter to the shortcode (i.e. cssclass=”Sprite spritepic”). However, if you use a background image definition in your css class, then you have a support problem (adding the new css classes to your theme and updating them). There are also problems in supporting captions and layering the
I then decided to look at a more generic class definition and use the css crop command instead. This would enable me to override an (mg) tag, use a sprite image to pass into the shortcode, and crop out the proper image. Nice idea but inconsistent results… The image captions are one of the main problems because they are dependent on the css definitions to be right so the caption renders in the proper location. May revisit later.
I just posted the B&G Video Reel for 2010-2011 on my site. This is the reel that was shown at the banquet and should be available on DVD soon. Let me know if any parents are interested in getting an additional disc of all the pictures (including the ones that did not make it on the reel).
The video(s) should play in any browser (html5/flash).
Click Here to go to the Video Page.
Ralph
I have now moved my images and videos to AWS CloudFront to try to make up for a slow server. The banner still loads slow, but that appears to be more of an issue with WP than with graphics delivery. I have the image pre-loading but WP keeps getting in the way. If you are seeing any “stuttering” on the videos, then try playing them in IE. Firefox has a problem with default session settings that interferes with HTML5 video playback.
Ralph
I expanded my maintenance shortcodes to three (3) and rolled them into a plugin. The plugin installs, activates, and behaves like a normal WordPress plugin. It also has a settings panel to set the defaults. I also rolled captions (and style settings) into the image code so that it can easily set via a css class or overridden with attributes.
Simple image display with some padding.
[image_maint id="New Litronic Logo" imagefilename="Litronic_logo.png"
imagepadding="10px;" width="150" height="30"]
More complex image display with caption and small and large image (click to zoom)
[image_maint type=1 imagefilename="tkd/TKD_RStesting02.png" caption=true
captiontext="3rd Dan Testing - Breaking" id="RS TKD Testing" width="200" height="267"]
Simple video playback (can play one of 4 types of video with html5 and
flash video fallback.
[video_maint mediafilename="BluetorchDemo_Show"]
Use to replace anchors to link to other pages or files.
[remoteurl_maint baseurl="videos/bluetorch-2screen-video/" atitle="Bluetorch 2Screen Video"]
I just added two new shortcodes to my site to abstract the media storage and video playback. I built these two shortcodes so I did not have to worry about changing the media storage URL in the future. The media url path is kept in the shortcode and then used in the pages and posting.
The video shortcode takes the HTML5 video playing code and compartmentalizes it in the shortcode so it can be easily changed and maintained.
If you would like a copy of the shortcode then give me your email and I will send it to you.
Hi,
Welcome to my new biographical information site. I created this site so I could post up some background and comment on, refer to, and post up information that is of interest to me. I decided to set this build this site using WordPress because it was quick and easy to maintain. One of the first things I tried with WP 3.0 is the new HTML5 support and the video tag. It works pretty well – if you go to videos, you will see a set of Bluetorch TV videos that will play anywhere (so far). I also have a Flash video fallback in case the video tag is not supported (just for you IE).
If you look through my biography information, you will see that I have some pictures that are included in the posts and you can click on them for higher resolution. Some support this and some do not, depending on whether I had a higher resolution image to begin with.
More posts are coming and I will adding a new page for my scuba diving very soon.
Thanks,
Ralph
follow me: