samedi 31 août 2013

--Failed(update not anymore)-- attempt at dumping a rtsp:// stream - Alan Kay 2011 talk #1

The .smil is originally hosted by tele-talk.de

Found through http://permalink.gmane.org/gmane.comp.lang.smalltalk.fonc/2179 that I can just read the .smil through HTTP.

$ wget http://stream.hpi.uni-potsdam.de:8080/Archive/HPIK_SS11/HPIK_2011_07_21_01_hd.smil

Giving :

<?xml version="1.0"?>
<smil xmlns="http://www.w3.org/2001/SMIL20/Language">
<head>
<layout>
<root-layout width="1344" height="768" background-color="#ffffff"/>
<region id="video" top="0" left="0" width="320" height="180" z-index="2" 
fit="fill"/>
<region id="desktop" top="0" left="320" width="1024" height="768" 
z-index="1" fit="fill"/>
<region id="toc" top="180" left="0" width="320" height="478" z-index="2" 
fit="fill"/>
<region id="logo" top="658" left="0" width="320" height="110" 
z-index="2" fit="fill"/>
<!-- region id="cutright"  top="0"   left="1339" width="05"   
height="768" z-index="2" fit="fill"/ -->
<!-- region id="cutbottom" top="758" left="320" width="1024" height="10" 
z-index="2" fit="fill"/ -->
</layout>
</head>
<body>
<par>
<video region="video" 
src="rtsp://stream.hpi.uni-potsdam.de:554/Archive/HPIK_SS11/HPIK_2011_07_21_01_STREAM_video.rm"/>
<video region="desktop" 
src="rtsp://stream.hpi.uni-potsdam.de:554/Archive/HPIK_SS11/HPIK_2011_07_21_01_STREAM_desktop.rm"/>
<img region="logo" fit="fill" 
src="http://www.tele-task.de/images/logo_teletask_110.jpg"/>
<textstream region="toc" 
src="http://stream.hpi.uni-potsdam.de:8080/Archive/HPIK_SS11/HPIK_2011_07_21_01_hd_TOC.rt"/>
<!-- img region="cutright" 
src="http://www.tele-task.de/images/white.gif"/ -->
<!-- img region="cutbottom" 
src="http://www.tele-task.de/images/white.gif"/ -->
</par>
</body>
</smil>
 
As said in the mailing list post, these :

rtsp://stream.hpi.uni-potsdam.de:554/Archive/HPIK_SS11/HPIK_2011_07_21_01_STREAM_video.rm
rtsp://stream.hpi.uni-potsdam.de:554/Archive/HPIK_SS11/HPIK_2011_07_21_01_STREAM_desktop.rm
 
are the two URLs for the talk (one for the slides, one for the speaker).
Unfortunately, I couldn't get the content on disk. ffmpeg, [c]vlc, openRSTP, rtmpdump all failed.
The weirdest part is that I can "play" both streams, so the bytes are there, but I couldn't find
a way to replicate that in the shell to persist them. 
 
Update: I didn't notice it, but vlc does indeed dump the raw video stream in a file as required.
I was fooled by the fact that it doesn't display any signs of activity by default. You can monitor
the file in your FS (watch, inotify) or open vlc statistics dialog to witness the data size increase.

Aucun commentaire:

Enregistrer un commentaire