Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to
LinuxQuestions.org , a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free.
Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please
contact us . If you need to reset your password,
click here .
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a
virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month.
Click here for more info.
11-03-2007, 10:57 PM
#1
Senior Member
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,561
Rep:
Tricky one to dumpstream of the news: java java
Hi,
I am trying to
Code:
mplayer -dumpstream -dumpfile thenews.wmv "http://..."
on the available news on website.
the tricky thing is that there is java scripts that hide the mms:// to retrieve the video.
here is the link where curl/wget hangs ...
http://www.itvp.pl/player2.html?mode...video_id=35083
tricky to retrieve with script the videos, to watch afterwards;
Startng from
http://www.itvp.pl/player2.html?mode...video_id=35083 , I would like to dumpstream to file hte video of yesterday (panorama).
Cheers to Linux'ers !!
Last edited by frenchn00b; 11-03-2007 at 10:59 PM .
11-04-2007, 05:29 AM
#2
Senior Member
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247
Rep:
So dive into javascript source and unprotect the link.
I used xine to grab the link:
Code:
mms://212.191.227.125/31pxRed6Me4sk6lt3HgxsBTIIVwUQj5%2fIs41VptFXJ4bR4jZD5oGuoxN0okN0rRHq4V0XvhAZFS%2bFjNeQVYL1%2bjiz%2fGj%2fhFRjgZqntNPe6%2bE2uWhxn1QiNaLK9ydtlG5eYSt7RX7xJAJorTIANApIk2Q%3d%3d/1?time=-53825
Dunno if it works.
11-04-2007, 09:39 AM
#3
Senior Member
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,561
Original Poster
Rep:
I will give the try out of the source code ...
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>iTVP - Wideo</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<script type="text/javascript">
var gemius_identifier = new String('nSdLyzOi2MyttgIcb8CM0vU2j8MFxtrS79clm.7OcJr.Q7');
</script>
<script type="text/javascript" src="/gemius/gemius.js"></script>
<script type="text/javascript" src="/gemius/gemiussarg.js"></script>
<style type="text/css">
/**/
@import "http://img.v2.itvp.pl/portal/css/style.css";
@import "http://img.v2.itvp.pl/portal/css/player_tvpinfo.css";
/**/
</style>
<!--[if IE]>
<style type="text/css">
@import "http://img.v2.itvp.pl/portal/css/ie.css";
</style>
<![endif]-->
<script type="text/javascript" src="http://img.v2.itvp.pl/portal/js/dojo.js"></script>
<script type="text/javascript" src="http://img.v2.itvp.pl/portal/js/js.js"></script>
<script type="text/javascript" src="http://img.v2.itvp.pl/portal/js/player.js"></script>
<script type="text/javascript" src="http://img.v2.itvp.pl/portal/js/player_bar.js"></script>
</head>
<body onload="loadVideoNew(3, 24187, 35083);">
<div id="content">
<div id="timeShifting" class="panelPlayer">
<div class="centerPanel">
<div class="clr1" style="display:inline"></div>
<div class="panelLeftP">
<div class="top"><a href="/" onclick="return toW(this.href)"><img src="http://img.v2.itvp.pl/portal/gfx/tx/tx_itvp_info.gif" alt="Telewizja Interaktywna iTVP" class="bl" /></a></div>
<div class="m16h">
<h1 class="tyt"><span id="playerMovieTitle"></span><span id="playerMovieDate"></span> <span id="playerMovieTime"></span></h1>
<div class="helper"><a href="/itvp/pomoc/timeshifter" onclick="return oWp(this.href,'_blank')">pomoc</a></div>
<div class="clr1"></div>
</div>
<div id="holdPlayer">
<div id="playContent"></div>
<div id="videoNavBar">
<div class="videoNavBar"><div id="videoButton"></div><div id="videoBarBox"><div id="videoBar"><div id="videoBarB"></div><div id="videoBarBt"></div><div id="videoBarE"></div></div></div></div>
<div id="videoBarInfoTime"></div>
<div id="videoBarInfo"> </div>
</div>
<div class="clr1"></div>
<div id="playContentInfo"></div>
</div>
<div id="playBitrates"></div>
</div>
<div class="panelRightP">
<div class="playList" id="playlist">
<ul class="tabs"><li><a href="#" onclick="epgData.set(9999,2); return false;"><b>Serwis informacyjny TVP INFO</b></a></li><li class="act"><a href="#" onclick="epgData.set(9998,1); return false;"><b>Wiadomości Panorama Teleexpres</b></a></li><li class="last"><a href="#" onclick="epgData.set(9997,3); return false;"><b>Publicystyka</b></a></li></ul><div class="clr1"></div><div class="lista"><ul id="listItems" class="listCon"><li id="videoitem_28996_35106" class="item" onmouseover="ahover(this,true);" onmouseout="ahover(this,false);"><a href="javascript :;"><img alt="" title="" src="http://img.v2.itvp.pl/video_new/images/11/uid_11a629b64fec4dc0be0c6d19d19a4d6d_width_71_live_3.jpg" /></a><a href="javascript :;" class="opis">Teleexpress,<br />2007-11-04 17:00</a><div class="clr1"></div></li><li id="videoitem_24187_35094" class="item" onmouseover="ahover(this,true);" onmouseout="ahover(this,false);"><a href="javascript :;"><img alt="" title="" onclick="loadVideoTs(3, 24187, 35094, 0); return false;" src="http://img.v2.itvp.pl/video_new/images/82/uid_82ee06505c4847e296518ff32d49176e_width_71_live_1.jpg" /></a><a href="javascript :;" class="opis" onclick="loadVideoTs(3, 24187, 35094, 0); return false;">Wiadomości,<br />2007-11-04 12:59</a><div class="clr1"></div></li><li id="videoitem_24187_35083" class="item" onmouseover="ahover(this,true);" onmouseout="ahover(this,false);"><a href="javascript :;"><img alt="" title="" onclick="loadVideoTs(3, 24187, 35083, 0); return false;" src="http://img.v2.itvp.pl/video_new/images/b0/uid_b00470f46f0e43d59d953cf9c64d076b_width_71_play_1.jpg" /></a><a href="javascript :;" class="opis" onclick="loadVideoTs(3, 24187, 35083, 0); return false;">Panorama,<br />2007-11-03 21:29</a><div class="clr1"></div></li><li id="videoitem_24187_35080" class="item" onmouseover="ahover(this,true);" onmouseout="ahover(this,false);"><a href="javascript :;"><img alt="" title="" onclick="loadVideoTs(3, 24187, 35080, 0); return false;" src="http://img.v2.itvp.pl/video_new/images/82/uid_82ee06505c4847e296518ff32d49176e_width_71_play_1.jpg" /></a><a href="javascript :;" class="opis" onclick="loadVideoTs(3, 24187, 35080, 0); return false;">Wiadomości,<br />2007-11-03 19:29</a><div class="clr1"></div></li><li id="videoitem_24187_35077" class="item" onmouseover="ahover(this,true);" onmouseout="ahover(this,false);"><a href="javascript :;"><img alt="" title="" onclick="loadVideoTs(3, 24187, 35077, 0); return false;" src="http://img.v2.itvp.pl/video_new/images/d4/uid_d463e94ceef44580a256f9125916d53a_width_71_play_1.jpg" /></a><a href="javascript :;" class="opis" onclick="loadVideoTs(3, 24187, 35077, 0); return false;">Panorama,<br />2007-11-03 18:29</a><div class="clr1"></div></li><li id="videoitem_24187_35075" class="item" onmouseover="ahover(this,true);" onmouseout="ahover(this,false);"><a href="javascript :;"><img alt="" title="" onclick="loadVideoTs(3, 24187, 35075, 0); return false;" src="http://img.v2.itvp.pl/video_new/images/11/uid_11a629b64fec4dc0be0c6d19d19a4d6d_width_71_play_1.jpg" /></a><a href="javascript :;" class="opis" onclick="loadVideoTs(3, 24187, 35075, 0); return false;">Teleexpress,<br />2007-11-03 16:59</a><div class="clr1"></div></li></ul></div><div id="najblizszeInformacje"><span class="th"></span><div class="fl"><div id="nextTitle">Teleexpress</div><div id="nextData">2007-11-04</div></div><div class="fr"><div id="nextTime">17:00<div class="timeTo"></div><script type="text/javascript">
var epgPlay='24187|1194192000000|35106';
</script></div></div><a id="infoTime" rel="24187|1194192000000|35106" title="24187|1194192000000|35106"> </a><div class="clr1"></div><div class="clr1"></div></div>
</div>
<div class="clr1"></div>
</div>
<div class="clr1"></div>
</div>
<div class="clr1"></div>
</div>
<div class="clr1"></div>
</div>
<script type="text/javascript">
//<![CDATA[
var epgData={
channel:9998,
rvID:null,
tab:1,
info:new Array(),
set:function(channel,tab){
this.channel=channel;
this.tab=tab;
this.update();
},
update:function(){
loadPlaylistEPG(this.channel,this.tab);
this.getInfoTime();
},
updateEPG:function(){
if(document.getElementById('playlist'))loadPlaylistEPG(this.channel,this.tab);
},
getInfoTime:function(){
if(document.getElementById('infoTime')){
var o=document.getElementById('infoTime').title;
this.info=o.split('|');
updateTime(this.info[0],this.info[1],this.info[2]);
}
},
selectElement:function(){
var objEl=document.getElementById('listItems').getElementsByTagName('li');
for (var i=0;i<objEl.length;i++) {
objEl[i].style.backgroundColor='';
objEl[i].className='item';
if(objEl[i].id.indexOf(epgData.rvID)>-1){objEl[i].style.backgroundColor='#000'; objEl[i].className='item act';} //'#ff9702';
}
this.getInfoTime();
}
};
//var dva = document.createElement('a');
//dva.setAttribute('id','linker');
//dva.setAttribute('href','http://www.itvp.pl/');
//try{document.getElementById('holdPlayer').insertBefore(dva,document.getElementById('playContent'));} catch(ex){}
var tm001=window.setInterval('epgData.update()',59999);
//]]>
</script>
<!--[if IE]>
<script type="text/jscript" for="WindowsMediaPlayer1" event="buffering(Start)">
var idI;
if(true==Start && document.WindowsMediaPlayer1){UpdateP(); idI=window.setInterval("UpdateP()",250);} else {window.clearInterval(idI);}
</script>
<script type="text/javascript">
function UpdateP(){
var infostatus='';
if(document.getElementById('WindowsMediaPlayer1')) {
objBar.stateAX=WindowsMediaPlayer1.playState;
infostatus+=(WindowsMediaPlayer1.playState==3)?' odtwarzanie':' oczekiwanie';
//infostatus+=' sciągnięte: ' + WindowsMediaPlayer1.network.downloadProgress+'% ';
//infostatus+=' zbuforowane: ' + WindowsMediaPlayer1.network.bufferingProgress+'% ';
//infostatus+=' - '+objBar.stateAX;
}
document.getElementById('videoBarInfo').innerHTML=infostatus;
}
</script>
<![endif]-->
<div id="playerInfoData"></div>
</body>
</html>
All times are GMT -5. The time now is 01:24 PM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News