PDA

View Full Version : www.rai.tv - Download silverlight smooth streaming from ism (or ismv?)and save as mp4


any ANONYMOUS forum user
06-28-2010, 08:46 AM
HI,i would download a video on demand

http://www.rai.tv/dl/RaiTV/programmi/media/ContentItem-8c9e3bc9-45d3-4927-a2f6-0307c3917ac2-wc2010.html?p=3

(a video that is entirely saved in the server and not a real-time flow) of the celebration of south africa 2010..now,the platform is silverlight smooth streaming and the data are packed in segment files...with Wireshark (http://all-streaming-media.com/find-stream-URL/Wireshark-free-network-protocol-analyzer.htm) i've found a files named "relinkerservlet.htmcont=180740" that i have renamed into "relinkerservlet.htmcont=180740.html";i have opened this and i've found:
<playList>
<playListItems>
<playListItem
title="RAI"
description="RAI- in diretta HD"
mediaSource="http://www.rai.tv/dl/video/smooth/E0.csm"
adaptiveStreaming="true"
thumbSource=""
frameRate="25">
</playListItem>
</playListItems>
</playList>

then i have opend also http://www.rai.tv/dl/video/smooth/E0.csm typed the url in the browser...the content is a xml file:

<?xml version="1.0" ?>
- <SmoothStreamingMedia MajorVersion="2" MinorVersion="0" Duration="19956720000">
- <Clip Url="http://replaytv.rai.it/ondemand/italy/vod/fifa2010/replaytv/fifa_live-isml/2010-06-11-11-49-37-040/segment001/fifa_live.ism/Manifest" ClipBegin="509801949999" ClipEnd="529758669999">
- <StreamIndex Type="video" SubType="" Chunks="998" TimeScale="10000000" Url="QualityLevels({bitrate})/Fragments(video={start time})">
<QualityLevel Index="0" Bitrate="350000" CodecPrivateData="250000010fc38a08f04f8a08f813ff000080850808aadeacf4 0000010e5a67f840" FourCC="WVC1" MaxWidth="288" MaxHeight="160" />
<QualityLevel Index="1" Bitrate="880000" CodecPrivateData="250000010fcb9a0df07f8a0df81fff000080850819adac3234 0000010e5a67f840" FourCC="WVC1" MaxWidth="448" MaxHeight="256" />
<QualityLevel Index="2" Bitrate="1410000" CodecPrivateData="250000010fcbac12f0a78a12f829ff00008085081ab076b92c 0000010e5a67f840" FourCC="WVC1" MaxWidth="608" MaxHeight="336" />
<QualityLevel Index="3" Bitrate="1940000" CodecPrivateData="250000010fcbbc15f0c78a15f831ff000080850823b33ca00c 0000010e5a67f840" FourCC="WVC1" MaxWidth="704" MaxHeight="400" />
<QualityLevel Index="4" Bitrate="501000" CodecPrivateData="250000010fc38e0a705f8a0a7817ff000080850810f49cc71c 0000010e5a67f840" FourCC="WVC1" MaxWidth="336" MaxHeight="192" />
<QualityLevel Index="5" Bitrate="3000000" CodecPrivateData="250000010fd3be27f1678a27f859ff000080850825b8d72704 0000010e5a27f840" FourCC="WVC1" MaxWidth="1280" MaxHeight="720" />
<QualityLevel Index="6" Bitrate="2470000" CodecPrivateData="250000010fd3be1df10d8a1df8437f000080850824b605e38c 0000010e5a67f840" FourCC="WVC1" MaxWidth="960" MaxHeight="540" />
<c t="509800000000" />
<c t="509820000000" />
...(many other link)...
<c t="529680000000" />
<c t="529700000000" />
<c t="529720000000" />
<c t="529740000000" d="20000000" />
</StreamIndex>
- <StreamIndex Type="audio" SubType="" Chunks="948" TimeScale="10000000" Url="QualityLevels({bitrate})/Fragments(audio={start time})">
<QualityLevel Index="0" Bitrate="80000" CodecPrivateData="1000030000000000000000000000e00042c0" FourCC="WMAP" AudioTag="354" Channels="2" SamplingRate="48000" BitsPerSample="16" PacketSize="3414" />
<c t="509785493333" />
<c t="509807680000" />
...(many other link)...
<c t="529704853333" />
<c t="529725653333" />
<c t="529746240000" d="20480000" />
</StreamIndex>
</Clip>
</SmoothStreamingMedia>

note that there are 7 flow video(the best is the 5th for the bitrate veri high and the resolution hd ready)
with wireshark,i have found the link of the first segment that is:

/ondemand/italy/vod/fifa2010/replaytv/fifa_live-isml/2010-06-11-11-49-37-040/segment001/fifa_live.ism/QualityLevels(350000)/Fragments(video=509800000000)

clearly i have found also the named server..and now the url is:

http://replaytv.rai.it/ondemand/italy/vod/fifa2010/replaytv/fifa_live-isml/2010-06-11-11-49-37-040/segment001/fifa_live.ism/QualityLevels(350000)/Fragments(video=509800000000)

i have overwrite the qualitylevels parameter with the highest of the list in csm file and the link for the first segment is :

http://replaytv.rai.it/ondemand/italy/vod/fifa2010/replaytv/fifa_live-isml/2010-06-11-11-49-37-040/segment001/fifa_live.ism/QualityLevels(3000000)/Fragments(video=509800000000)

this operation must be repeated for all the segment audio and video...my problem is:how join all the segment to obtain a single file?and what is the codec used?wireshark classificate this segment files such as mp4 audio and mp4 video but if i open one of there don't function...can someone help me?

moreover i have read here

http://stream-recorder.com/forum/convert-ismv-video-file-mp4-t6131.html?t=6131

and here

http://social.expression.microsoft.com/Forums/en-US/encoder/thread/a1a56514-8592-40ee-9b9d-18bd2da72c85

but i haven't understand nothing...

Stream Recorder
07-04-2010, 11:48 PM
HI,i would download a video on demand

http://www.rai.tv/dl/RaiTV/programmi/media/ContentItem-8c9e3bc9-45d3-4927-a2f6-0307c3917ac2-wc2010.html?p=3
I get the 404 error when opening this page.

I tried several other videos from RAI.TV and they were using HTTP .wmv streams. I was able to download them with WM Recorder (http://all-streaming-media.com/record-video-stream/WMRecorder-One-click-online-audio-video-stream-recorder.htm) and Jaksta (http://all-streaming-media.com/record-video-stream/Jaksta-Streaming-Media%20Recorder-and-Converter.htm) without any problem.

any ANONYMOUS forum user
07-05-2010, 01:49 AM
I get the 404 error when opening this page.

I tried several other videos from RAI.TV and they were using HTTP .wmv streams. I was able to download them with WM Recorder (http://all-streaming-media.com/record-video-stream/WMRecorder-One-click-online-audio-video-stream-recorder.htm) and Jaksta (http://all-streaming-media.com/record-video-stream/Jaksta-Streaming-Media%20Recorder-and-Converter.htm) without any problem.

yes, you're right,the link is no more available and also the streaming...i don't think that is a problem because however i have all the video fragment with the highest resolution and the audio fragments(there is a only type of audio fragment)...the other streamings that you say are streams costant with silverlight,there is a single file wmv and this is sended such as a normal stream...the video that i' ve linked at the first post,use the smooth streaming features,there is a single video that is encoded with different bit rate and resolution...in the first post the topic of video is oly one but in the directory of the server are 5 video with same topic but different bitrate and resolution...smooth streaming feature automatically adapt the segment bitrate with the condition of bandwith,cpu and gpu power,so when you have a low bitrate or low power component of cpu or gpu,automatically is adapt the video segment to make the streaming smooth without latence time of buffering or decrease of fps...now,i have forced the download of all the segment with the highest bitrate and the problem is that this segment are parsed with .net code...the only possible solution is use the takeoffline method of a library described here:

http://social.expression.microsoft.com/Forums/en-US/encoder/thread/a1a56514-8592-40ee-9b9d-18bd2da72c85

when i have some free time i set up visualstudio 2010 and with c# i'll try to make the original ismv after make a web server local and edit the csm and manifest file deleting all the streams index video except the 5th that have the highest bitrate and is the only stream that i have downloaded(all the fragments)

gxdata
08-06-2010, 07:09 PM
...now,i have forced the download of all the segment with the highest bitrate and the problem is that this segment are parsed with .net code...the only possible solution is use the takeoffline method of a library described here:

http://social.expression.microsoft.com/Forums/en-US/encoder/thread/a1a56514-8592-40ee-9b9d-18bd2da72c85

when i have some free time i set up visualstudio 2010 and with c# i'll try to make the original ismv after make a web server local and edit the csm and manifest file deleting all the streams index video except the 5th that have the highest bitrate and is the only stream that i have downloaded(all the fragments)

Interesting. Would you mind sending me a private message when you make some progress with this?

any ANONYMOUS forum user
08-17-2010, 04:59 AM
well,i'm studying the technology,that is described here:

http://alexzambelli.com/blog/2009/02/10/smooth-streaming-architecture/

and here

http://alexzambelli.com/blog/smooth-streaming-faq/

about the structure of mp4 file:

http://mithunme.wordpress.com/2009/11/04/fragmented-mp4-file-format/

http://mithunme.wordpress.com/2009/11/04/information-in-the-ismc-and-ism-file/

i have understand that to make the original ismv file is necessary download all the fragments with the download manager because only in this case we are sure that all the segment downloaded have the same bitrate(clearly to have the best quality is necessary download all the fragment with the highest bitrate)...then the operation is not possible during the view mode because difficultly the fragment downloaded have all the same bitrate or the same and the highest bitrate...now i would make a patch that creates the original ismv file or an mp4 file (that however is the base of ismv file)but i must study all the tags obligatory for the creation of mp4 or ismv file...moreover is important extract mdat information from the chunk downloaded

zoldike
10-19-2010, 06:25 AM
Hi,
I've just wrote a CLI program in C# which can download Smooth Streaming Media and can mux it to MKV. I'm Hungarian so i don't have Italian IP to test the streams on rai.tv, so i would need some help to test my program with these streams.

If you want to test my program. It is available on:
http://dvb-crew.atw.hu/applications.php
it was designed to download streams from http://www.rtlklub.hu/most/, but its engine is might useful to solve your problems too.

If you can help me, please contact me on MSN:
kissda@primposta.com

Thanks in advance!

notmebug
10-25-2010, 05:13 AM
@zoldike

Could you add support to rtldownloader for downloading files from direct urls like "http://blablabla/7067443_10_400_13073_0001.ism" ? then it would be easier to test this software.

Regards,
notmebug

Stream Recorder
11-21-2010, 09:35 AM
Replay Media Catcher (http://all-streaming-media.com/record-video-stream/Replay-Media-Catcher-HTTP-RTMP-FLV-MP3-ripper-recorder.htm) 4.0.17 supports Smooth Streaming MajorVersion 2. It allows to save Smooth Streaming files as MKV files, so there should be no problem playing such streams.

anuswara
06-04-2011, 06:00 AM
Hy. newbie here.

_http://www.rai.tv/dl/replaytv/replaytv.html#day=2011-06-03&ch=2&v=66996&vd=2011-06-03&vc=2

this link expires in 7 days.

how to do to download and save this kind of video (without a PhD in Engineering) ?

thanks a lot in advance.

it seems very very hard for me. help please.

ricsip
10-19-2012, 03:35 PM
Hy. newbie here.

_http://www.rai.tv/dl/replaytv/replaytv.html#day=2011-06-03&ch=2&v=66996&vd=2011-06-03&vc=2

this link expires in 7 days.

how to do to download and save this kind of video (without a PhD in Engineering) ?

thanks a lot in advance.

it seems very very hard for me. help please.

LOL I think you realized in the previous 1,5 years, that you MUST have PhD in enginerring to download shit like this :DD WHAHAHA