Bob's Notepad

Notes on projects I have done and things I have learned saved for my reference and for the world to share

Saturday, March 31, 2007

QTSS Playlists using SMIL

I have been trying to figure out a way to get playlists working on our QTSS server. The QTSS Publisher and QTSS Server both have a great playlist feature built in that create a "live stream" of your content but if you have a string of clips that you want every person to start watching at the beginning, this isn't an option. What I needed was something that tells quicktime what clips to play and then the client pulls each clip in the list after the last one finishes..... There is the QTL format but this only allows on media file (which seems kind of pointless to me).

Then, I found the perfect solution: SMIL

Actually, this is even more of a solution than what I need. What I produced doesn't even scratch the surface of what SMIL can do. Quicktime's support of SMIL isn't a 100% implementation yet but it does everything I need (and a lot more).

What is impressive about this set up rather than just a plain streaming movie is that the entire presentation is different clips and the quicktime player or quicktime plugin loads the data for all of them from the mov file (which is actually just a text file) and reads the chapter tags for what we title each one. Inside the client's player or plug in, the title of the clip is displayed in the control bar and the viewer can click on that title and and automatically jump to another clip/chapter. And, of course, since this is coming off of a QTSS server, you can use the control slider to skip to different parts of the movie and it instantly jumps to that area of the clip.

Here is Apple's documentation of QuickTime's SMIL support:

http://developer.apple.com/documentation/QuickTime/IQ_InteractiveMovies/quicktimeandsmil/chapter_10_section_1.html

Because a lot of people (including myself) learn easiest from example, here is the unedited version of the SMIL file that I made for the project I was working on. This is just a plain text file and is saved with an MOV extension. The purpose of this is so that the client will send the media off to quicktime when it's called and then once QuickTime grabs the file, it understands what to do with it.

Here's the contents of the file:
smil.mov.txt

Labels: , , ,

Reference Link


Friday, March 30, 2007

QTSS Reference Movies

Just found this tutorial on Apple's site. Using this method, we can create the 300k H.264 videos like we have been doing but also create a 100k or 40k H.264 video (or both) and create a reference file to have called by the client's quicktime player. Once that file is called, the file gives the client options available and then the client picks the best quality stream that can play on that user's connection. So if you have a 3meg broadband connection, you get the high quality video we have been serving but if your connection doesn't quite make it (like at the office), you'll automagically get a a low quality video that actually works.

Here's the link:

http://www.apple.com/quicktime/tutorials/refmovies.html

Labels: , ,

Reference Link


Tuesday, March 06, 2007

Linking to QTSS media from a webpage

So when you're using a QTSS server the best way to deliver your content is using RTSP... the problem is that browsers on windows do not understand the rtsp:// protocol by default so your viewers will have to take a bunch of different steps to get it to run -- which isn't good.

After searching the web for an easy solution to this problem, I found a trick that is almost too easy. Simple create a text file with a .mov extension and include a single line in that file:

RTSPtextRTSP://server/file.ext

Whenever Quicktime loads that mov file, it will realize that it is directing it somewhere else and automatically load the content from that file name.

Labels: , , , ,

Reference Link