smooth-dl.py is a program to download content served using Smooth Streaming
technology, it currently works only with Rai.tv

Simple tutorial:

The "manifest file" needed by smooth-dl can be retrieved in several ways:

 - Install the SilverSpoof.user.js Greasemonkey script form the 'scripts/'
   directory, then visit a page on the Rai.tv site which is using Smooth
   Streaming, look at the source page and search for the 'mediaUri' string,
   this is most likely the client Manifest, or the address of a playlist
   containing the client Manifest.

 - Alternatively you can install the "Direct Download Links" Greasemonkey
   script from http://userscripts.org/scripts/show/108910 and you will get
   a "Direct Link" to the *.csm file, just do "Copy Link Location" and use it
   like in the smooth-dl lines below.

View the Manifest of some RAI content:
  ./smooth-dl.py -i "http://smoothreplay.rai.it/ReplayTV/manifests/38640.csm"

Download the lowest video quality in a dir named "rai1":
  ./smooth-dl.py -q 3 - d rai1 "http://smoothreplay.rai.it/ReplayTV/manifests/38640.csm"

And mux the streams together using for example the command like outputted by
smooth-dl.py

Note, if ffmpeg returns an error like:
  [avi @ 0xe39a50] Aspect ratio mismatch between encoder and muxer layer
you can force the aspect with the "-aspect" options, for a 720x544 video the
option will be "-aspect 45:34".

Show the sync delay between the video and audio streams:
  ./smooth-dl.py -s "http://smoothreplay.rai.it/ReplayTV/manifests/38640.csm"

You can use the av sync delay in the conversion scripts in the 'scripts/'
directory.

Yeah, it's "Occhio alla Spesa" in the examples above but there's an uncle of
mine as a guest in the first part.


For multi-clip videos you have to download the single clips one by one
selecting the right streams:
./smooth-dl.py -d report -i http://www.rai.it/dl/video/smooth/report-2811201021.38.00.csm
./smooth-dl.py -d report -v 0 -a 1 http://www.rai.it/dl/video/smooth/report-2811201021.38.00.csm
./smooth-dl.py -d report -v 2 -a 3 http://www.rai.it/dl/video/smooth/report-2811201021.38.00.csm
./smooth-dl.py -d report -v 4 -a 5 http://www.rai.it/dl/video/smooth/report-2811201021.38.00.csm

Examples of working Manifests on Rai Replay:
http://smoothreplay.rai.it/ReplayTV/manifests/38640.csm
http://smoothreplay.rai.it/replaytv/Annozero/20-05-2010_/20-05-2010.ism
http://www.rai.it/dl/video/smooth/report-2811201021.38.00.csm


Accesspolicy:
http://smoothreplay.rai.it/clientaccesspolicy.xml

Examples of currently NOT WORKING Manifests:
http://dorigny.v.free.fr/blend/Wildlife.ismc
http://mediadl.microsoft.com/mediadl/iisnet/smoothmedia/Experience/BigBuckBunny_720p.ism
http://smooth.edge3b.rtl.hu/eb28faa6-c3bc-4a5a-9dcf-11329bf8d1d0/IB05905A_b5fdf62e-1857-4e60-8d3f-dfa08e69a8a5.ism