LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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


Reply
  Search this Thread
Old 11-03-2007, 10:57 PM   #1
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,561

Rep: Reputation: 57
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.
 
Old 11-04-2007, 05:29 AM   #2
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
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.
 
Old 11-04-2007, 09:39 AM   #3
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,561

Original Poster
Rep: Reputation: 57
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>&nbsp;<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">&nbsp;</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">&nbsp;</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>
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Java plugin installed correctly for Firefox but not able to view any java applet tvn Linux - Software 10 04-15-2010 02:13 AM
LXer: News: Ubuntu Users Get Java Surprise LXer Syndicated Linux News 0 04-19-2007 12:16 PM
LXer: Java news met with cautious optimism in free Java community LXer Syndicated Linux News 0 11-14-2006 10:21 PM
Firefox refuses to load Java jnlp files - plugin and java ok Melsync Linux - Software 1 06-25-2006 04:09 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration